-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
110 lines (110 loc) · 3.38 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true
},
extends: "eslint:recommended",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
parserOptions: {
ecmaVersion: 2018
},
rules: {
"no-async-promise-executor": "error",
"no-await-in-loop": "warn",
"no-template-curly-in-string": "error",
"require-atomic-updates": "error",
"array-callback-return": "error",
"block-scoped-var": "warn",
complexity: "warn",
"consistent-return": "error",
curly: "warn",
"dot-notation": "warn",
eqeqeq: "error",
"no-alert": "error",
"no-caller": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "warn",
"no-multi-str": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "warn",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-void": "error",
"no-with": "error",
"prefer-promise-reject-errors": "error",
radix: "error",
"vars-on-top": "error",
"wrap-iife": "error",
yoda: "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-undef": "error",
"global-require": "error",
"handle-callback-err": "error",
"no-buffer-constructor": "error",
"no-mixed-requires": "error",
"no-new-require": "error",
"no-path-concat": "error",
"no-process-env": "error",
"no-process-exit": "warn",
"no-sync": "error",
"arrow-body-style": ["error", "as-needed"],
"arrow-spacing": "error",
"no-confusing-arrow": ["error", { allowParens: true }],
"generator-star-spacing": ["error", { before: true, after: false }],
"no-duplicate-imports": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-var": "error",
"prefer-arrow-callback": ["error", { allowNamedFunctions: true, allowUnboundThis: true }],
"prefer-const": "error",
"prefer-destructuring": ["error", { array: true, object: true }, { enforceForRenamedProperties: true }],
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"rest-spread-spacing": "error",
"sort-imports": "error",
"template-curly-spacing": "error",
"require-await": "error",
"yield-star-spacing": ["error", "after"],
//Styling
"array-bracket-newline": ["warn", "consistent"],
"array-bracket-spacing": ["warn", "never"],
"array-element-newline": ["warn", "consistent"],
"block-spacing": "warn",
"brace-style": "warn",
"capitalized-comments": "warn",
"no-console": "off"
}
};