-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
34 lines (33 loc) · 884 Bytes
/
.eslintrc.cjs
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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
ignorePatterns: ['*.config.js'],
extends: ['plugin:vue/vue3-essential', 'eslint:recommended'],
env: {
'vue/setup-compiler-macros': true,
node: true,
},
rules: {
indent: ['error', 4, {
SwitchCase: 1,
}],
'comma-dangle': ['error', 'always-multiline'],
semi: [2, 'always'],
quotes: [2, 'single'],
'no-console': 'off',
'no-unused-vars': 'off',
'no-trailing-spaces': 'error',
'no-multiple-empty-lines': ['error', {
max: 1,
}],
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 20,
},
multiline: {
max: 1,
},
}],
},
};