-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 1.02 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
/* eslint-disable */
module.exports = {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/vue3-essential', 'eslint:recommended'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'only-multiline',
exports: 'always',
functions: 'always-multiline',
},
],
semi: ['error', 'never'],
'vue/html-indent': ['error', 2],
'vue/max-attributes-per-line': 'off',
'indent-legacy': ['error', 2, { SwitchCase: 1 }],
'object-curly-spacing': ['error', 'always'],
'array-bracket-newline': ['error', { multiline: true, minItems: 2 }],
'array-element-newline': ['error', { multiline: true, minItems: 2 }],
'no-unused-vars': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
},
parserOptions: {
parser: 'babel-eslint',
},
}