Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Add missing Monorepo configuration #13253

Merged
merged 5 commits into from May 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions eslint/babel-eslint-parser/README.md
Expand Up @@ -91,6 +91,20 @@ module.exports = {
};
```

**Monorepo configuration**

This configuration is usefull for monorepo as it avoids to repeat the configuration of babel and eslint on every package.
serut marked this conversation as resolved.
Show resolved Hide resolved

```
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"babelOptions": {
"rootMode": "upward"
}
}
}
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use a js config example as in other parts of the docs.

Copy link
Contributor Author

@serut serut May 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you're right, I've tested and .eslintrc.js is working as well as .eslintrc

### Run

```sh
Expand Down