-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
44 lines (44 loc) · 1.36 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
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": [
"airbnb-base"
],
"parserOptions": {
"ecmaVersion": 13
},
"ignorePatterns": ["cjs"],
"rules": {
"import/extensions": ["error", "always"],
"semi": ["error", "never"],
"indent": ["error", 4],
"curly": ["error", "all"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "block-like", "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": "block-like"}
],
"no-negated-condition": "error",
"no-else-return": "error",
"no-underscore-dangle": "off",
"object-curly-spacing": "off",
"no-bitwise": "off",
"comma-dangle": "off",
"arrow-body-style": "off",
"class-methods-use-this": "off",
"prefer-template": "off",
"arrow-parens": "off",
"no-restricted-syntax": "off",
"quote-props": "off",
"no-prototype-builtins": "off",
"import/order": "off",
"no-plusplus": "off",
"yoda": "off",
"no-unused-vars": ["error", { "varsIgnorePattern": "^_.*$", "argsIgnorePattern": "^_.*$" }]
}
}