-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.43 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/attributes-order': 'error',
'vue/no-confusing-v-for-v-if': 'error',
'vue/order-in-components': 'error',
'vue/this-in-template': 'error',
'vue/no-template-shadow': 'error',
'vue/prop-name-casing': 'error',
'vue/require-default-prop': 'error',
'vue/require-prop-types': 'error',
'vue/name-property-casing': 'error',
'vue/mustache-interpolation-spacing': 'error',
'vue/multiline-html-element-content-newline': 'error',
'vue/html-self-closing': 'error',
'vue/html-closing-bracket-newline': 'error',
'vue/html-closing-bracket-spacing': 'error',
'vue/html-end-tags': 'error',
'vue/html-indent': 'error',
'vue/html-quotes': 'error',
'vue/attribute-hyphenation': 'error',
'vue/no-multi-spaces': 'error',
'vue/no-spaces-around-equal-signs-in-attribute': 'error',
'vue/v-bind-style': 'error',
'vue/v-on-style': 'error',
'vue/singleline-html-element-content-newline': 'error',
'vue/component-name-in-template-casing': ['error', 'kebab-case', {
ignores: [],
}],
'max-len': 0,
'linebreak-style': ['error', 'unix'],
},
};