You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ESLint] Add app dir to default linting directories (vercel#44426)
Fixesvercel#44424 by adding the `app` folder to an `ESLINT_DEFAULT_DIRS`
constant which defines all folders where the linter should go through.
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
---------
Co-authored-by: JJ Kasper <[email protected]>
Copy file name to clipboardExpand all lines: docs/api-reference/cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ npx next start --keepAliveTimeout 70000
120
120
121
121
## Lint
122
122
123
-
`next lint` runs ESLint for all files in the `pages`, `components`, and `lib` directories. It also
123
+
`next lint` runs ESLint for all files in the `pages/`, `app` (only if the experimental `appDir` feature is enabled), `components/`, `lib/`, and `src/` directories. It also
124
124
provides a guided setup to install any required dependencies if ESLint is not already configured in
Copy file name to clipboardExpand all lines: docs/basic-features/eslint.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ If you're using `eslint-plugin-next` in a project where Next.js isn't installed
126
126
127
127
## Linting Custom Directories and Files
128
128
129
-
By default, Next.js will run ESLint for all files in the `pages/`, `components/`, `lib/`, and `src/` directories. However, you can specify which directories using the `dirs` option in the `eslint` config in `next.config.js` for production builds:
129
+
By default, Next.js will run ESLint for all files in the `pages/`, `app` (only if the experimental `appDir` feature is enabled), `components/`, `lib/`, and `src/` directories. However, you can specify which directories using the `dirs` option in the `eslint` config in `next.config.js` for production builds:
Copy file name to clipboardExpand all lines: packages/next/src/lib/constants.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ export const NON_STANDARD_NODE_ENV = `You are using a non-standard "NODE_ENV" va
39
39
40
40
exportconstSSG_FALLBACK_EXPORT_ERROR=`Pages with \`fallback\` enabled in \`getStaticPaths\` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export`
41
41
42
+
// Consolidate this consts when the `appDir` will be stable.
0 commit comments