-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
52 lines (52 loc) · 1.61 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
// eslint-disable-next-line no-undef
module.exports = {
ignorePatterns: ["node_modules/", "lib/", "test/"],
extends: "@jaanjah/eslint-config",
rules: {
"no-var": "error",
"no-console": "error",
"no-unused-vars": "warn",
"no-constant-condition": "error",
"no-process-exit": "warn",
"no-underscore-dangle": "error",
"no-use-before-define": "error",
"no-restricted-syntax": "error",
"no-await-in-loop": "warn",
"no-param-reassign": "warn",
"no-plusplus": "error",
"no-prototype-builtins": "error",
"no-restricted-properties": "error",
"no-else-return": "error",
"no-throw-literal": "warn",
"no-useless-escape": "error",
"no-nested-ternary": "error",
"prefer-const": "error",
semi: "error",
"no-extra-semi": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unsafe-negation": "error",
"getter-return": "error",
quotes: ["error", "double"],
"semi-spacing": "error",
"comma-spacing": "error",
"comma-dangle": ["error", "always-multiline"],
"space-before-blocks": "error",
"keyword-spacing": "error",
"arrow-spacing": "error",
"no-confusing-arrow": "error",
"no-useless-constructor": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-useless-computed-key": "error",
"no-useless-rename": "error",
"object-property-newline": "error",
"object-curly-spacing": ["error", "always"],
"no-whitespace-before-property": "error",
"no-irregular-whitespace": "error",
"no-multiple-empty-lines": ["error", { max: 1 }],
"no-trailing-spaces": "error",
"no-multi-spaces": "error",
"no-mixed-spaces-and-tabs": "error",
},
};