-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.23 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,
env: {
browser: true,
node: true,
'es2021': true,
},
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:nuxt/recommended',
'plugin:vue/vue3-recommended',
],
plugins: ['@typescript-eslint'],
rules: {
'vue/html-indent': ['error', 2],
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 3,
},
multiline: {
max: 1,
},
}],
'vue/v-on-event-hyphenation': 'off',
'vue/require-explicit-emits': 'off',
'@typescript-eslint/no-var-requires': 'off',
'vue/multi-word-component-names': 'off',
'no-unused-vars': 1,
'no-console': 1,
'no-undef': 0,
'quotes': [2, 'single', {
'avoidEscape': true,
'allowTemplateLiterals': true,
}],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': [2, {
'before': false,
'after': true,
}],
'comma-style': [2, 'last'],
'indent': [2, 2, {
'SwitchCase': 1,
}],
'no-trailing-spaces': 'error',
'eol-last': ['error', 'always'],
'no-multiple-empty-lines': ['error', { 'max': 1, 'maxEOF': 0 }],
},
};