-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
62 lines (62 loc) · 1.8 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
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
'./.eslintrc-auto-import.json',
],
env: {
browser: true,
node: true,
},
ignorePatterns: ['*.d.ts'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 2022,
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: ['@typescript-eslint', 'prettier', 'promise'],
rules: {
'arrow-body-style': 'off',
'comma-dangle': ['error', 'always-multiline'],
'prettier/prettier': 'warn',
'prefer-arrow-callback': 'off',
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
'vue/component-tags-order': [
'error',
{
order: ['template', 'script', 'style'],
},
],
'vue/define-macros-order': [
'warn',
{
order: ['defineProps', 'defineEmits'],
},
],
'vue/multi-word-component-names': 'off',
'vue/no-reserved-component-names': 'off',
'vue/no-template-target-blank': [
'error',
{
allowReferrer: false,
enforceDynamicLinks: 'always',
},
],
'vue/no-ref-object-destructure': 'error',
'vue/no-unused-refs': 'warn',
'vue/no-useless-v-bind': 'error',
'vue/prefer-true-attribute-shorthand': 'error',
'vue/no-v-html': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'no-console': ['warn'],
},
globals: {
Vue: 'readable',
},
}