-
Notifications
You must be signed in to change notification settings - Fork 0
fix: stabilize project with tests, linting, and bug fixes #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ViVaLaDaniel
wants to merge
1
commit into
main
Choose a base branch
from
fix/project-stabilization-13903886953341354066
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "extends": "next/core-web-vitals" | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Next.js 15 eslint next/core-web-vitals preset configuration requirements💡 Result:
Next.js 15:
next/core-web-vitalsESLint preset — what you need to configure1) Install the required packages
You need
eslintandeslint-config-nextin your project (Next can also add them for you when you first runnext lint). [1]2) Choose the config format you’re using
A) Legacy
.eslintrc*(extends string)Use this if you’re on the classic ESLint config format:
{ "extends": "next/core-web-vitals" }This enables the Core Web Vitals ruleset (it promotes some Next.js lint rules from warnings to errors). [2]
B) ESLint “flat config” (
eslint.config.mjs)In Next.js 15 docs, the flat-config way is to import the preset from
eslint-config-next/core-web-vitalsand export it:This is the documented setup flow for using the
core-web-vitalspreset with flat config. [1]3) (Optional) Combine with TypeScript preset
If you want the Next.js TypeScript ESLint add-on, extend/include
next/typescriptalongsidenext/core-web-vitals. [2]🌐 Web query:
ESLint TypeScript parser configuration for Next.js projects💡 Result:
Recommended (Next.js-managed parser; most projects)
In Next.js projects you typically do not set
parseryourself—eslint-config-nextalready wires up the right parser/plugins/settings. Use the Next presets and (if you want TS rules) add the TS preset too. [1]Flat config (
eslint.config.mjs)This is the “Next + TypeScript” setup Create Next App uses conceptually (Core Web Vitals + TS rules). [1]
Legacy config (
.eslintrc.*){ "extends": ["next/core-web-vitals", "next/typescript"] }next/typescriptis based onplugin:@typescript-eslint/recommended``. [2]If you specifically need typed linting (rules that require type info)
Configure
@typescript-eslint/parserwith type-aware parser options (modern recommendation:parserOptions.projectService: true). [3]Tip: Only do this when you actually enable type-aware rulesets; otherwise it can slow linting and complicate config. [3]
Sources: Next.js ESLint config docs [1], Next.js “With TypeScript” (
next/typescript) [2], typescript-eslint parser typed-linting options [3].Solid base ESLint preset for Next.js, but incomplete for TypeScript projects.
The
"next/core-web-vitals"preset includes Next.js specific rules for Core Web Vitals compliance (promoting certain warnings to errors). However, if this is a TypeScript project, extend both presets:{ "extends": ["next/core-web-vitals", "next/typescript"] }No additional
parserOptionsorrootfields are required—the Next.js presets handle parser configuration automatically. Add custom parser options only if you need type-aware linting (which requiresprojectService: trueon@typescript-eslint/parser).🤖 Prompt for AI Agents