Skip to content

Commit 71a874d

Browse files
committed
fix: eslint
1 parent 85f9380 commit 71a874d

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

.eslintrc.js

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
module.exports = {
1+
// @ts-check
2+
const { defineConfig } = require('eslint-define-config')
3+
module.exports = defineConfig({
24
root: true,
35
env: {
46
browser: true,
@@ -16,9 +18,16 @@ module.exports = {
1618
jsx: true
1719
}
1820
},
19-
extends: ['plugin:vue/vue3-recommended', 'prettier', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
21+
extends: [
22+
'plugin:vue/vue3-recommended',
23+
'plugin:@typescript-eslint/recommended',
24+
'prettier',
25+
'plugin:prettier/recommended'
26+
],
2027
rules: {
2128
'vue/script-setup-uses-vars': 'error',
29+
'vue/no-reserved-component-names': 'off',
30+
'vue/no-setup-props-destructure': 'off',
2231
'@typescript-eslint/ban-ts-ignore': 'off',
2332
'@typescript-eslint/explicit-function-return-type': 'off',
2433
'@typescript-eslint/no-explicit-any': 'off',
@@ -31,20 +40,8 @@ module.exports = {
3140
'@typescript-eslint/ban-types': 'off',
3241
'@typescript-eslint/no-non-null-assertion': 'off',
3342
'@typescript-eslint/explicit-module-boundary-types': 'off',
34-
'@typescript-eslint/no-unused-vars': [
35-
'error',
36-
{
37-
argsIgnorePattern: '^_',
38-
varsIgnorePattern: '^_'
39-
}
40-
],
41-
'no-unused-vars': [
42-
'error',
43-
{
44-
argsIgnorePattern: '^_',
45-
varsIgnorePattern: '^_'
46-
}
47-
],
43+
'@typescript-eslint/no-unused-vars': 'off',
44+
'no-unused-vars': 'off',
4845
'space-before-function-paren': 'off',
4946

5047
'vue/attributes-order': 'off',
@@ -68,6 +65,7 @@ module.exports = {
6865
math: 'always'
6966
}
7067
],
71-
'vue/multi-word-component-names': 'off'
68+
'vue/multi-word-component-names': 'off',
69+
'vue/no-v-html': 'off'
7270
}
73-
}
71+
})

0 commit comments

Comments
 (0)