-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
80 lines (80 loc) · 1.86 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
68
69
70
71
72
73
74
75
76
77
78
79
80
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:vue/essential',
'plugin:@typescript-eslint/recommended',
'@nuxtjs/eslint-config-typescript'
],
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
plugins: [
'vue',
'@typescript-eslint'
],
rules: {
'vue/no-v-html': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-tabs': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'import/no-named-as-default': 'off',
'vue/no-template-shadow': 'off',
'no-var': 'error',
'new-cap': 'off',
'unused-import': 'off',
'space-before-function-paren': 'off',
camelcase: 'off',
'accessor-pairs': 'off',
'import/default': 'off',
'import/no-mutable-exports': 'off',
'vue/no-multiple-template-root': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-empty-function': 'off',
indent: ['off', 'tab', { SwitchCase: 1 }],
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
semi: ['error', 'never'],
quotes: ['error', 'single'],
'prefer-const': ['error'],
'arrow-parens': ['error', 'always'],
'no-return-assign': 'off',
'vue/multi-word-component-names': '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__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}