Description
The default Next.js linting is quite permissive. We should tighten the rules to enforce best practices, especially regarding React hooks and TypeScript types.
Acceptance Criteria
Technical Details
- This requires configuring the
parserOptions.project in ESLint to point to the tsconfig.json so the linter can read the type information.
Description
The default Next.js linting is quite permissive. We should tighten the rules to enforce best practices, especially regarding React hooks and TypeScript types.
Acceptance Criteria
.eslintrc.json.plugin:@typescript-eslint/strict-type-checkedandplugin:react-hooks/recommended.react-hooks/exhaustive-depsrule to"error"instead of"warn".anytype (@typescript-eslint/no-explicit-any).Technical Details
parserOptions.projectin ESLint to point to thetsconfig.jsonso the linter can read the type information.