-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
104 lines (104 loc) · 3.05 KB
/
.eslintrc
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
{
"extends": ["eslint:recommended", "prettier"],
"plugins": ["prettier"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"baseURL": "readonly"
},
"rules": {
"no-dupe-else-if": "error",
"no-import-assign": "error",
"no-setter-return": "error",
"require-atomic-updates": "error",
"accessor-pairs": "error",
"array-callback-return": "error",
"class-methods-use-this": "warn",
"default-param-last": "error",
"eqeqeq": "error",
"grouped-accessor-pairs": "warn",
"guard-for-in": "error",
"no-alert": "warn",
"no-caller": "error",
"no-constructor-return": "error",
"no-empty-function": "warn",
"no-eq-null": "warn",
"no-eval": "warn",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-loop-func": "warn",
"no-multi-str": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-octal-escape": "warn",
"no-param-reassign": "warn",
"no-proto": "error",
"no-return-assign": "warn",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "warn",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "warn",
"no-useless-return": "error",
"no-void": "error",
"prefer-promise-reject-errors": "error",
"prefer-regex-literals": "warn",
"radix": "warn",
"require-await": "warn",
"require-unicode-regexp": "warn",
"wrap-iife": ["error", "inside"],
"yoda": ["warn", "never", { "exceptRange": true }],
"strict": "error",
"init-declarations": "error",
"no-label-var": "error",
"no-shadow": "error",
"no-undefined": "error",
"no-use-before-define": "error",
"callback-return": ["error", ["callback", "done", "resolve", "reject"]],
"camelcase": "warn",
"capitalized-comments": "warn",
"eol-last": "warn",
"implicit-arrow-linebreak": "error",
"new-cap": "warn",
"new-parens": "warn",
"no-lonely-if": "error",
"no-unneeded-ternary": "warn",
"prefer-exponentiation-operator": "warn",
"prefer-object-spread": "warn",
"arrow-body-style": "warn",
"arrow-spacing": "warn",
"generator-star-spacing": "warn",
"no-confusing-arrow": "warn",
"no-duplicate-imports": "warn",
"no-useless-computed-key": "warn",
"no-useless-constructor": "error",
"no-useless-rename": "warn",
"no-var": "error",
"object-shorthand": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-numeric-literals": "warn",
"prefer-rest-params": "error",
"prefer-template": "warn",
"rest-spread-spacing": "warn",
"sort-imports": "warn",
"symbol-description": "error",
"yield-star-spacing": "warn",
"prettier/prettier": "error"
}
}