-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
eslint-recommended.ts
35 lines (35 loc) · 1.1 KB
/
eslint-recommended.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* This is a compatibility ruleset that disables rules from eslint:recommended
* which are already handled by TypeScript.
*/
export default {
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
//Checked by Typescript - ts(2378)
'getter-return': 'off',
// Checked by Typescript - ts(2300)
'no-dupe-args': 'off',
// Checked by Typescript - ts(1117)
'no-dupe-keys': 'off',
// Checked by Typescript - ts(7027)
'no-unreachable': 'off',
// Checked by Typescript - ts(2367)
'valid-typeof': 'off',
// Checked by Typescript - ts(2588)
'no-const-assign': 'off',
// Checked by Typescript - ts(2588)
'no-new-symbol': 'off',
// Checked by Typescript - ts(2376)
'no-this-before-super': 'off',
// This is checked by Typescript using the option `strictNullChecks`.
'no-undef': 'off',
// This is already checked by Typescript.
'no-dupe-class-members': 'off',
// This is already checked by Typescript.
'no-redeclare': 'off',
},
},
],
};