-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.js
67 lines (67 loc) · 1.71 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
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser'
},
env: {
es6: true,
browser: true,
node: true,
},
extends: [
'plugin:vue/strongly-recommended',
'standard',
],
plugins: [
'@typescript-eslint'
],
rules: {
'vue/html-indent': ['error', 2, { 'attribute': 1 }],
'vue/script-indent': ['error', 2, {'baseIndent': 0}],
'vue/jsx-uses-vars': 'error',
'vue/require-v-for-key': 'off',
'vue/require-default-prop': 'off',
'vue/name-property-casing': 'off',
'vue/no-unused-vars': 'off',
'vue/max-attributes-per-line': [
'error', {
'singleline': 3,
'multiline': {
'max': 1,
'allowFirstLine': false,
},
}],
'vue/component-name-in-template-casing': [
'error', 'kebab-case', {
'ignores': [],
}],
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-useless-escape': 'off',
'indent': 'off',
'no-undef': 'off',
'no-new': 'off',
'no-unused-vars': 'off',
'comma-dangle': ['warn', 'always-multiline'],
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'import/export': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: {
delimiter: 'none'
},
singleline: {
delimiter: 'comma'
}
}],
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/type-annotation-spacing': 'error',
}
}
],
}