Skip to content

Commit

Permalink
docs: add note about babel and monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed Oct 9, 2020
1 parent ed6a9d1 commit 4cd2555
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 15 deletions.
6 changes: 0 additions & 6 deletions __snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2388,12 +2388,6 @@ Array [
"rule": "no-undef",
"severity": 2,
},
Object {
"column": 78,
"line": 43,
"rule": "react/prop-types",
"severity": 2,
},
Object {
"column": 15,
"line": 49,
Expand Down
20 changes: 20 additions & 0 deletions packages/eslint-config-babel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,23 @@ This package should be used in conjunction with [`@moxy/eslint-config-base`](../
]
}
```

⚠️ If you are using a monorepo, you will need specify the `configFile` to point to the root:

```json
{
"root": true,
"env": {
"browser": true
},
"extends": [
"@moxy/eslint-config-base/esm",
"@moxy/eslint-config-babel"
],
"parserOptions": {
"babelOptions": {
"configFile": "./.babelrc.json"
}
}
}
```
10 changes: 5 additions & 5 deletions packages/eslint-config-base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ All files that end in `.config.js` within your project root folder will **automa
{
"root": true,
"env": {
"node": true,
"node": true
},
"extends": [
"@moxy/eslint-config-base/cjs/es2019",
"@moxy/eslint-config-base/cjs/es2019"
]
}
```
Expand All @@ -76,7 +76,7 @@ All files that end in `.config.js` within your project root folder will **automa
{
"root": true,
"env": {
"browser": true,
"browser": true
},
"extends": [
"@moxy/eslint-config-base/esm",
Expand All @@ -91,10 +91,10 @@ All files that end in `.config.js` within your project root folder will **automa
"root": true,
"env": {
"browser": true,
"node": true,
"node": true
},
"extends": [
"@moxy/eslint-config-base/esm",
"@moxy/eslint-config-base/esm"
]
}
```
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This package should be used in conjunction with [`@moxy/eslint-config-base`](../
{
"root": true,
"env": {
"browser": true,
"browser": true
},
"extends": [
"@moxy/eslint-config-base/esm",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react-web-a11y/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This package should be used in conjunction with [`@moxy/eslint-config-base`](../
{
"root": true,
"env": {
"browser": true,
"browser": true
},
"extends": [
"@moxy/eslint-config-base/esm",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This package should be used in conjunction with [`@moxy/eslint-config-base`](../
{
"root": true,
"env": {
"browser": true,
"browser": true
},
"extends": [
"@moxy/eslint-config-base/esm",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-vue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This package should be used in conjunction with [`@moxy/eslint-config-base`](../
{
"root": true,
"env": {
"browser": true,
"browser": true
},
"extends": [
"@moxy/eslint-config-base/esm",
Expand Down

0 comments on commit 4cd2555

Please sign in to comment.