Skip to content

Commit

Permalink
fix: react plugin rules and prop-types setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalgonsalves committed Aug 13, 2024
1 parent 00f6517 commit 8be2812
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions eslint.config.react-shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import sharedConfig from "./eslint.config.shared.js";

/** @type {Record<string, any>} */
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
const reactRules = react.config.recommended.rules;
const reactRules = react.configs.recommended.rules;

export default tseslint.config(
...sharedConfig,
Expand Down Expand Up @@ -92,14 +92,8 @@ export default tseslint.config(
"error",
{ ignorePureComponents: true },
],
"react/prop-types": [
"error",
{
ignore: [],
customValidators: [],
skipUndeclared: false,
},
],
// TypeScript
"react/prop-types": ["off"],
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react/sort-comp": [
Expand Down

0 comments on commit 8be2812

Please sign in to comment.