-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
45 lines (45 loc) · 1.3 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
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"airbnb"
],
"parser": "babel-eslint",
"env": {
"commonjs": true,
"node": true,
"jest": true,
"es6": true
},
"rules": {
"comma-dangle": ["error", "never"],
"indent": ["error", 4, {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"no-console": "warn",
"no-debugger": "warn",
"operator-linebreak": "off",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"func-names": ["error", "as-needed"],
"function-paren-newline": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-underscore-dangle": "off",
"object-shorthand": "warn",
"radix": ["error", "as-needed"],
"space-before-function-paren": ["error", "always"],
"curly": ["error", "all"],
"arrow-parens": ["error", "always"],
"arrow-body-style": "off",
"max-len": [
"error",
{
"code": 80,
"tabWidth": 4,
"ignorePattern": "^import|^export|^const .* = require('.*');$|'.*'[;|,]?$|`.*`[;|,]?$"
}
]
}
}