ESLINT_CONFIGURATION
Conformance is available on Enterprise plans
ESLint is a tool to statically analyze code to find and report problems. ESLint is required to be enabled for every workspace package in a monorepo so that all code in the monorepo is checked for these problems. Additionally, repositories can enforce that particular ESLint plugins are installed and that specific rules are treated as errors.
This rule requires that:
- An ESLint config exists in the current workspace.
- A script to run ESLint exists in in the current workspace.
- is set to , which detects and can autofix unused ESLint disable comments.
- is set to , which ensures that workspaces don't inherit unintended rules and configuration from ESLint configuration files in parent directories.
See the ESLint docs for more information on how to configure ESLint, including plugins and rules.
The recommended approach for configuring ESLint in a monorepo is to have a shared ESLint config in an internal package. See the Turbo docs on ESLint to get started.
Once your monorepo has a shared ESLint config, you can add a file to the root folder of your workspace with the contents:
You should also add to your .
Was this helpful?