Skip to content

Commit

Permalink
[DOC] Add missing Monorepo configuration (#13253)
Browse files Browse the repository at this point in the history
* [DOC] Add missing Monorepo configuration

* Update eslint/babel-eslint-parser/README.md

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>

* [DOC] Unify monorepo config file

* [DOC] Clean monorepo configuration

* [DOC] Monorepo conf when eslint runned by package

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
  • Loading branch information
serut and fedeci committed May 7, 2021
1 parent 4c725f8 commit e74b3fb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions eslint/babel-eslint-parser/README.md
Expand Up @@ -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
Expand Down

0 comments on commit e74b3fb

Please sign in to comment.