forked from jsg2021/esm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
63 lines (62 loc) · 1.96 KB
/
.eslintrc.js
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"use strict"
module.exports = {
env: {
es6: true,
mocha: true,
node: true
},
extends: ["eslint:recommended", "plugin:import/errors"],
globals: {
__external__: false,
__global__: false,
__non_webpack_module__: false,
__non_webpack_require__: false,
__shared__: false,
WebAssembly: false
},
parser: "eslint-plugin-import/memo-parser",
parserOptions: {
ecmaVersion: 11,
parser: "babel-eslint",
sourceType: "module"
},
plugins: ["babel", "import", "node"],
root: true,
rules: {
"arrow-parens": "error",
"arrow-spacing": "error",
"babel/valid-typeof": "error",
"brace-style": ["error", "1tbs"],
"comma-dangle": "error",
curly: "error",
"eol-last": "error",
eqeqeq: ["error", "always", { null: "ignore" }],
"import/no-duplicates": "error",
"import/no-extraneous-dependencies": ["error", { packageDir: "./" }],
"import/prefer-default-export": "error",
"keyword-spacing": "error",
"no-console": ["error", { allow: ["error"] }],
"no-constant-condition": ["error", { checkLoops: false }],
"no-empty": ["error", { allowEmptyCatch: true }],
"no-multiple-empty-lines": ["error", { max: 1 }],
"no-trailing-spaces": "error",
"no-undef": "error",
"no-undefined": "error",
"no-unused-vars": "error",
"no-useless-rename": "error",
"no-var": "error",
"node/no-unsupported-features": ["error", { version: 6 }],
"one-var": ["error", "never"],
"quote-props": ["error", "as-needed"],
quotes: ["error", "double", { allowTemplateLiterals: true, avoidEscape: true }],
"rest-spread-spacing": "error",
semi: ["error", "never"],
"sort-keys": ["error", "asc", { caseSensitive: true, natural: true }],
"sort-vars": "error",
"space-before-function-paren": ["error", { named: "never" }],
"space-infix-ops": "error",
"spaced-comment": ["error", "always", { block: { balanced: true } }],
strict: "error",
"valid-typeof": "off"
}
}