-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
68 lines (67 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
'extends': [
'eslint:recommended',
'@vue/typescript/recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier-vue/recommended',
'prettier',
],
parserOptions: {
ecmaVersion: 'latest'
},
plugins: ['prettier', 'import'],
rules: {
'vue/no-deprecated-slot-attribute': 'off',
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
'vue/no-v-html': 'off',
'no-mixed-operators': 'off',
'vue/html-button-has-type': 'error',
'unicorn/prefer-includes': 'off',
'space-before-function-paren': 'off',
'curly': 'error',
'@typescript-eslint/no-var-requires': 'off',
'vue/valid-v-slot': 'off',
'vue/no-unused-vars': 'warn',
'@typescript-eslint/quotes': ['error', 'single'],
'@typescript-eslint/consistent-type-imports': ['off'],
"no-restricted-imports": ["error", {
"patterns": [".*"]
}],
'vue/component-tags-order': [
'error',
{
order: ['template', 'script', 'style'],
},
],
'vue/define-macros-order': [
'error',
{
order: ['defineProps', 'defineEmits'],
},
],
'import/order': [
'error',
{
'newlines-between': 'always',
'groups': [
'index',
['sibling', 'parent'],
'internal',
'external',
'builtin',
'object',
'type',
],
},
],
'vue/v-on-event-hyphenation': 'off',
'vue/require-default-prop': 'off',
'prettier-vue/prettier': ['error'],
'@typescript-eslint/ban-ts-comment': 'off',
}
}