-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc
47 lines (47 loc) · 1.06 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
{
"root": true,
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"extends": ["eslint:recommended", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"],
"max-len": 0,
"comma-dangle": 0,
"no-console": 1,
"no-undef": 0,
"no-unused-vars": 0,
"eqeqeq": [2, "smart"],
"no-use-before-define": ["error", { "functions": false, "classes": true }],
"no-multi-spaces": [
2,
{ "exceptions": { "ImportDeclaration": true, "VariableDeclarator": true } }
],
"no-multi-str": 2,
"camelcase": 1,
"object-shorthand": ["error", "never"],
"indent": ["error", 2],
"quotes": [2, "single", "avoid-escape"],
"semi": 2,
"space-before-blocks": 2,
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"constructor-super": 2,
"arrow-spacing": 2
}
}