-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
47 lines (47 loc) · 1.47 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
42
43
44
45
46
47
{
"parser": "babel-eslint",
"plugins": [
"babel",
"node",
"import"
],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:node/recommended"],
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"semi": 2,
"quotes": [2, "single", "avoid-escape"],
"prefer-destructuring": [2, {"object": true, "array": false}],
"no-duplicate-imports": [2, { "includeExports": true }],
"nonblock-statement-body-position": 2,
"object-curly-spacing": [2, "always", { "objectsInObjects": true }],
"space-before-blocks": 2,
"comma-style": [2, "last"],
"camelcase": [2, {"properties": "always"}],
"id-length": [2, { "min": 2, "exceptions": ["r"] }],
"space-infix-ops": 2,
"no-console": [1, { "allow": ["warn", "error"] }],
"no-undef": 2,
"no-unused-vars": [2, { "args": "none" }],
"import/extensions": 2,
"import/no-absolute-path": 2,
"import/no-dynamic-require": 2,
"import/no-duplicates": 2,
"import/newline-after-import": 2,
"import/no-unassigned-import": 2,
"import/no-unresolved": [2, { "commonjs": true, "amd": true }],
"node/exports-style": [2, "module.exports"],
"node/no-extraneous-require": [2, { "allowModules": [] }],
"node/no-missing-require": 2,
"node/no-deprecated-api": 2,
"node/no-unsupported-features": 0,
"node/no-unsupported-features/es-syntax": 0
}
}