-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
99 lines (99 loc) · 3.71 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
module.exports = {
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 2022
},
"env": {
"es6": true
},
"rules": {
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": ["error", "never"],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error"],
"block-spacing": ["error", "always"],
"brace-style": ["off"],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": ["off"],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "that"],
"eol-last": ["error", "always"],
"eqeqeq": ["warn", "always"],
"func-call-spacing": ["off"],
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"function-paren-newline": ["error", "multiline"],
"id-length": ["error", { "exceptions": ["_", "cb", "el", "i", "i2", "id", "ID", "t", "to"], "min": 3 }],
"indent": ["error", "tab"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"keyword-spacing": ["off"],
"linebreak-style": ["error", "unix"],
"lines-around-comment": ["error", { "beforeBlockComment": true, "afterBlockComment": false }],
"lines-between-class-members": ["off"],
"multiline-ternary": ["error", "never"],
"new-cap": ["error"],
"new-parens": ["error"],
"no-extra-parens": ["off"],
"no-dupe-args": ["error"],
"no-dupe-keys": ["error"],
"no-invalid-regexp": ["error"],
"no-irregular-whitespace": ["error", { "skipStrings": true, "skipComments": true, "skipRegExps": true, "skipTemplates": true }],
"no-lonely-if": ["error"],
"no-mixed-operators": ["error"],
"no-mixed-requires": ["off"],
"no-mixed-spaces-and-tabs": ["error"],
"no-multi-spaces": ["error", { "ignoreEOLComments": false }],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-process-exit": ["off"],
"no-redeclare": ["off"],
"no-sequences": ["error"],
"no-shadow": ["off"],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"no-trailing-spaces": ["error", { "ignoreComments": true }],
"no-underscore-dangle": ["off"],
"no-unexpected-multiline": ["error"],
"no-unreachable": ["error"],
"no-unused-expressions": ["off"],
"no-unused-vars": ["off"],
"no-use-before-define": ["off"],
"no-var": ["error"],
"no-whitespace-before-property": ["error"],
"nonblock-statement-body-position": ["error", "beside"],
"object-curly-spacing": ["off"],
"one-var": ["error", "never"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return"},
{ "blankLine": "always", "prev": ["const", "let"], "next": "*"},
{ "blankLine": "any", "prev": ["const", "let"], "next": ["const", "let", "if", "try"]}
],
"prefer-arrow-callback": ["error"],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "double"],
"semi-spacing": ["error", { "before": false, "after": true }],
"semi-style": ["error", "last"],
"semi": ["error", "always"],
"simple-import-sort/imports": ["error"],
"sort-imports": "off",
"sort-keys": ["error", "asc", { "caseSensitive": true, "natural": true, "minKeys": 2 }],
"sort-vars": ["error"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["off"],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["off"],
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
"spaced-comment": ["error", "always"],
"strict": ["error", "global"],
"template-tag-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"valid-jsdoc": ["error", { "requireReturn": false }],
"valid-typeof": ["error"],
"vars-on-top": ["off"]
},
"plugins": [
"simple-import-sort"
]
}