Skip to content

Commit

Permalink
Hide merged-packages/ from ESLint/Prettier (#1524)
Browse files Browse the repository at this point in the history
When we bring new libraries into this monorepo, we will first place them
in `merged-packages`. This is a special directory we are creating that
will be hidden from ESLint and Prettier (and also Yarn, since it's not
in the set of known workspaces). This allows us to clean up the packages
and get them passing the lint step before we properly move them to
`packages`.
  • Loading branch information
mcmire authored and MajorLift committed Oct 11, 2023
1 parent 7b123dd commit 20c2625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
'dist',
'docs',
'coverage',
'merged-packages',
],
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn constraints",
"lint:eslint": "eslint . --cache --ext js,ts",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn constraints --fix",
"lint:misc": "prettier '**/*.json' '**/*.md' '!**/CHANGELOG.md' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore",
"lint:misc": "prettier '**/*.json' '**/*.md' '!**/CHANGELOG.md' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore",
"prepack": "./scripts/prepack.sh",
"prepare-preview-builds": "yarn workspaces foreach --parallel run prepare-manifest:preview",
"publish-previews": "yarn workspaces foreach --parallel run publish:preview",
Expand Down

0 comments on commit 20c2625

Please sign in to comment.