diff --git a/packages/next/server/config-shared.ts b/packages/next/server/config-shared.ts index a12a5ee5b48ea..72b153416293c 100644 --- a/packages/next/server/config-shared.ts +++ b/packages/next/server/config-shared.ts @@ -22,9 +22,18 @@ export interface DomainLocale { locales?: string[] } +export interface ESLintConfig { + /** Only run ESLint on these directories during production builds (`next build`). */ + dirs?: string[] + /** Do not run ESLint during production builds (`next build`). */ + ignoreDuringBuilds?: boolean +} + export type NextConfig = { [key: string]: any } & { i18n?: I18NConfig | null + eslint?: ESLintConfig + headers?: () => Promise rewrites?: () => Promise< | Rewrite[]