-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.json
95 lines (95 loc) · 2.58 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["eslint:recommended"],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"prettier/prettier": "off",
"curly": "error",
"operator-linebreak": ["error", "after"],
"semi-style": ["error", "last"],
"semi-spacing": "error",
"comma-style": ["error", "last"],
"max-len": ["error", { "code": 120 }],
"keyword-spacing": ["error", { "before": true }],
"space-infix-ops": "error",
"space-unary-ops": "error",
"space-in-parens": ["error", "never"],
"no-new-wrappers": "error",
"no-new-object": "error",
"no-new-func": "error",
"prefer-template": "error",
"no-useless-concat": "error",
"no-array-constructor": "error",
"no-var": "error",
"prefer-const": "error",
"no-throw-literal": "error",
"default-case": "error",
"eqeqeq": ["error", "smart"],
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"prefer-arrow-callback": "error",
"array-callback-return": "error",
"indent": ["error", 2],
"no-unneeded-ternary": "error",
"no-restricted-syntax": [
"error",
{
"selector": "ExportDefaultDeclaration",
"message": "Prefer named exports"
}
],
"no-template-curly-in-string": "error",
"no-constructor-return": "error",
"no-extra-bind": "error",
"no-floating-decimal": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-new": "error",
"no-self-compare": "error",
"no-useless-call": "error",
"semi": ["error", "always"],
"brace-style": "error",
"no-redeclare": "error",
"no-extra-semi": "error",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"no-empty-function": "error",
"no-duplicate-imports": "error",
"func-call-spacing": "error",
"comma-dangle": ["error", "always-multiline"],
"quotes": ["error", "single"],
"key-spacing": "error",
"comma-spacing": "error",
"no-shadow": "error",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "import",
"next": "*"
},
{
"blankLine": "any",
"prev": "import",
"next": "import"
}
],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"]
}
}