-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
58 lines (56 loc) · 1.52 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
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.vue'],
},
extends: [
'eslint:recommended',
'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',
'@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', 'PascalCase'],
'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' },
},
{
files: ['*src/apis/openapi.ts'],
env: {
node: true,
},
rules: { '@typescript-eslint/no-explicit-any': 'off' },
},
],
reportUnusedDisableDirectives: true,
};