Skip to content

Commit 37c41ae

Browse files
committed
chore: eslint
1 parent 3d39b42 commit 37c41ae

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.eslintrc.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// @ts-check
2-
const { defineConfig } = require('eslint-define-config')
3-
module.exports = defineConfig({
1+
module.exports = {
42
root: true,
53
env: {
64
browser: true,
@@ -21,7 +19,6 @@ module.exports = defineConfig({
2119
extends: ['plugin:vue/vue3-recommended', 'prettier', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
2220
rules: {
2321
'vue/script-setup-uses-vars': 'error',
24-
'vue/no-reserved-component-names': 'off',
2522
'@typescript-eslint/ban-ts-ignore': 'off',
2623
'@typescript-eslint/explicit-function-return-type': 'off',
2724
'@typescript-eslint/no-explicit-any': 'off',
@@ -34,8 +31,20 @@ module.exports = defineConfig({
3431
'@typescript-eslint/ban-types': 'off',
3532
'@typescript-eslint/no-non-null-assertion': 'off',
3633
'@typescript-eslint/explicit-module-boundary-types': 'off',
37-
'@typescript-eslint/no-unused-vars': 'error',
38-
'no-unused-vars': 'error',
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+
],
3948
'space-before-function-paren': 'off',
4049

4150
'vue/attributes-order': 'off',
@@ -61,4 +70,4 @@ module.exports = defineConfig({
6170
],
6271
'vue/multi-word-component-names': 'off'
6372
}
64-
})
73+
}

0 commit comments

Comments
 (0)