Skip to content

Commit

Permalink
feat: ✨ enable react/no-object-type-as-default-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Nov 3, 2024
1 parent c4da6c5 commit af90a75
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 49 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@
"@semantic-release/git": "10.0.1",
"@semantic-release/npm": "12.0.1",
"@semantic-release/release-notes-generator": "14.0.1",
"@tanstack/react-query": "5.59.17",
"@tanstack/react-query": "5.59.19",
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.0.1",
"@types/node": "22.8.6",
"@types/node": "22.8.7",
"@types/react": "18.3.12",
"@vitest/coverage-v8": "2.1.4",
"astro": "4.16.8",
Expand Down
90 changes: 45 additions & 45 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/rules/__snapshots__/react.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ exports[`should create react rules 1`] = `
"react/no-is-mounted": "error",
"react/no-multi-comp": "off",
"react/no-namespace": "error",
"react/no-object-type-as-default-prop": "off",
"react/no-object-type-as-default-prop": "error",
"react/no-redundant-should-component-update": "error",
"react/no-render-return-value": "error",
"react/no-set-state": "off",
Expand Down
2 changes: 1 addition & 1 deletion src/rules/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const reactRules = {
"react/no-invalid-html-attribute": "error",
"react/no-multi-comp": "off",
"react/no-namespace": "error",
"react/no-object-type-as-default-prop": "off", // revisit
"react/no-object-type-as-default-prop": "error",
"react/no-redundant-should-component-update": "error",
"react/no-set-state": "off",
"react/no-this-in-sfc": "error",
Expand Down

0 comments on commit af90a75

Please sign in to comment.