-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
34 lines (34 loc) · 1.04 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
module.exports = {
root: true,
env: {
es2020: true,
browser: true,
node: true,
},
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/typescript'],
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'indent': ['error', 4],
'arrow-parens': 'off',
'no-unused-vars': ['warn'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'space-before-function-paren': ['error', 'never'],
'vue/html-indent': ['error', 4],
'vue/max-attributes-per-line': ['error', {
'singleline': 6,
'multiline': {
'max': 1,
'allowFirstLine': true
}
}],
'vue/html-closing-bracket-newline': ['error', {
'singleline': 'never',
'multiline': 'never'
}],
},
};