-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
54 lines (54 loc) · 1.44 KB
/
.eslintrc
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
{
"extends": ["eslint:recommended"],
"root": true,
"env": {
"es6": true,
"browser": true,
"node": false
},
"rules": {
// "prettier/prettier": [1, { "trailingComma": "es6", "singleQuote": true, "semi": true }],
"curly": 0,
// "comma-dangle": [2, "never"],
"comma-spacing": 0,
"eqeqeq": [2, "allow-null"],
"key-spacing": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 2,
"no-shadow": 0,
"no-shadow-restricted-names": 0,
"no-extend-native": 0,
"no-var": 2,
"new-cap": 0,
"semi-spacing": 1,
"space-unary-ops": 0,
"space-infix-ops": 0,
"consistent-return": 0,
"strict": 0,
"quotes": [2, "single"],
"semi": [2, "always"],
"linebreak-style": [2, "unix"],
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"generator-star-spacing": "error",
"no-duplicate-imports": "error",
// "no-useless-computed-key": "error",
// "no-useless-constructor": "error",
// "no-useless-rename": "error",
// "object-shorthand": "error",
// "prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"rest-spread-spacing": "error",
"template-curly-spacing": "error",
"yield-star-spacing": "error"
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2022
},
"plugins": []
}