-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (47 loc) · 1.26 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
module.exports = {
root: true,
env: {
node: true
},
extends: ['plugin:vue/essential', '@vue/prettier'],
plugins: ['simple-import-sort', 'import'],
rules: {
'no-console': 0,
'no-useless-escape': 0,
'prettier/prettier': [
'error',
{
printWidth: 120,
singleQuote: true,
semi: false,
trailingComma: 'none',
bracketSpacing: true,
jsxBracketSameLine: false,
insertPragma: false,
requirePragma: false
}
],
'import/no-useless-path-segments': 'error',
'import/no-mutable-exports': 'error',
'import/no-duplicates': 'error',
'import/newline-after-import': 'error',
'import/exports-last': 'error',
'import/group-exports': 'error',
'simple-import-sort/sort': 'error',
'vue/v-on-style': 'error',
'vue/v-bind-style': 'error',
'vue/html-quotes': 'error',
'vue/no-spaces-around-equal-signs-in-attribute': 'error',
'vue/no-multi-spaces': 'error',
'vue/prop-name-casing': 'error',
'vue/attributes-order': 'error',
'vue/order-in-components': 'error',
'vue/this-in-template': 'error',
'vue/component-name-in-template-casing': ['error', 'PascalCase', {
ignores: []
}]
},
parserOptions: {
parser: 'babel-eslint'
}
}