-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.24 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
module.exports = {
root: true,
'env': {
'browser': true,
'es2021': true,
},
'extends': [
'@nuxt/eslint-config',
],
'overrides': [],
'parserOptions': {
'ecmaVersion': 'latest',
'sourceType': 'module',
},
'plugins': [
'vue',
],
'ignorePatterns': ['node_modules/', 'dist/', '.nuxt/', '.output/'],
'rules': {
'vue/html-indent': ['error', 2],
'vue/no-v-html': 'off',
'vue/multi-word-component-names': 'off',
'vue/require-prop-types': 'off',
'vue/no-template-shadow': 'off',
'vue/v-on-event-hyphenation': [2, 'never'],
'eslint-disable-next-line': 'off',
'vue/max-attributes-per-line': ['error', {
'singleline': {
'max': 3,
},
'multiline': {
'max': 1,
},
}],
'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,
}],
'eol-last': ['error', 'always'],
'no-multiple-empty-lines': ['error', { 'max': 1, 'maxEOF': 0 }],
},
}