Getting this typescript in my brand new Vue3 with typescript project. I have another Vue3 project without typescript added and this is not an issue there, with the eslint rules.
I have found some answers online and updated the following:
tsconfig
{
"compilerOptions": {
"noUnusedLocals": false
}
}
Added a dev.tsconfig.json file:
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noUnusedLocals": false,
"noUnusedParameters": false
}
}
Also added the following rules to eslintrc.cjs
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { 'varsIgnorePattern': '^_', "argsIgnorePattern": "^_" }],
'no-unused-vars': ["error", { "argsIgnorePattern": "^_" }]
semi: [0, 'error', 'never'],
arrowParens: [0, 'error', 'never'],
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'vue/multi-word-component-names': 'off',
},
Also for vscode extensions I have these enabled:
vetur volar TypeScript Vue Plugin(Volar)
However cannot get rid of this error
'TheWelcome' is declared but its value is never read.Vetur(6133)
