-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (51 loc) · 1.15 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'eslint:recommended',
'@vue/typescript'
],
parserOptions: {
parser: '@typescript-eslint/parser'
},
rules: {
'@typescript-eslint/no-unused-vars': 'error',
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'vue/no-v-html': 'off',
'no-console': process.env.NODE_ENV === 'development' ? 'warn' : 'error',
'no-debugger': 'warn',
'no-tabs': 'off',
'no-var': 'error',
'accessor-pairs': 'off',
'no-use-before-define': 'off',
indent: ['error', 'tab', { SwitchCase: 1 }],
semi: ['error', 'never'],
quotes: ['error', 'single'],
'prefer-const': ['error'],
'arrow-parens': ['error', 'always'],
'no-return-assign': 'off',
curly: 'off',
'vue/html-indent': ['warn', 'tab', {
attribute: 1,
baseIndent: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: []
}],
'vue/no-mutating-props': 'off',
'object-property-newline': 'off',
'require-atomic-updates': 'off',
'require-await': 'off'
},
overrides: [
{
files: ['tests/**/*.[jt]s?(x)', 'tests/**/*.spec.[jt]s?(x)'],
env: {
jest: true,
},
},
]
}