@@ -11,6 +11,7 @@ module.exports = {
1111 } ,
1212 rules : {
1313 camelcase : 'off' ,
14+ 'no-array-constructor' : 'off' ,
1415 'no-restricted-globals' : 'off' , // conflicts with typescript, @see https://github.com/eslint/typescript-eslint-parser/issues/350
1516 'no-undef' : 'off' , // conflicts with typescript
1617 'no-unused-vars' : 'off' , // disabled in favor of `typescript/no-unused-vars`
@@ -44,29 +45,29 @@ module.exports = {
4445 'import/no-named-as-default-member' : 'off' , // conflicts with typescript
4546 'import/no-named-as-default' : 'off' , // conflicts with typescript
4647 // https://github.com/nzakas/eslint-plugin-typescript
47- 'typescript/adjacent-overload-signatures' : 'error' ,
48- 'typescript/class-name-casing' : 'error' ,
48+ 'typescript/adjacent-overload-signatures' : 'off' , // TSLint is better at this
49+ 'typescript/class-name-casing' : 'off' , // TSLint is better at this
4950 'typescript/explicit-function-return-type' : 'off' ,
50- 'typescript/explicit-member-accessibility' : 'error' ,
51- 'typescript/interface-name-prefix' : 'error' ,
51+ 'typescript/explicit-member-accessibility' : 'off' , // TSLint is better at this
52+ 'typescript/interface-name-prefix' : 'off' , // TSLint is better at this
5253 'typescript/member-delimiter-style' : 'off' ,
5354 'typescript/member-naming' : 'off' ,
54- 'typescript/member-ordering' : 'error' ,
55- 'typescript/no-angle-bracket-type-assertion' : 'error' ,
55+ 'typescript/member-ordering' : 'off' , // type annotations should come first
56+ 'typescript/no-angle-bracket-type-assertion' : 'off' , // TSLint is better at this
5657 'typescript/no-array-constructor' : 'error' ,
57- 'typescript/no-empty-interface' : 'error' ,
58- 'typescript/no-explicit-any' : 'off' ,
59- 'typescript/no-namespace' : [ 'error ', { allowDefinitionFiles : true } ] ,
60- 'typescript/no-non-null-assertion' : 'off' ,
61- 'typescript/no-parameter-properties' : 'off' ,
62- 'typescript/no-triple-slash-reference' : 'error' ,
63- 'typescript/no-type-alias' : 'off' ,
58+ 'typescript/no-empty-interface' : 'off' , // TSLint is better at this
59+ 'typescript/no-explicit-any' : 'off' , // TSLint is better at this
60+ 'typescript/no-namespace' : 'off ', // TSLint is better at this
61+ 'typescript/no-non-null-assertion' : 'off' , // TSLint is better at this
62+ 'typescript/no-parameter-properties' : 'off' , // TSLint is better at this
63+ 'typescript/no-triple-slash-reference' : 'off' , // TSLint is better at this
64+ 'typescript/no-type-alias' : 'off' , // TSLint is better at this
6465 'typescript/no-unused-vars' : 'error' ,
6566 'typescript/no-use-before-define' : [
6667 'error' ,
6768 { functions : true , classes : true , variables : true } ,
6869 ] ,
69- 'typescript/prefer-namespace-keyword' : 'error' ,
70- 'typescript/type-annotation-spacing' : 'off' ,
70+ 'typescript/prefer-namespace-keyword' : 'off' , // TSLint is better at this
71+ 'typescript/type-annotation-spacing' : 'off' , // not necessary with prettier
7172 } ,
7273} ;
0 commit comments