-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
30 lines (30 loc) · 1.03 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
{
"env": {
"es6": true,
"node": true
},
"plugins": ["import", "prettier"],
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"indent": ["error", 4, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"arrow-parens": ["error", "as-needed"],
"max-len": ["error", { "code": 151, "ignoreComments": true }],
"prefer-destructuring": ["error", { "object": true, "array": false }],
"operator-linebreak": ["error", "after"],
"object-curly-newline": [
"error",
{
"ObjectExpression": { "multiline": true, "minProperties": 10 },
"ObjectPattern": { "multiline": true, "minProperties": 10 },
"ImportDeclaration": "never",
"ExportDeclaration": "always"
}
],
"no-unused-expressions": ["error", { "allowShortCircuit": true }]
}
}