generated from webdevnerdstuff/vuetify-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
152 lines (152 loc) · 3.25 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
module.exports = {
env: {
browser: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/essential',
'plugin:@typescript-eslint/recommended',
'@vue/typescript/recommended',
'prettier',
'./.eslintrc-auto-import.json',
],
ignorePatterns: [
'.eslintrc.js',
'stylelint.config.js',
'vite.build.config.mts',
'vite.config.mts',
'*.bk.vue',
],
overrides: [
{
files: [
'**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
globals: {
Entry: true,
},
parserOptions: {
parser: '@typescript-eslint/parser',
},
plugins: [
'@typescript-eslint',
'import',
'prettier',
'vue',
],
root: true,
settings: {
'import/resolver': {
},
},
rules: {
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/ban-types': [
'error',
{
'extendDefaults': true,
'types': {
'{}': false,
}
},
],
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-explicit-any': 0,
'brace-style': ['error', 'stroustrup'],
'default-case': [
'error', {
commentPattern: '^skip\\sdefault',
},
],
'func-names': ['error', 'never'],
'function-paren-newline': 0,
'import/no-self-import': 0,
'import/no-extraneous-dependencies': 0,
'implicit-arrow-linebreak': ['warn', 'beside'],
indent: [2, 'tab', { SwitchCase: 1 }],
'no-tabs': [0, { allowIndentationTabs: true }],
'linebreak-style': 0,
'max-len': 0,
'no-else-return': ['error', { allowElseIf: true }],
'no-console': ['warn', { allow: ['warn', 'error', 'info', 'trace'] }],
'no-const-assign': 'error',
'no-debugger': 0,
'no-new': 0,
'no-undef': 0,
'no-unused-vars': 1,
'no-use-before-define': 0,
'no-useless-escape': 0,
'no-param-reassign': [
'error', {
props: true,
ignorePropertyModificationsFor: ['field', 'model', 'el', 'item', 'state', 'Vue', 'vue'],
},
],
'no-underscore-dangle': [
'error', {
allow: ['_data'],
allowAfterThis: true,
},
],
'no-plusplus': [
'error', { allowForLoopAfterthoughts: true },
],
'object-curly-newline': ['error', {
ObjectPattern: { multiline: false },
}],
'operator-linebreak': ['error', 'after'],
'prefer-destructuring': [
'error', {
array: false,
object: false,
},
{
enforceForRenamedProperties: false,
},
],
'space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
}],
'vue/attributes-order': ['error', {
'alphabetical': true,
'order': [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
['UNIQUE', 'SLOT'],
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'OTHER_ATTR',
'EVENTS',
'CONTENT',
],
}],
'vue/html-closing-bracket-newline': 0,
'vue/html-indent': 0,
'vue/html-self-closing': 0,
'vue/max-attributes-per-line': 0,
'vue/no-multiple-template-root': 0,
'vue/no-template-shadow': 0,
'vue/no-v-for-template-key': 0,
'vue/no-v-html': 0,
'vue/singleline-html-element-content-newline': 0,
'vue/sort-keys': ['error', 'asc', {
caseSensitive: true,
ignoreChildrenOf: ['model', 'defineProps'],
ignoreGrandchildrenOf: ['computed', 'directives', 'inject', 'props', 'watch', 'defineProps'],
minKeys: 2,
natural: true,
}],
'vue/valid-template-root': 0,
},
};