-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
51 lines (51 loc) · 1.3 KB
/
.eslintrc.cjs
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,
browser: true,
'vue/setup-compiler-macros': true,
},
extends: ['plugin:vue/vue3-recommended', 'eslint:recommended', '@vue/typescript/recommended'],
plugins: ['vue', 'simple-import-sort', 'unused-imports'],
rules: {
'no-console': 'warn',
'no-alert': 'error',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'unused-imports/no-unused-imports': 'error',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-explicit-any': 'off',
'vue/max-attributes-per-line': 'off',
'vue/no-v-html': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/html-self-closing': 'off',
'vue/attributes-order': [
'error',
{
order: [
'LIST_RENDERING',
'CONDITIONALS',
'SLOT',
'RENDER_MODIFIERS',
'TWO_WAY_BINDING',
'DEFINITION',
'GLOBAL',
'UNIQUE',
'ATTR_DYNAMIC',
'ATTR_SHORTHAND_BOOL',
'ATTR_STATIC',
'CONTENT',
'OTHER_DIRECTIVES',
'EVENTS',
],
},
],
},
};