Skip to content

Commit

Permalink
chore(eslint-config): update version of @eslint-react/eslint-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Sep 4, 2024
1 parent 7ae4fec commit da590b7
Show file tree
Hide file tree
Showing 8 changed files with 193 additions and 200 deletions.
2 changes: 1 addition & 1 deletion configs/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@cspell/eslint-plugin": "^8.14.1",
"@eslint-react/eslint-plugin": "^1.12.2",
"@eslint-react/eslint-plugin": "^1.13.0",
"@next/eslint-plugin-next": "catalog:",
"@vitest/eslint-plugin": "^1.0.3",
"eslint-config-prettier": "^9.1.0",
Expand Down
1 change: 0 additions & 1 deletion docs/suspensive.org/src/components/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const HomePage = ({
<div className="h-14"></div>
<div className="flex flex-col items-start justify-between gap-8 md:flex-row">
{items.map(({ title, desc }) => (
// eslint-disable-next-line @eslint-react/no-duplicate-key
<div className="flex flex-1 flex-col items-center justify-center gap-3 text-center" key={title}>
<div className="text-xl font-bold">{title}</div>
<p className="text-lg">{desc}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default function Page() {
<div>
{data.pages.map(({ data }) =>
data.products.map((product) => (
// eslint-disable-next-line @eslint-react/no-duplicate-key
<div key={product.id}>
<h2>title: {product.title}</h2>
<p>price: {product.price}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default function Page() {
{({ data: products }) => (
<div>
{products.map((product) => (
// eslint-disable-next-line @eslint-react/no-duplicate-key
<li key={product.id}>{product.title}</li>
))}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default wrap
<div>
zod error:
{error.errors.map((error) => (
// eslint-disable-next-line @eslint-react/no-duplicate-key
<p key={error.code}>{error.message}</p>
))}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function App() {
{isClicked ? (
<Suspense fallback={<Fallback />}>
{Array.from({ length: 10 }, (_, i) => (
// eslint-disable-next-line @eslint-react/no-duplicate-key
<Suspend key={i} i={i} />
))}
<Slow />
Expand Down
2 changes: 0 additions & 2 deletions packages/react/src/ErrorBoundaryGroup.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe('<ErrorBoundaryGroup/>', () => {
{(group) => <button onClick={group.reset}>{resetButtonText}</button>}
</ErrorBoundaryGroup.Consumer>
{Array.from({ length: innerErrorBoundaryCount }).map((_, i) => (
// eslint-disable-next-line @eslint-react/no-array-index-key, @eslint-react/no-duplicate-key
<ErrorBoundary key={i} fallback={(props) => <div>{props.error.message}</div>}>
<Throw.Error message={ERROR_MESSAGE} after={ms('0.1s')}>
<div>{TEXT}</div>
Expand All @@ -47,7 +46,6 @@ describe('<ErrorBoundaryGroup/>', () => {
{(group) => <button onClick={group.reset}>{resetButtonText}</button>}
</ErrorBoundaryGroup.Consumer>
{Array.from({ length: innerErrorBoundaryCount }).map((_, i) => (
// eslint-disable-next-line @eslint-react/no-array-index-key, @eslint-react/no-duplicate-key
<ErrorBoundaryGroup key={i} blockOutside={i === innerErrorBoundaryCount - 1}>
<ErrorBoundary fallback={(props) => <div>{props.error.message}</div>}>
<Throw.Error message={ERROR_MESSAGE} after={ms('0.1s')}>
Expand Down
384 changes: 192 additions & 192 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit da590b7

Please sign in to comment.