Skip to content

Commit 5b4ffff

Browse files
committed
feat: extends from typescript-eslint, instead of turning off rules manually
1 parent f14769b commit 5b4ffff

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

index.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ module.exports = {
55
// in turn delegates to the parser, specified in `parserOptions.parser`:
66
// https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
77
parserOptions: {
8-
parser: require.resolve('@typescript-eslint/parser')
8+
parser: '@typescript-eslint/parser'
99
},
10+
extends: [
11+
'plugin:@typescript-eslint/eslint-recommended'
12+
],
1013
rules: {
11-
// https://typescript-eslint.io/parser
12-
'no-undef': 'off',
14+
// The core 'no-unused-vars' rules does not work with type definitions
1315
'no-unused-vars': 'off',
16+
1417
// https://github.com/typescript-eslint/typescript-eslint/issues/46
18+
// And several other bugs
1519
// '@typescript-eslint/no-unused-vars': 'error',
1620

1721
// temporary fix for https://github.com/vuejs/vue-cli/issues/1922

0 commit comments

Comments
 (0)