-
Notifications
You must be signed in to change notification settings - Fork 194
/
.eslintrc.js
52 lines (52 loc) · 1.14 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
env: {
browser: true,
es2021: true,
node: true,
jquery: true,
},
extends: ['eslint:recommended', 'plugin:unicorn/recommended'],
reportUnusedDisableDirectives: true,
rules: {
// eslint
'array-callback-return': 1,
'consistent-return': 1,
'no-await-in-loop': 1,
'no-return-assign': 1,
'no-console': [
1,
{
allow: ['warn', 'error'],
},
],
'no-param-reassign': 1,
'prefer-destructuring': 0,
// eslint-plugin-unicorn
'unicorn/filename-case': 0,
'unicorn/no-null': 0,
'unicorn/no-useless-undefined': 0,
'unicorn/prefer-module': 0,
'unicorn/prevent-abbreviations': 0,
'unicorn/prefer-node-protocol': 0,
'unicorn/import-style': [
2,
{
styles: {
path: {
named: true,
},
},
},
],
'unicorn/consistent-destructuring': 0,
'unicorn/no-array-reduce': 0,
'unicorn/no-nested-ternary': 0,
'unicorn/prefer-top-level-await': 0,
'unicorn/prefer-string-replace-all': 0,
},
};