Skip to content

Commit 575828f

Browse files
committed
chore: improve eslint ignore config
1 parent c1acfe6 commit 575828f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Diff for: .eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
/coverage
12
/dist

Diff for: .eslintrc.cjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ require('@rushstack/eslint-patch/modern-module-resolution')
33

44
module.exports = {
55
root: true,
6-
'extends': [
6+
extends: [
77
'plugin:vue/vue3-essential',
88
'eslint:recommended',
99
'@vue/eslint-config-typescript',
10-
'@vue/eslint-config-prettier'
10+
'@vue/eslint-config-prettier',
1111
],
1212
parserOptions: {
13-
ecmaVersion: 'latest'
14-
}
13+
ecmaVersion: 'latest',
14+
},
1515
}

Diff for: src/typeTest.ts

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const mixin = defineMixin({
1818
msg: { type: String, required: true },
1919
},
2020
emits: {
21+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2122
'update:show': (value?: any) => true,
2223
},
2324
data: () => ({
@@ -39,6 +40,7 @@ const mixin = defineMixin({
3940

4041
const testComposable = createComposableFromMixin(mixin)
4142

43+
/* eslint-disable @typescript-eslint/no-unused-vars */
4244
const Comp = defineComponent({
4345
setup() {
4446
const state = testComposable()

0 commit comments

Comments
 (0)