@@ -10,7 +10,12 @@ module.exports = {
10
10
createDefaultProgram : false ,
11
11
} ,
12
12
plugins : [ /*'rxjs',*/ 'sonarjs' , '@tapsellorg' , 'unused-imports' ] ,
13
- extends : [ 'plugin:sonarjs/recommended' , 'plugin:@angular-eslint/recommended' , 'prettier' ] ,
13
+ extends : [
14
+ 'plugin:sonarjs/recommended' ,
15
+ 'plugin:@angular-eslint/recommended' ,
16
+ 'plugin:@typescript-eslint/recommended' ,
17
+ 'prettier' ,
18
+ ] ,
14
19
rules : {
15
20
// Eslint
16
21
'no-negated-in-lhs' : 'error' ,
@@ -28,7 +33,7 @@ module.exports = {
28
33
'no-cond-assign' : 'error' ,
29
34
'no-empty' : 'warn' ,
30
35
'no-redeclare' : 'warn' ,
31
- // 'class-methods-use-this': 'warn ', // This is producing a lot of warnings that aren't really important.
36
+ 'class-methods-use-this' : 'off ' , // This is producing a lot of warnings that aren't really important.
32
37
'prefer-const' : 'warn' ,
33
38
'no-console' : [ 'error' , { allow : [ 'error' , 'warn' , 'assert' ] } ] ,
34
39
eqeqeq : [ 'warn' , 'smart' ] ,
@@ -82,11 +87,9 @@ module.exports = {
82
87
'@typescript-eslint/array-type' : [ 'warn' , { default : 'array' } ] ,
83
88
'@typescript-eslint/no-this-alias' : 'warn' ,
84
89
'@typescript-eslint/no-unnecessary-boolean-literal-compare' : 'warn' ,
85
- // '@typescript-eslint/no-unnecessary-condition': 'warn', // TODO: uncomment when all projects are strict:true
86
- // '@typescript-eslint/no-unsafe-member-access': 'warn', // This is producing a lot of warnings that aren't really important.
87
90
'@typescript-eslint/prefer-includes' : 'error' ,
88
91
'@typescript-eslint/prefer-as-const' : 'warn' ,
89
- '@typescript-eslint/ prefer-nullish-coalescing ' : 'warn ' ,
92
+ 'prefer-optional-chain ' : 'off ' ,
90
93
'@typescript-eslint/prefer-optional-chain' : 'warn' ,
91
94
'@typescript-eslint/prefer-reduce-type-parameter' : 'warn' ,
92
95
// angular eslint
@@ -102,6 +105,26 @@ module.exports = {
102
105
'warn' ,
103
106
{ vars : 'all' , varsIgnorePattern : '^_' , args : 'after-used' , argsIgnorePattern : '^_' } ,
104
107
] ,
108
+ '@typescript-eslint/prefer-nullish-coalescing' : 'warn' ,
109
+ '@typescript-eslint/no-unnecessary-condition' : 'off' , // TODO: uncomment when all projects are strict:true
110
+ '@typescript-eslint/no-unsafe-member-access' : 'warn' , // This is producing a lot of warnings that aren't really important.
111
+ '@typescript-eslint/no-unsafe-return' : 'warn' ,
112
+ '@typescript-eslint/no-unsafe-assignment' : 'warn' ,
113
+ '@typescript-eslint/no-unsafe-argument' : 'warn' ,
114
+ '@typescript-eslint/no-unsafe-call' : 'warn' ,
115
+ 'prefer-rest-params' : 'off' ,
116
+ '@typescript-eslint/ban-types' : 'off' ,
117
+ '@typescript-eslint/no-explicit-any' : 'warn' ,
118
+ '@typescript-eslint/no-unnecessary-type-constraint' : 'warn' ,
119
+ '@typescript-eslint/consistent-indexed-object-style' : 'warn' ,
120
+ '@typescript-eslint/no-var-requires' : 'warn' ,
121
+ '@typescript-eslint/no-extraneous-class' : [
122
+ 'warn' ,
123
+ {
124
+ allowConstructorOnly : true ,
125
+ allowEmpty : true ,
126
+ } ,
127
+ ] ,
105
128
} ,
106
129
} ,
107
130
{
0 commit comments