forked from leiyu-97/utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (47 loc) · 1000 Bytes
/
.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
module.exports = {
extends: [
'eslint:recommended',
'airbnb-base',
],
rules: {
'no-param-reassign': [2, { props: false }],
'no-nested-ternary': 0,
'no-console': 1,
radix: 0,
'no-restricted-syntax': 0,
'guard-for-in': 0,
'no-plusplus': 0,
'func-names': 0,
'implicit-arrow-linebreak': 0,
'no-underscore-dangle': 0,
'no-bitwise': 0,
'no-constant-condition': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': [
2,
{ devDependencies: ['test/**/*', 'script/**/*', 'bin/**/*', './*'] },
],
'function-paren-newline': 0,
'max-len': [1, 120],
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
},
},
},
env: {
node: true,
},
};