forked from Hilzu/eslint-config-unicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
71 lines (71 loc) · 1.5 KB
/
index.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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:node/recommended",
"plugin:react/recommended",
],
parserOptions: {
ecmaVersion: 2017,
sourceType: "module",
},
plugins: ["prettier", "node", "react"],
rules: {
"array-callback-return": "error",
"curly": "error",
"eqeqeq": [
"error",
"always",
{
null: "ignore",
},
],
"for-direction": "error",
"getter-return": "error",
"guard-for-in": "error",
"handle-callback-err": "error",
"no-await-in-loop": "error",
"no-buffer-constructor": "error",
"no-console": "warn",
"no-duplicate-imports": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-path-concat": "error",
"no-script-url": "error",
"no-sync": "error",
"no-unused-vars": [
"error",
{
args: "none",
},
],
"no-use-before-define": "error",
"no-useless-computed-key": "error",
"no-var": "error",
"node/no-unsupported-features": [
"error",
{
ignores: ["modules"],
},
],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prettier/prettier": [
"error",
{
semi: false,
singleQuote: true,
},
],
"react/display-name": "off",
"react/prop-types": "off",
"unicode-bom": "error",
},
};