Skip to content

Commit

Permalink
fix(eslint-config): disable react/prop-types in TypeScript files
Browse files Browse the repository at this point in the history
TypeScript files don't need to check `react/prop-types`, so this disables that rule in them.
  • Loading branch information
Josh Goldberg authored Nov 30, 2021
1 parent f5ae993 commit b599b03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/eslint-config/rules/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const tsConfig = {
// These off-by-default or configurable rules are good and we like having them on
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',

// These are no longer necessary now that we have TypeScript
'react/prop-types': 'off',
},
};

Expand Down

0 comments on commit b599b03

Please sign in to comment.