Skip to content

Commit b599b03

Browse files
author
Josh Goldberg
authored
fix(eslint-config): disable react/prop-types in TypeScript files
TypeScript files don't need to check `react/prop-types`, so this disables that rule in them.
1 parent f5ae993 commit b599b03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/eslint-config/rules/typescript.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const tsConfig = {
1414
// These off-by-default or configurable rules are good and we like having them on
1515
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
1616
'@typescript-eslint/prefer-optional-chain': 'error',
17+
18+
// These are no longer necessary now that we have TypeScript
19+
'react/prop-types': 'off',
1720
},
1821
};
1922

0 commit comments

Comments
 (0)