-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
40 lines (40 loc) · 1.18 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
{
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"browser": true,
"serviceworker": true
},
"globals": {},
"plugins": [],
"extends": ["airbnb-base"],
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["warn", "windows"],
"space-before-function-paren": "off",
"function-paren-newline": "off",
"arrow-parens": ["warn", "as-needed"],
"object-curly-newline": ["error", {
"ObjectPattern": { "multiline": true }
}],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"unicode-bom": "off",
"import/no-mutable-exports": "off",
"import/extensions": "off",
"prefer-destructuring": "off",
"comma-dangle": ["error", "only-multiline"],
"no-underscore-dangle": "off",
"spaced-comment": "off",
"max-len": ["error", { "code": 132, "ignoreComments": true }],
"no-continue": "off",
"eqeqeq": ["error", "smart"],
"no-param-reassign": "off",
"no-nested-ternary": "off",
"class-methods-use-this": "off",
"lines-between-class-members": "off",
"no-unused-vars": "warn",
"no-restricted-syntax": ["off", "ForOfStatement" ]
}
}