File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
packages/eslint-config-react/src Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { Linter } from 'eslint';
33import { eslintConfigReactBase } from './base' ;
44import { eslintConfigReactHooks } from './hooks' ;
55import { eslintConfigReactJsx } from './jsx' ;
6+ import { eslintConfigReactTypescript } from './typescript' ;
67
78export const eslintConfigReact : Linter . BaseConfig = {
89 extends : [ require . resolve ( '@azimutlabs/eslint-config-env' ) ] ,
@@ -21,5 +22,9 @@ export const eslintConfigReact: Linter.BaseConfig = {
2122 files : [ '**/**.[jt]sx' ] ,
2223 ...eslintConfigReactJsx ,
2324 } ,
25+ {
26+ files : [ '**/**.ts?(x)' ] ,
27+ ...eslintConfigReactTypescript ,
28+ } ,
2429 ] ,
2530} ;
Original file line number Diff line number Diff line change 1+ import type { Linter } from 'eslint' ;
2+
3+ export const eslintConfigReactTypescript : Linter . BaseConfig = {
4+ rules : {
5+ // TypeScript already will take care of it.
6+ 'react/prop-types' : 'off' ,
7+ } ,
8+ } ;
You can’t perform that action at this time.
0 commit comments