From eac0374e45e5163c979ed13fec4ec432b505c221 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Sun, 20 Jun 2021 16:16:34 -0500 Subject: [PATCH] Update with-eslint example. (#25817) --- examples/with-eslint/README.md | 4 ++-- examples/with-eslint/next.config.js | 5 ----- examples/with-eslint/package.json | 3 ++- 3 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 examples/with-eslint/next.config.js diff --git a/examples/with-eslint/README.md b/examples/with-eslint/README.md index 0a0291defaaa8..5d950e7752272 100644 --- a/examples/with-eslint/README.md +++ b/examples/with-eslint/README.md @@ -2,7 +2,7 @@ This example shows a Next.js application using the built-in ESLint setup with the `next` shareable configuration enabled in `.eslintrc`. -Note: ESLint running during build (`next build`) is still experimental and needs to be enabled via an `{ experimental: eslint }` flag in `next.config.js`. +Learn more about the integrated ESLint configuration [in the docs](https://nextjs.org/docs/basic-features/eslint). ## Preview @@ -14,7 +14,7 @@ Preview the example live on [StackBlitz](http://stackblitz.com/): Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example): -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-service-worker&project-name=with-service-worker&repository-name=with-service-worker) +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-eslint&project-name=with-eslint&repository-name=with-eslint) ## How to use diff --git a/examples/with-eslint/next.config.js b/examples/with-eslint/next.config.js deleted file mode 100644 index 78e66cd2886a7..0000000000000 --- a/examples/with-eslint/next.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - experimental: { - eslint: true, - }, -} diff --git a/examples/with-eslint/package.json b/examples/with-eslint/package.json index e670108ad697f..c9c9d078d2e5f 100644 --- a/examples/with-eslint/package.json +++ b/examples/with-eslint/package.json @@ -4,7 +4,8 @@ "scripts": { "dev": "next", "build": "next build", - "start": "next start" + "start": "next start", + "lint": "next lint" }, "license": "MIT", "dependencies": {