Skip to content

Commit

Permalink
chore: update eslint rules for <script setup> (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Jun 22, 2021
1 parent e4c33d1 commit ba98659
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,14 @@ module.exports = {
// To your `settings.json`, from VSCode.
//
'vue/no-multiple-template-root': 0
}
},
// controlled by Volar
overrides: [
{
files: ['*.vue'],
rules: {
'@typescript-eslint/no-unused-vars': 'off'
}
}
]
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"moduleResolution": "Node",
"lib": ["ESNext", "DOM"],
"esModuleInterop": true,
"noUnusedLocals": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"types": ["@types/node", "@nuxt/types", "nuxt-i18n", "nuxt-windicss"],
Expand Down

1 comment on commit ba98659

@vercel
Copy link

@vercel vercel bot commented on ba98659 Jun 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.