vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo/docs
MIT License
26.21k stars 1.81k forks source link

Support eslint in next.js configuration #4764

Closed jakeleventhal closed 8 months ago

jakeleventhal commented 1 year ago

Which project is this feature idea for?

Turbopack

Describe the feature you'd like to request

I get the following error

- Unsupported Next.js configuration option(s) (next.config.js)
  To use Turbopack, remove the following configuration options:
    - eslint
  The only supported configurations options are:
    - configFileName
    - env
    - experimental.appDir
    - modularizeImports
    - compiler.emotion
    - compiler.styledComponents
    - experimental.serverComponentsExternalPackages
    - experimental.turbo
    - experimental.mdxRs
    - images
    - pageExtensions
    - onDemandEntries
    - rewrites
    - redirects
    - headers
    - reactStrictMode
    - swcMinify
    - transpilePackages
    - experimental.swcFileReading
    - experimental.forceSwcTransforms

When adding eslint to my next config per https://nextjs.org/docs/api-reference/next.config.js/ignoring-eslint

Describe the solution you'd like

Support eslint

Describe alternatives you've considered

N/a

timneutkens commented 8 months ago

This works now! Thanks for the report.