Skip to content

Fix failing Next.js lint and build checks (Resolves #184)#185

Open
vass-k wants to merge 1 commit intoibelick:mainfrom
vass-k:fix/npm-run-lint-broken-184
Open

Fix failing Next.js lint and build checks (Resolves #184)#185
vass-k wants to merge 1 commit intoibelick:mainfrom
vass-k:fix/npm-run-lint-broken-184

Conversation

@vass-k
Copy link
Copy Markdown
Contributor

@vass-k vass-k commented Mar 23, 2026

What does this PR do?

This PR completely resolves the npm run lint and npm run build crashes reported in #184. The repository's CI pipeline was quietly failing on fresh installs due to obsolete ESLint plugins, missing React display names, and TSConfig scope issues.

Technical Details

1. ESLint Configuration Fixes

  • Removed plugin:tailwindcss/recommended: The project uses Tailwind CSS v4, but the official ESLint plugin strictly requires v3.x and crashes with a peer dependency conflict on install.
  • Removed prettier override: The project does not have eslint-config-prettier installed, causing the linter to throw Failed to load config "prettier" and halt. The default next/core-web-vitals preset does not conflict with prettier anyway, making this safely removable.

2. React Definition Fixes

  • [tabs.tsx] Added a standard named function (function TabsRoot) to the forwardRef to resolve the react/display-name error violently thrown by Next.js's strict mode.

Resolves #184 #184

No visual changes.

- Removed incompatible tailwindcss plugin (Tailwind v4 conflict) and prettier from ESLint config.
- Fixed missing display name error in TabsRoot component.
- Fixed anonymous default export warning in Disclosure component.
- Excluded cli directory from root Next.js tsconfig to prevent next build from crashing on missing CLI dependencies.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 23, 2026

@vass-k is attempting to deploy a commit to the julienthibeaut's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vass-k vass-k marked this pull request as ready for review March 23, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Npm run lint is broken and doesn't work at all.

1 participant