#Passing eslint arguments via next lint?

2 messages · Page 1 of 1 (latest)

rigid plover
#

I'm porting an application to nextjs. Our old repo uses eslint directly and uses the --max-warnings=0 argument to eslint. Is there a way I can still pass that argument via next lint?

turbid isle
#

Yes, you can pass the --max-warnings=0 argument to next lint by adding it to the lint script in your package.json file.

Here's an example:

{
  "scripts": {
    "lint": "next lint --max-warnings=0"
  }
}