Skip to content

Commit dbbb6e5

Browse files
committed
feat: add an "recommended" ruleset
1 parent 9a6765c commit dbbb6e5

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

index.js

-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,5 @@ module.exports = {
1313
rules: {
1414
// The core 'no-unused-vars' rules does not work with type definitions
1515
'no-unused-vars': 'off',
16-
17-
// https://github.com/typescript-eslint/typescript-eslint/issues/46
18-
// And several other bugs
19-
// '@typescript-eslint/no-unused-vars': 'error',
2016
}
2117
}

recommended.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
extends: ['./index'],
3+
4+
overrides: [
5+
{
6+
files: ['*.ts', '*.tsx'],
7+
// the ts-eslint recommended ruleset sets the parser so we need to set it back
8+
parser: 'vue-eslint-parser',
9+
extends: ['plugin:@typescript-eslint/recommended'],
10+
rules: {
11+
'@typescript-eslint/explicit-function-return-type': 'off'
12+
}
13+
},
14+
{
15+
files: ['shims-tsx.d.ts'],
16+
rules: {
17+
'@typescript-eslint/no-empty-interface': 'off',
18+
'@typescript-eslint/no-explicit-any': 'off',
19+
'@typescript-eslint/member-delimiter-style': 'off',
20+
'@typescript-eslint/no-unused-vars': 'off'
21+
}
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)