Comments (5)
Bumping this, it is breaking package update automation at my corp
from next.js.
Yeah it's breaking change because ESLint 9.0.0 is a major release with a ton of breaking changes. You better hope NextJS didn't adhoc around every single ESLint implementation detail, so the migration to the newest version wouldn't take forever on their end.
For now a "fix" is to update next
and eslint-config-next
to 14.2.1
which limits the range of required ESLint version to eslint@"^7.23.0 || ^8.0.0"
and therefore will crash on install/update instead.
from next.js.
Bumping this for visibility, it does not seem to prevent build but unsure of the impact.
✓ Compiled successfully
Linting and checking validity of types ..
⨯ ESLint: Invalid Options: - Unknown options: useEslintrc, extensions - 'extensions' has been removed.
✓ Linting and checking validity of type
"next": "^14.2.0",
"eslint-config-next": "^14.2.0",
"eslint": "^9.0.0",
{
"extends": "next/core-web-vitals"
}
from next.js.
IMHO, the adoption should be done gradually in the following steps:
- Migrate
eslint-config-next
, so it exposes both the legacyeslintrc
config and the new flat config. - Change Next.js internal ESLint implementation, allows it to accept both the legacy config
.eslintrc
and the new flat configeslint.config.js
. - Change
next lint
so that it can accepteslint.config.js
- Change
create-next-app
built-in template to useeslint.config.js
- Change Next.js example to use
eslint.config.js
from next.js.
IMHO, the adoption should be done gradually in the following steps:
Migrate
eslint-config-next
, so it exposes both the legacyeslintrc
config and the new flat config.Change Next.js internal ESLint implementation, allows it to accept both the legacy config
.eslintrc
and the new flat configeslint.config.js
.Change
next lint
so that it can accepteslint.config.js
Change
create-next-app
built-in template to useeslint.config.js
Change Next.js example to use
eslint.config.js
I would like to add that the new flat config file can have multiple names:
eslint.config.js
eslint.config.mjs
eslint.config.cjs
Source: https://eslint.org/docs/latest/use/configure/configuration-files#configuration-file
from next.js.
Related Issues (20)
- Custom 404 page not used for Server Side Rendered page returning notFound when using the edge runtime
- Server action redirect with absolute internal URL duplicates basePath HOT 1
- Docs: [Bug] I cannot switch to page router docs in mobile HOT 4
- App router - server side redirect during client side push causes the page to disappear
- generateSitemaps Can't Handle Double Digit Params HOT 1
- router.refresh() causes 404 with basePath HOT 1
- Server Action blocks navigation to Parallel / Intercepting Route (Modal) HOT 6
- [@next/mdx] javascript from MDX output is being HTML escaped HOT 3
- Unable to build nextjs 14 app router on linux server machine but able to build on my local machine HOT 1
- Was this issue ever fixed? I can not seem to find the fix HOT 1
- Replacing favicon.ico not working for NextJS new version HOT 4
- Pull the project to run the 404 page HOT 1
- Error in parallel route using Turbopack for next dev HOT 5
- iOS Safari requires 2 clicks for Links to open when Prefetch is true. Using Next 14.2 HOT 1
- Mailgun emails not being triggered in production. (Unauthorized Error) HOT 1
- Slow Page Transitions and Infinite Loading with Internal Navigation Using Link Component in Next.js 14.2 HOT 1
- Turbopack: CommonJS require import of 'canvas' fails to resolve when using react-pdf library HOT 2
- Test HOT 1
- Test 2
- After adding the middleware, the webpage appears twice HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.