Packages

@next/eslint-plugin-next

16.4.6 · 9 Nov 2026MIT57.3M / weekRepositoryHomepagenpmAtom feed

Your version

9.5.0

27 Jul 2020Where it was published

9.5.5 is the newest release of 9.x.

In short

2 removed1 deprecated33 new152 fixed202 internal

  • Removed

    Remove granularChunks experimental option as it was launched

  • Removed

    Remove deprecated webpack plugin in favor of the option

  • Deprecated

    Deprecate with-sentry in favor of with-sentry-simple

Release note

Minor Changes

  • Fix pages/index.js and pages/index/index.js behavior

  • Use buildManifest to load page JS

  • Enable Optional Catch-All by Default

  • Add no-anon-default-export Babel lint rule

  • Re-enable scroll restoration behind flag

  • Attach previewData to API Route request

  • Add res.redirect response helper

  • Stabilize revalidate

  • Use chunkhash instead of buildId for pages

  • De-experimentalize basePath config

  • De-experimentalize custom-routes

  • Stabilize Trailing Slash API

Patches

Core

  • Lint for invalid imports

  • Fail production build quickly on errors

  • Extract TypeScript preflight functions

  • Speedup tests

  • Replace fork-ts-checker-webpack-plugin with faster alternative

  • Update ampproject/toolbox-optimizer

  • Update babel config found log to new logging output

  • Remove old reloading code

  • Add support for rewriting non-fallback SSG pages

  • Add ETag Support for API routes

  • Updated browserslist/caniuse-lite

  • Update waitUntilValid parameters

  • Handle encoding for data requests and fix fallback response

  • Make getStaticPaths work with optional catch-all routes

  • Remove middleware function that is never called

  • Added no-shadow rule to eslint

  • Propagate Serverless Errors to Platform

  • Use inclusive naming for variables / examples

  • Removed

    Remove granularChunks experimental option as it was launched

  • Remove remaining granular chunks references

  • Skip reading filesystem in favor of sourcesContent

  • Remove refs to old css experiment

  • Simplify CODEOWNERS

  • Do not syntax highlight collapsed frames

  • Removed autodll

  • Detailed error and warnings upon next() call

  • Remove unused variable

  • Update rewrite dynamic SSG error

  • Add a note about optional catch-all and rootmost route

  • Add initial labeler WebHook config

  • Stabilize CSS HMR Tests

  • Fix base path handling with URL queries in dev server

  • Clean up render.tsx options

  • Preserve url better in exportTrailingSlash

  • Remove some leftovers after index page updates

  • Fix message on getStaticPaths conflict with getServerSideProps

  • Update handling for basePath to only automatically add

  • Combine taskr next-server tasks into one

  • Update AMP Optimizer to 2.5.1

  • Update to reject when test command fails

  • Change text from "Attention" to "Warning"

  • Prepare custom routes loading for adding additional routes

  • Add scroll restoration handling after render is complete

  • Prioritize webpack bootstrapping first

  • Invert colors of compiling indicator

  • Make sure to watch all next-server files

  • Fix dynamic route match and basePath

  • Fix Fast Refresh with Page Config

  • Eliminate public folder enumeration

  • Normalize asPath between SSR and CSR with basePath

  • Revert "Add scroll restoration handling after render is done"

  • Add test case for loading 404 on invalid bundle

  • Simplify test checks

  • Remove Head.rewind as it's no longer needed

  • Update AMP Optimizer to v2.5.2

  • Add test for title and routeChangeComplete

  • Update stats action for running locally

  • Refactor AMP bundle removal

  • Update AMP Optimizer to v2.5.3

  • Use requirePage for /_document and /_app

  • Update routeKeys to handle non-word characters

  • Refactor moveExportedPages to use getPagePath

  • Render a helpful message for null GS(S)P return

  • WSL should be considered Windows for HMR option

  • Update filename generation for client-side compilation

  • Correct /_next/data link for GS(S)P with basePath

  • Fix prefetch and some other issues with optional catch all

  • Open click-to-open editor in foreground for windows

  • Prettier trailingComma default value to es5 since 2.0

  • Do not remove no-FOUC styles too early

  • Shave a few bytes off the bootstrap code

  • Update route regex for optional catch-all parameters in named regexes

  • Remove buildId from server-side files

  • Update to rely on dynamic param values from proxy

  • Fix prerendered nested index handling

  • Normalize trailing slashes

  • Ensure dev overlay uses basePath for requests

  • Webpack 5 build compat

  • Removed

    Remove deprecated webpack plugin in favor of the option

  • Handle rendering next/head outside of Next.js

  • Warn/revert custom devtool in development mode

  • Avoid adding basePath when it's not needed

  • Fix windows tests: snapshot backslash needs to be escaped

  • Fix native-url path parsing bug

  • Use entry option instead of custom make hook

  • Fix trailing slash handling in exporting pages with getStaticPaths

  • Use assetEmitted hook instead of afterEmit

  • Positive req/seq change is not a warning

  • Clean up plugins

  • Convert incremental generation cache to a class

  • Handle trailing slashes, even when query parameters

  • Update to use getDataHref in fetchNextData

  • Fix dynamic route encoding for NextLinks

  • Upgrade CSSNano Version

  • Fix link to file url behavior with trailingSlash

  • Avoid pulling extra code in the bundles for trailingSlash logic

  • Modify global css import error message

  • Fix encoding for env files in serverless mode

  • Add etag support for getServerSideProps/getStaticProps pages

  • Use single webpack runtimeChunk for Node.js compilation

  • Fix basepath root handling

  • Update warning for rewriting to auto-export dynamic pages

  • Convert link to function component

  • Fix URL being updated with basePath for 404 page

  • Add NextWebVitalsMetric type for reportWebVitals

  • Replace extra source line in webpack 5

  • Ie11 polyfills

  • Change authors member and links

  • Add webpack peerdependency to react-dev-overlay

  • BasePath: Resolve links against router pathname instead of window.location

  • Fix basepath browser back/forward issue

  • Add warning when viewport meta tag is added to _document.js

  • Fix bug in profiling test

  • Make sure routeKeys are PCRE compliant

  • Fix root route optional catch-all prerendering

  • Update next-bundle-analyzer readme

  • Convert profiling mode from configuration option to CLI switch

  • Make serverless-plugin compatible with webpack 5

  • Add filename to error in webpack 5

  • Make sure additional query values aren't added for auto-export

  • Update ignored patterns for webpack 4

  • Check for file name in anon export warning

  • Add handling for custom-routes with basePath

  • Avoid aggressive state loop

  • Relax encoding on dynamic prerendered routes

  • Trailing slash basepath

  • Replace node.js url module with WHATWG URL

  • Update Fast Refresh full reload warning

  • Make sure bad links in router methods resolve in production

  • Invalid flag provided to next build results in UnhandledPromiseRejectionWarning

  • Stabilize azure test

  • Fix Web Workers with Fast Refresh

  • Correctly fetch data for root route

  • Find pages/_document.js chunk in development

  • Fixed prettier --write args in package.json

  • Make type checking compatible with webpack 5

  • Make sure the correct chunk names are used in webpack 5

  • Fix basepath trailing slash

  • Use core-js for URL(SearchParams) Polyfill

  • Improve query conversion logic

  • Fix ky-universal-polyfill in webpack 5

  • Add test for query param bug #15233

  • Fix app-document-import-order test for webpack 5

  • Fix DevServer#close doesn't close all resources

  • Fix no-anon-default-export for webpack 5

  • Drop module: esnext requirement in tsconfig.json

  • Fix broken example link in docs for catch all routes

  • Fix static data fetching when using absolute assetprefix

  • Add Fast Refresh tests on macOS

  • Do not duplicate compilation errors

  • Verify that dataroutes work correctly with assetPrefix

  • Add test for main.js in webpack.config.js

  • Upgrade browserslist

  • Bring over fixes from #15185

  • Simplify trailing slash regex

  • Fix basepath router events

  • Added production, basic, and Fast Refresh test suites on macOS

  • Fix cancellation control flow

  • Fix Peer Dependency in React Refresh Utils

  • Update webpack to land chokidar patch for all Next.js users

  • Tweak test retries for invalid-href suite

  • Always resolve after router.prefetch()

  • Make dynamic routes case-sensitive

  • Stabilize more tests

  • Upgrade cssnano-simple dependency

  • Fix peer dependency

experimental

  • Filtering unwanted jsx type in eslint plugin

  • Add plugin to recommended eslint-plugin-next config

  • Bug fixes for css eslint rule

  • Only required polyfill.io lint rule

Create Next App

  • Add .vercel to gitignore

  • Remove unnecessary catch

  • create-next-app: Use CSS and CSS modules in default application template

  • Use HEAD req for isUrlOk check

  • CNA: Replace make-dir with core recursive mkdir

  • Add engines to package.json

Examples

  • Deprecated

    Deprecate with-sentry in favor of with-sentry-simple

  • validatePassword function logic

  • Destructuring error in the cms-contenful example

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.