-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
.eslintrc.json
25 lines (25 loc) · 896 Bytes
/
.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
{
"extends": "standard",
"plugins": ["import"],
"rules": {
"no-var": "error",
"object-shorthand": ["error", "always", { "ignoreConstructors": false, "avoidQuotes": true }],
"prefer-arrow-callback": ["warn", { "allowNamedFunctions": false, "allowUnboundThis": true }],
"prefer-const": ["error", { "destructuring": "any", "ignoreReadBeforeAssign": true }],
"prefer-destructuring": ["warn", { "array": true, "object": true }, { "enforceForRenamedProperties": false }],
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".json"]
}
},
"import/extensions": [".js"],
"import/core-modules": [],
"import/ignore": ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"]
}
}