@@ -6,52 +6,34 @@ module.exports = {
66 } ,
77 extends : [
88 "eslint:recommended" ,
9- "plugin:@typescript-eslint/recommended" ,
10- "plugin:@typescript-eslint/recommended-requiring-type-checking" ,
119 "plugin:import/errors" ,
1210 "plugin:import/warnings" ,
13- "plugin:import/typescript" ,
1411 ] ,
15- parser : "@typescript-eslint/parser" ,
1612 parserOptions : {
17- // Find the tsconfig.json nearest each source file .
18- project : true ,
13+ // Support `??` operator .
14+ ecmaVersion : 2020 ,
1915 } ,
20- plugins : [ "@typescript-eslint" , " import"] ,
16+ plugins : [ "import" ] ,
2117 root : true ,
2218 rules : {
2319 curly : [ "error" , "all" ] ,
2420 eqeqeq : [ "error" , "always" ] ,
2521 "no-implicit-coercion" : [ "error" ] ,
2622 // https://github.com/eslint/eslint/blob/master/docs/rules/no-sequences.md#when-not-to-use-it
2723 "no-restricted-syntax" : [ "error" , "SequenceExpression" ] ,
28- "prefer-const" : [ "error" , { destructuring : "all" } ] ,
29- "require-await" : [ "error" ] ,
30- "@typescript-eslint/explicit-function-return-type" : [ "error" ] ,
31- "@typescript-eslint/explicit-module-boundary-types" : [ "error" ] ,
32- "@typescript-eslint/no-unused-expressions" : [ "error" ] ,
33- "@typescript-eslint/no-unused-vars" : [
24+ "no-unused-vars" : [
3425 "error" ,
3526 {
3627 argsIgnorePattern : "^_" ,
3728 caughtErrorsIgnorePattern : "^_" ,
3829 varsIgnorePattern : "^_" ,
3930 } ,
4031 ] ,
41- "@typescript-eslint/no-use-before-define" : [ "error" , { functions : false } ] ,
42- "@typescript-eslint/strict-boolean-expressions" : [
43- "error" ,
44- {
45- allowString : false ,
46- allowNumber : false ,
47- allowNullableObject : false ,
48- } ,
49- ] ,
50- "@typescript-eslint/switch-exhaustiveness-check" : [ "error" ] ,
32+ "prefer-const" : [ "error" , { destructuring : "all" } ] ,
33+ "require-await" : [ "error" ] ,
5134 } ,
5235 settings : {
5336 "import/resolver" : {
54- typescript : true ,
5537 node : true ,
5638 } ,
5739 } ,
0 commit comments