-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
53 lines (47 loc) · 1.25 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
module.exports = {
root: true,
extends: [
'plugin:vue/recommended',
'@vue/standard',
'@vue/typescript',
],
plugins: [
'eslint-plugin-html',
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
indent: 0,
'@typescript-eslint/indent': [
'error',
2,
],
quotes: [1, 'single', { avoidEscape: true, allowTemplateLiterals: true }],
// unused vars
'no-unused-vars': 0,
'vue/no-unused-vars': 1,
'@typescript-eslint/no-unused-vars': [1, { args: 'none' }],
// false positives
'vue/valid-v-slot': 0,
'generator-star-spacing': ['error', { before: false, after: true }],
'comma-dangle': [
'error',
'always-multiline',
],
'vue/no-v-html': 1,
'vue/singleline-html-element-content-newline': 0,
'vue/html-closing-bracket-newline': ['error', { multiline: 'never' }],
'vue/first-attribute-linebreak': ['error', {
singleline: 'ignore',
multiline: 'beside',
}],
'vue/max-attributes-per-line': ['error', {
singleline: 2,
multiline: 1,
}],
'vue/no-parsing-error': 2,
// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},
}