-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
59 lines (59 loc) · 1.55 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
module.exports = {
env: {
browser: false,
commonjs: true,
es2021: true,
},
extends: ['airbnb-base'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
'array-callback-return': 'off',
'arrow-body-style': 'off',
'consistent-return': 'off',
'default-param-last': 'off',
'func-names': 'off',
'global-require': 'off',
'guard-for-in': 'off',
'import/newline-after-import': 'off',
'import/no-dynamic-require': 'off',
'import/order': 'off',
'linebreak-style': 'off',
'max-len': 'off',
'no-await-in-loop': 'off',
'no-bitwise': 'off',
'no-console': 'off',
'no-continue': 'off',
'no-else-return': 'off',
'no-empty': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'no-return-assign': 'off',
'no-return-await': 'off',
'no-shadow': 'off',
'no-unused-expressions': ['error', { allowShortCircuit: true }],
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-use-before-define': 'off',
'no-useless-escape': 'off',
'no-lonely-if': 'off',
'object-curly-newline': 'off',
'one-var': 'off',
'prefer-destructuring': 'off',
'prefer-object-spread': 'off',
'prefer-regex-literals': 'off',
'promise/param-names': 'off',
'default-case': 'off',
camelcase: 'off',
radix: 'off',
semi: ['error', 'never'],
'semi-style': 'off',
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
}],
},
}