From c97a3633415cdea4da4d1d25732ce597c5097857 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Sat, 5 Jun 2021 13:54:53 -0500 Subject: [PATCH] Update with-eslint example. --- 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 bad528f8dff33..3980529b22175 100644 --- a/examples/with-eslint/README.md +++ b/examples/with-eslint/README.md @@ -2,13 +2,13 @@ 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). ## Deploy your own 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 9d1cd46e25aa0..8bb898e859ba8 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": {