forked from helson-lin/ffandown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
59 lines (59 loc) · 1.8 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: {
commonjs: true,
es2021: true,
node: true,
},
extends: 'standard',
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
'no-tabs': 'off',
'array-element-newline': ['error', 'consistent'],
indent: ['error', 4, { MemberExpression: 0, SwitchCase: 1, ignoredNodes: ['TemplateLiteral'] }],
quotes: ['error', 'single'],
'comma-dangle': ['error', 'always-multiline'],
'object-curly-spacing': ['error', 'always'],
'max-len': ['error', 120],
'new-cap': 'off',
'no-new': 'off',
'linebreak-style': 'off',
'eol-last': 'off',
'no-shadow': 'off',
'no-unused-vars': 'warn',
'arrow-parens': 'off',
semi: ['error', 'never'],
eqeqeq: 'off',
'no-param-reassign': 'off',
'no-use-before-define': 'off',
'no-continue': 'off',
'prefer-destructuring': 'off',
'no-plusplus': 'off',
'prefer-const': 'off',
'global-require': 'off',
'no-prototype-builtins': 'off',
'consistent-return': 'off',
'prefer-template': 'off',
'one-var-declaration-per-line': 'off',
'one-var': 'off',
'object-curly-newline': 'off',
'default-case': 'off',
'no-trailing-spaces': 'off',
'func-names': 'off',
radix: 'off',
'no-unused-expressions': 'off',
'no-underscore-dangle': 'off',
'no-nested-ternary': 'off',
'no-restricted-syntax': 'off',
'no-mixed-operators': 'off',
'no-await-in-loop': 'off',
'no-case-declarations': 'off',
'no-empty': 'off',
'guard-for-in': 'off',
'class-methods-use-this': 'off',
'no-return-await': 'off',
},
}