-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
41 lines (41 loc) · 1.02 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
{
"env": {
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"prettier"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6
},
"plugins": [
"prettier"
],
"rules": {
"dot-notation": ["error"],
"func-style": ["error", "expression", { "allowArrowFunctions": true }],
"eqeqeq": ["error", "always"],
"prefer-const": ["error"],
"no-loop-func": ["error"],
"no-unused-vars": ["error", {
"vars": "all",
"args": "none",
"ignoreRestSiblings": false
}],
"no-use-before-define": ["error", {
"functions": false,
"classes": true,
"variables": true
}],
"no-var": ["error"],
"one-var": ["error", "never"],
"prefer-arrow-callback": ["error"],
"spaced-comment": ["error", "always"],
"prettier/prettier": ["warn", {}]
},
"root": true
}