Unverified Commit eac0374e authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Update with-eslint example. (#25817)

parent 2a5db0b5
......@@ -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
......
module.exports = {
experimental: {
eslint: true,
},
}
......@@ -4,7 +4,8 @@
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
"start": "next start",
"lint": "next lint"
},
"license": "MIT",
"dependencies": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment