-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
36 lines (36 loc) · 942 Bytes
/
.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
module.exports = {
extends: ['@nuxtjs/eslint-config-typescript'],
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
indent: [0, 2],
'@typescript-eslint/no-unused-vars': 'warn',
'vue/singleline-html-element-content-newline': [
0,
{
// 配合printWidth
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ['pre', 'textarea'],
}
],
'vue/multi-word-component-names': 'off',
'comma-dangle': [
'error',
{
// comma dangle
arrays: 'never',
objects: 'always', // 对象中最后一个属性 总是有分号
imports: 'never',
exports: 'never',
functions: 'never',
}
],
'vue/no-multiple-template-root': 0,
'vue/no-unused-vars': 1,
'vue/require-v-for-key': 0,
'no-console': 0,
'import/no-mutable-exports': 0,
},
}