@@ -31,7 +31,9 @@ module.exports = {
3131 '@typescript-eslint/adjacent-overload-signatures' : 'error' ,
3232 '@typescript-eslint/array-type' : [
3333 'error' ,
34- 'array-simple'
34+ {
35+ default : 'array-simple'
36+ }
3537 ] ,
3638 '@typescript-eslint/await-thenable' : 'error' ,
3739 '@typescript-eslint/ban-types' : [
@@ -77,6 +79,14 @@ module.exports = {
7779 ] ,
7880 '@typescript-eslint/class-name-casing' : 'error' ,
7981
82+ '@typescript-eslint/consistent-type-assertions' : [
83+ 'error' ,
84+ {
85+ assertionStyle : 'as' ,
86+ objectLiteralTypeAssertions : 'allow-as-parameter'
87+ }
88+ ] ,
89+
8090 // Disabled because it's not fully usable yet:
8191 // https://github.com/typescript-eslint/typescript-eslint/issues/142
8292 // '@typescript-eslint/consistent-type-definitions': [
@@ -132,7 +142,6 @@ module.exports = {
132142 }
133143 ] ,
134144 '@typescript-eslint/member-ordering' : 'error' ,
135- '@typescript-eslint/no-angle-bracket-type-assertion' : 'error' ,
136145 'no-array-constructor' : 'off' ,
137146 '@typescript-eslint/no-array-constructor' : 'error' ,
138147 'no-empty-function' : 'off' ,
@@ -187,13 +196,6 @@ module.exports = {
187196 // https://github.com/typescript-eslint/typescript-eslint/issues/202
188197 // '@typescript-eslint/no-non-null-assertion': 'error',
189198
190- '@typescript-eslint/no-object-literal-type-assertion' : [
191- 'error' ,
192- {
193- allowAsParameter : true
194- }
195- ] ,
196-
197199 // TODO: Enable this again when I target ESM output in all my TypeScript projects
198200 // '@typescript-eslint/no-require-imports': 'error',
199201
0 commit comments