-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
113 lines (113 loc) · 3.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? ['error', { allow: ['warn', 'error'] }] : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/no-v-html': 0,
'vue/no-parsing-error': ['error', {
'invalid-first-character-of-tag-name': false
}],
'no-underscore-dangle': 0,
'arrow-body-style': 0,
'no-plusplus': 0,
'no-prototype-builtins': 0,
'no-shadow': 0,
'linebreak-style': 0,
'no-param-reassign': ['error', { props: false }],
'no-useless-return': 2,
'arrow-parens': 0,
'max-len': 0,
'generator-star-spacing': 'off',
'space-before-function-paren': ['error', 'always'],
semi: ['error', 'never'],
'comma-dangle': ['error', 'never'],
curly: ['error', 'all'],
eqeqeq: ['error', 'always'],
'no-empty-function': 'error',
'no-eq-null': 'error',
'no-multi-spaces': 'error',
'no-loop-func': 'error',
'no-undefined': 0,
'no-use-before-define': ['error', { functions: true, classes: true }],
'array-bracket-spacing': ['error', 'never'],
'array-element-newline': ['error', 'consistent'],
'block-spacing': 'error',
'brace-style': ['error', '1tbs'],
'no-multi-assign': 0,
'comma-spacing': ['error', { before: false, after: true }],
'comma-style': ['error', 'last'],
'computed-property-spacing': ['error', 'never'],
indent: ['error', 2, {
SwitchCase: 1, VariableDeclarator: 'first', MemberExpression: 1, ObjectExpression: 1, ImportDeclaration: 1
}],
'import/prefer-default-export': 'off',
'vue/attributes-order': 'error',
'vue/multiline-html-element-content-newline': 2,
'vue/html-closing-bracket-spacing': 2,
'vue/html-closing-bracket-newline': 'error',
'vue/no-spaces-around-equal-signs-in-attribute': 'error',
'vue/no-multi-spaces': 'error',
'vue/no-shared-component-data': 'error',
'vue/require-valid-default-prop': 'error',
'vue/require-render-return': 'error',
'vue/use-v-on-exact': ['error'],
'vue/v-on-style': 'error',
'vue/valid-template-root': 2,
'vue/valid-v-bind': 'error',
'vue/v-bind-style': 'error',
'vue/attribute-hyphenation': 'error',
'vue/html-end-tags': 'error',
'vue/html-indent': ['error', 2, {
attribute: 1,
baseIndent: 1,
closeBracket: 0,
alignAttributesVertically: true
}],
'vue/html-quotes': 'error',
'vue/html-self-closing': ['error', {
html: {
void: 'never',
normal: 'always',
component: 'always'
},
svg: 'always',
math: 'always'
}],
'vue/max-attributes-per-line': ['error', {
singleline: 1,
multiline: {
max: 1
}
}],
'vue/mustache-interpolation-spacing': ['error', 'always'],
'vue/name-property-casing': ['error', 'PascalCase'],
'vue/no-template-shadow': 'error',
'vue/require-default-prop': 'error',
'vue/singleline-html-element-content-newline': ['error', {
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true
}],
'vue/no-confusing-v-for-v-if': 'error',
'vue/this-in-template': ['error', 'never'],
'import/no-cycle': 'off',
'import/extensions': ['error', {
js: 'ignorePackages',
json: 'ignorePackages',
vue: 'ignorePackages'
}],
'import/no-unresolved': ['error', {
ignore: ['@/']
}],
'import/named': 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}