-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
48 lines (46 loc) · 1.31 KB
/
eslint.config.mjs
File metadata and controls
48 lines (46 loc) · 1.31 KB
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
import vuetify from 'eslint-config-vuetify'
import autoImport from './.eslintrc-auto-import.mjs'
// Transform auto-import globals from legacy format to flat config format
const autoImportGlobals = {
languageOptions: {
globals: autoImport.globals,
},
}
export default vuetify(
{
vue: true,
ts: true,
},
autoImportGlobals,
{
rules: {
'no-useless-constructor': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/no-invalid-this': 'off',
'unicorn/no-array-callback-reference': 'off',
'unicorn/no-array-sort': 'off',
'unicorn/prefer-array-some': 'off',
'unicorn/prefer-code-point': 'off',
'unicorn/prefer-string-slice': 'off',
'unicorn/prefer-number-properties': 'off',
},
},
{
files: ['**/*.vue'],
rules: {
'vue/multi-word-component-names': 'off',
'vue/html-self-closing': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/attributes-order': 'off',
'vue/custom-event-name-casing': 'off',
'vue/require-explicit-emits': 'warn',
'vue/no-template-shadow': 'warn',
},
},
{
ignores: ['node_modules/', 'dist/', '.husky/', 'tools/'],
}
)