-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc_js.js
44 lines (44 loc) · 1.28 KB
/
.eslintrc_js.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
module.exports = {
files: ["*.js"],
extends: ["eslint:recommended", "prettier"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
},
rules: {
"block-scoped-var": "error",
"callback-return": "error",
curly: ["error", "multi-line", "consistent"],
"dot-location": ["error", "property"],
"dot-notation": "error",
eqeqeq: ["error", "smart"],
"id-match": "error",
"linebreak-style": ["error", "unix"],
"new-cap": "error",
"no-console": "error",
"no-debugger": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-fallthrough": "error",
"no-invalid-this": "error",
"no-new-wrappers": "error",
"no-path-concat": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-template-curly-in-string": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-use-before-define": "off",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": ["warn", {VariableDeclarator: {object: true}}],
radix: "error",
semi: "off",
"valid-jsdoc": ["error", {requireReturn: false}],
"no-useless-escape": "error",
"no-void": "error",
"no-var": "error",
},
}