Skip to content

Commit

Permalink
chore: improve eslint ignore config
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusBorg committed Nov 7, 2022
1 parent c1acfe6 commit 575828f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/coverage
/dist
8 changes: 4 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier'
'@vue/eslint-config-prettier',
],
parserOptions: {
ecmaVersion: 'latest'
}
ecmaVersion: 'latest',
},
}
2 changes: 2 additions & 0 deletions src/typeTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const mixin = defineMixin({
msg: { type: String, required: true },
},
emits: {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
'update:show': (value?: any) => true,
},
data: () => ({
Expand All @@ -39,6 +40,7 @@ const mixin = defineMixin({

const testComposable = createComposableFromMixin(mixin)

/* eslint-disable @typescript-eslint/no-unused-vars */
const Comp = defineComponent({
setup() {
const state = testComposable()
Expand Down

0 comments on commit 575828f

Please sign in to comment.