diff --git a/.eslintrc.js b/.eslintrc.js index 2bf97a3ba..b72b7d42e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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' + } + } + ] } diff --git a/tsconfig.json b/tsconfig.json index 2d30c4e24..73becb832 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"],