-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
64 lines (64 loc) · 1.52 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
60
61
62
63
64
module.exports = {
extends: ['plugin:vue/recommended', 'eslint:all', '@vue/prettier'],
settings: {
'import/resolver': {
node: {},
webpack: {
config: 'node_modules/@vue/cli-service/webpack.config.js',
},
},
},
env: {
node: true,
browser: true,
es6: true,
},
globals: {
BUILD_TAG: true,
jsToNative: true,
},
parserOptions: {
parser: 'babel-eslint',
},
rules: {
semi: ['error', 'never'],
'max-len': [
'error',
100,
2,
{
ignoreUrls: true,
ignoreComments: true,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
'no-alert': 'error',
'no-debugger': 'error',
'no-console': 'warn',
'sort-keys': 'off',
'no-magic-numbers': 'off',
'sort-imports': 'off',
'no-ternary': 'off',
'capitalized-comments': 'off',
'one-var': ['error', 'never'],
'no-inline-comments': ['error'],
'require-unicode-regexp': 'off',
'prettier/prettier': 'error',
'prefer-named-capture-group': 'off',
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-statements': 'off',
complexity: 'off',
camelcase: ['error', { properties: 'never' }],
'id-length': 'off',
'require-atomic-updates': 'off',
'prefer-destructuring': ['error', { object: true, array: false }],
'multiline-comment-style': 'off',
'no-bitwise': 'off',
'no-undefined': 'off',
'prefer-promise-reject-errors': 'off',
},
root: true,
}