diff --git a/eslint/babel-eslint-parser/README.md b/eslint/babel-eslint-parser/README.md index 06c2d7c16f..14c6a86da0 100644 --- a/eslint/babel-eslint-parser/README.md +++ b/eslint/babel-eslint-parser/README.md @@ -91,6 +91,21 @@ module.exports = { }; ``` +**Monorepo configuration** + +This configuration is useful for monorepo, when you are running ESLint on every package and not from the monorepo root folder, as it avoids to repeat the Babel and ESLint configuration on every package. + +```js +module.exports = { + "parser": "@babel/eslint-parser", + "parserOptions": { + "babelOptions": { + "rootMode": "upward" + } + } +} +``` + ### Run ```sh