@@ -42,9 +42,9 @@ const config = {
4242 'spaced-comment' : 'off' ,
4343 'no-lonely-if' : 'off' ,
4444 'max-classes-per-file' : 'off' ,
45-
4645 // [no-return-assign should be configurable to ignore arrow-functions](https://github.com/eslint/eslint/issues/9471)
4746 'no-return-assign' : 'off' ,
47+ camelcase : 'off' ,
4848
4949 'prettier/prettier' : 'error' ,
5050
@@ -53,9 +53,13 @@ const config = {
5353 'import/prefer-default-export' : 'off' ,
5454 'import/extensions' : 'off' ,
5555
56- 'jsx-a11y/label-has-for' : 'off' ,
57- 'jsx-a11y/label-has-associated-control' : 'off' ,
58- 'jsx-a11y/iframe-has-title' : 'off' ,
56+ // https://github.com/typescript-eslint/typescript-eslint/blob/v4.1.0/packages/eslint-plugin/docs/rules/no-use-before-define.md
57+ 'no-use-before-define' : 'off' ,
58+ '@typescript-eslint/no-use-before-define' : 'error' ,
59+
60+ // https://github.com/typescript-eslint/typescript-eslint/blob/v4.1.0/packages/eslint-plugin/docs/rules/no-shadow.md
61+ 'no-shadow' : 'off' ,
62+ '@typescript-eslint/no-shadow' : 'error' ,
5963
6064 '@typescript-eslint/indent' : 'off' ,
6165 '@typescript-eslint/explicit-function-return-type' : 'off' ,
@@ -65,9 +69,15 @@ const config = {
6569 '@typescript-eslint/no-empty-interface' : 'off' ,
6670 '@typescript-eslint/explicit-member-accessibility' : 'off' ,
6771 '@typescript-eslint/no-explicit-any' : 'off' ,
72+ '@typescript-eslint/ban-ts-comment' : 'off' ,
6873 '@typescript-eslint/no-parameter-properties' : 'off' ,
6974 '@typescript-eslint/array-type' : 'off' ,
7075 '@typescript-eslint/ban-ts-ignore' : 'off' ,
76+ '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
77+
78+ 'jsx-a11y/label-has-for' : 'off' ,
79+ 'jsx-a11y/label-has-associated-control' : 'off' ,
80+ 'jsx-a11y/iframe-has-title' : 'off' ,
7181
7282 'react/no-unescaped-entities' : 'off' ,
7383 'react/jsx-filename-extension' : [ 'error' , { extensions : [ '.tsx' , '.jsx' ] } ] ,
@@ -90,6 +100,12 @@ const config = {
90100 rules : {
91101 '@typescript-eslint/no-var-requires' : 'off'
92102 }
103+ } ,
104+ {
105+ files : [ 'examples/*/*.tsx' ] ,
106+ rules : {
107+ 'react/require-default-props' : 'off'
108+ }
93109 }
94110 ]
95111} ;
0 commit comments