Skip to content

Commit

Permalink
Update tooling across monorepo
Browse files Browse the repository at this point in the history
- ESLint to ignore new standard "build" folder
- Specify packages to allow unresolved imports from
- Align babel-core and jest versions in the monorepo
  • Loading branch information
d-claassen committed Feb 27, 2024
1 parent e4037b0 commit 9756a07
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 3,643 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ settings:
react:
version: "18.2"

ignorePatterns:
- "packages/*/build/*"

rules:
no-prototype-builtins: 0
comma-dangle:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"grunt-shell": "^3.0.1",
"grunt-webpack": "^3.1.3",
"i18n-calypso": "^1.8.4",
"jest": "^23.6.0",
"jest": "^27.5.1",
"jest-styled-components": "^7.0.3",
"lerna": "^6.4.1",
"node-fetch": "^2.6.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@wordpress/e2e-test-utils": "^5.1.2",
"@wordpress/url": "^2.22.2",
"babel-jest": "^26.6.3",
"jest": "^26.6.3",
"jest-puppeteer": "^5.0.3",
"jest": "^27.5.1",
"jest-puppeteer": "^6.2.0",
"puppeteer": "^9.0.0"
}
}
1 change: 1 addition & 0 deletions packages/eslint/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,4 @@ rules:

# Import rules (https://github.com/import-js/eslint-plugin-import)
import/no-extraneous-dependencies: 2
import/no-unresolved: [ "error", { ignore: [ "^@yoast/(analysis-report|components|helpers|replacement-variable-editor|search-metadata-previews|social-metadata-forms|style-guide)" ] } ]
Loading

0 comments on commit 9756a07

Please sign in to comment.