-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
88 lines (88 loc) · 2.04 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = {
root: true,
env: {
node: true,
mocha: true
},
globals: {
BigInt: true,
BigUint64Array: true
},
extends: [
'plugin:vue/recommended',
'@vue/airbnb'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-underscore-dangle': 'off',
'no-extend-native': 'off',
'no-empty': 'off',
radix: 'off',
'no-cond-assign': 'off',
'no-plusplus': 'off',
'default-case': 'off',
'no-use-before-define': 'off',
'no-labels': 'off',
'no-restricted-syntax': 'off',
'consistent-return': 'off',
'func-names': 'off',
'arrow-parens': 'off',
camelcase: 'off',
'no-console': 'off',
'no-continue': 'off',
'prefer-const': 'off',
'comma-dangle': [
'error', {
arrays: 'never',
objects: 'never',
imports: 'never',
exports: 'never',
functions: 'ignore'
}
],
'prefer-destructuring': 'off',
'space-before-function-paren': 'off',
'no-new': 'off',
'max-len': ['error', {
ignoreStrings: true,
ignorePattern: '<pre',
code: 200
}
],
'vue/require-v-for-key': 'off',
'vue/require-prop-types': 'off',
'vue/require-default-prop': 'off',
'vue/max-attributes-per-line': 'off',
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never'
}],
'vue/singleline-html-element-content-newline': ['error', {
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ['vue-code-highlight', 'pre', 'textarea']
}],
'vue/html-closing-bracket-spacing': ['error', {
startTag: 'never',
endTag: 'never',
selfClosingTag: 'always'
}],
'import/prefer-default-export': 'off',
'import/extensions': [
'off',
'always',
{
js: 'never',
vue: 'never'
}
],
'vue/no-v-html': 'off',
'no-param-reassign': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
settings: {
'import/core-modules': ['electron']
}
};