generated from sapphi-red/vite-boilerplate-plus
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
69 lines (69 loc) · 1.73 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
63
64
65
66
67
68
69
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser'
},
extends: [
'eslint:recommended',
'./eslint-vue-ts-recommended.js',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
'prettier'
],
rules: {
'no-console': 'warn',
'no-debugger': 'warn',
'no-empty': ['error', { allowEmptyCatch: true }],
eqeqeq: 'error',
'vue/eqeqeq': 'error',
'no-restricted-imports': [
'error',
{
name: '/@/lib/apis/generated',
message: 'Please use /@/lib/apis instead.'
}
],
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'none'
},
singleline: {
delimiter: 'semi'
}
}
],
'@typescript-eslint/consistent-type-imports': 'error',
'vue/require-default-prop': 'off',
'vue/block-lang': [
'error',
{
script: { lang: 'ts' },
style: { lang: 'scss' }
}
],
'vue/component-api-style': ['error', ['script-setup']],
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/custom-event-name-casing': ['error', 'camelCase'],
'vue/v-on-event-hyphenation': ['error', 'always', { autofix: true }],
'vue/v-on-function-call': 'error',
'vue/no-template-target-blank': 'error',
'vue/prefer-true-attribute-shorthand': 'error',
'vue/prefer-import-from-vue': 'error'
},
overrides: [
{
// 直下のファイル
files: ['*.{js,mjs}'],
excludedFiles: ['*/**/*.{js,mjs}'],
env: {
node: true
},
rules: {
'@typescript-eslint/no-var-requires': 'off'
}
}
],
reportUnusedDisableDirectives: true
}