-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslintrc.ts
47 lines (47 loc) · 1.12 KB
/
eslintrc.ts
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
export = {
env: {
browser: true,
es2020: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/vue',
],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
warnOnUnsupportedTypeScriptVersion: false,
extraFileExtensions: ['.vue'],
},
plugins: ['@typescript-eslint'],
rules: {
quotes: ['error', 'single'],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'vue/no-v-html': 'error',
'vue/v-bind-style': 'off',
'vue/v-on-style': 'off',
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
{
ignores: [
'keep-alive',
'transition',
'transition-group',
'component',
'slot',
'router-link',
'router-view',
'nuxt-link',
],
},
],
},
}