Skip to content

Commit

Permalink
📦 deps(patch): upgrade eslint-webpack-plugin (#2620)
Browse files Browse the repository at this point in the history
Transitioning to eslint@9 is not going to be simple, but this gets us started:

- Update: eslint-webpack-plugin to v4.2.0
- Examples: add examples/eslint-9.0.0

## Type of change

**PATCH: backwards compatible change**
  • Loading branch information
kellymears authored Jun 30, 2024
1 parent d97a53b commit c40b0f8
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 10 deletions.
6 changes: 6 additions & 0 deletions examples/eslint-9.x.x/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
rules: {
semi: 'error',
'prefer-const': 'error',
},
}
15 changes: 15 additions & 0 deletions examples/eslint-9.x.x/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@examples/eslint-9.x.x",
"$schema": "https://bud.js.org/bud.package.json",
"private": true,
"type": "module",
"browserslist": [
"extends @roots/browserslist-config"
],
"devDependencies": {
"@roots/bud": "workspace:*",
"@roots/bud-eslint": "workspace:*",
"@roots/eslint-config": "workspace:*",
"eslint": "9.6.0"
}
}
1 change: 1 addition & 0 deletions examples/eslint-9.x.x/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('eslint should error')
13 changes: 13 additions & 0 deletions examples/eslint-9.x.x/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "@roots/bud/config/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"paths": {
"@src/*": ["./src/*"]
},
"types": ["@roots/bud", "@roots/bud-eslint"]
},
"files": ["./bud.config.ts"],
"include": ["./src"],
"exclude": ["./dist"]
}
2 changes: 1 addition & 1 deletion sources/@roots/bud-eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"@roots/bud-framework": "workspace:*",
"@roots/bud-support": "workspace:*",
"eslint": "8.57.0",
"eslint-webpack-plugin": "4.1.0",
"eslint-webpack-plugin": "4.2.0",
"tslib": "2.6.2",
"webpack": "5.91.0"
},
Expand Down
166 changes: 157 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8315,6 +8315,17 @@ __metadata:
languageName: node
linkType: hard

"@eslint/config-array@npm:^0.17.0":
version: 0.17.0
resolution: "@eslint/config-array@npm:0.17.0"
dependencies:
"@eslint/object-schema": "npm:^2.1.4"
debug: "npm:^4.3.1"
minimatch: "npm:^3.1.2"
checksum: 97eb23ef0948dbc5f24884a3b75c537ca37ee2b1f27a864cd0d9189c089bc1a724dc6e1a4d9b7dd304d9f732ca02aa7916243a7715d6f1f17159d8a8c83f0c9e
languageName: node
linkType: hard

"@eslint/eslintrc@npm:^2.1.4":
version: 2.1.4
resolution: "@eslint/eslintrc@npm:2.1.4"
Expand All @@ -8332,13 +8343,44 @@ __metadata:
languageName: node
linkType: hard

"@eslint/eslintrc@npm:^3.1.0":
version: 3.1.0
resolution: "@eslint/eslintrc@npm:3.1.0"
dependencies:
ajv: "npm:^6.12.4"
debug: "npm:^4.3.2"
espree: "npm:^10.0.1"
globals: "npm:^14.0.0"
ignore: "npm:^5.2.0"
import-fresh: "npm:^3.2.1"
js-yaml: "npm:^4.1.0"
minimatch: "npm:^3.1.2"
strip-json-comments: "npm:^3.1.1"
checksum: 5b7332ed781edcfc98caa8dedbbb843abfb9bda2e86538529c843473f580e40c69eb894410eddc6702f487e9ee8f8cfa8df83213d43a8fdb549f23ce06699167
languageName: node
linkType: hard

"@eslint/js@npm:8.57.0":
version: 8.57.0
resolution: "@eslint/js@npm:8.57.0"
checksum: 9a518bb8625ba3350613903a6d8c622352ab0c6557a59fe6ff6178bf882bf57123f9d92aa826ee8ac3ee74b9c6203fe630e9ee00efb03d753962dcf65ee4bd94
languageName: node
linkType: hard

"@eslint/js@npm:9.6.0":
version: 9.6.0
resolution: "@eslint/js@npm:9.6.0"
checksum: 83967a7e59f2e958c9bbb3acd0929cad00d59d927ad786ed8e0d30b07f983c6bea3af6f4ad32da32145db40b7a741a816ba339bdd8960fc7fc8231716d943b7f
languageName: node
linkType: hard

"@eslint/object-schema@npm:^2.1.4":
version: 2.1.4
resolution: "@eslint/object-schema@npm:2.1.4"
checksum: e9885532ea70e483fb007bf1275968b05bb15ebaa506d98560c41a41220d33d342e19023d5f2939fed6eb59676c1bda5c847c284b4b55fce521d282004da4dda
languageName: node
linkType: hard

"@examples/babel-advanced@workspace:examples/babel-advanced":
version: 0.0.0-use.local
resolution: "@examples/babel-advanced@workspace:examples/babel-advanced"
Expand Down Expand Up @@ -8458,6 +8500,17 @@ __metadata:
languageName: unknown
linkType: soft

"@examples/eslint-9.x.x@workspace:examples/eslint-9.x.x":
version: 0.0.0-use.local
resolution: "@examples/eslint-9.x.x@workspace:examples/eslint-9.x.x"
dependencies:
"@roots/bud": "workspace:*"
"@roots/bud-eslint": "workspace:*"
"@roots/eslint-config": "workspace:*"
eslint: "npm:9.6.0"
languageName: unknown
linkType: soft

"@examples/eslint-bud-config@workspace:examples/eslint-bud-config":
version: 0.0.0-use.local
resolution: "@examples/eslint-bud-config@workspace:examples/eslint-bud-config"
Expand Down Expand Up @@ -9037,6 +9090,13 @@ __metadata:
languageName: node
linkType: hard

"@humanwhocodes/retry@npm:^0.3.0":
version: 0.3.0
resolution: "@humanwhocodes/retry@npm:0.3.0"
checksum: 7111ec4e098b1a428459b4e3be5a5d2a13b02905f805a2468f4fa628d072f0de2da26a27d04f65ea2846f73ba51f4204661709f05bfccff645e3cedef8781bb6
languageName: node
linkType: hard

"@iarna/toml@npm:^2.2.5":
version: 2.2.5
resolution: "@iarna/toml@npm:2.2.5"
Expand Down Expand Up @@ -11613,7 +11673,7 @@ __metadata:
"@types/eslint": "npm:8.56.10"
"@types/node": "npm:20.12.8"
eslint: "npm:8.57.0"
eslint-webpack-plugin: "npm:4.1.0"
eslint-webpack-plugin: "npm:4.2.0"
tslib: "npm:2.6.2"
webpack: "npm:5.91.0"
languageName: unknown
Expand Down Expand Up @@ -13964,7 +14024,7 @@ __metadata:
languageName: node
linkType: hard

"@types/eslint@npm:8.56.10, @types/eslint@npm:^8.56.5":
"@types/eslint@npm:8.56.10, @types/eslint@npm:^8.56.10":
version: 8.56.10
resolution: "@types/eslint@npm:8.56.10"
dependencies:
Expand Down Expand Up @@ -18096,6 +18156,15 @@ __metadata:
languageName: node
linkType: hard

"acorn@npm:^8.12.0":
version: 8.12.0
resolution: "acorn@npm:8.12.0"
bin:
acorn: bin/acorn
checksum: a19f9dead009d3b430fa3c253710b47778cdaace15b316de6de93a68c355507bc1072a9956372b6c990cbeeb167d4a929249d0faeb8ae4bb6911d68d53299549
languageName: node
linkType: hard

"acorn@npm:^8.9.0":
version: 8.10.0
resolution: "acorn@npm:8.10.0"
Expand Down Expand Up @@ -24548,6 +24617,16 @@ __metadata:
languageName: node
linkType: hard

"eslint-scope@npm:^8.0.1":
version: 8.0.1
resolution: "eslint-scope@npm:8.0.1"
dependencies:
esrecurse: "npm:^4.3.0"
estraverse: "npm:^5.2.0"
checksum: 0ec40ab284e58ac7ef064ecd23c127e03d339fa57173c96852336c73afc70ce5631da21dc1c772415a37a421291845538dd69db83c68d611044c0fde1d1fa269
languageName: node
linkType: hard

"eslint-visitor-keys@npm:^2.1.0":
version: 2.1.0
resolution: "eslint-visitor-keys@npm:2.1.0"
Expand All @@ -24569,19 +24648,26 @@ __metadata:
languageName: node
linkType: hard

"eslint-webpack-plugin@npm:4.1.0":
version: 4.1.0
resolution: "eslint-webpack-plugin@npm:4.1.0"
"eslint-visitor-keys@npm:^4.0.0":
version: 4.0.0
resolution: "eslint-visitor-keys@npm:4.0.0"
checksum: 76619f42cf162705a1515a6868e6fc7567e185c7063a05621a8ac4c3b850d022661262c21d9f1fc1d144ecf0d5d64d70a3f43c15c3fc969a61ace0fb25698cf5
languageName: node
linkType: hard

"eslint-webpack-plugin@npm:4.2.0":
version: 4.2.0
resolution: "eslint-webpack-plugin@npm:4.2.0"
dependencies:
"@types/eslint": "npm:^8.56.5"
"@types/eslint": "npm:^8.56.10"
jest-worker: "npm:^29.7.0"
micromatch: "npm:^4.0.5"
normalize-path: "npm:^3.0.0"
schema-utils: "npm:^4.2.0"
peerDependencies:
eslint: ^8.0.0
eslint: ^8.0.0 || ^9.0.0
webpack: ^5.0.0
checksum: 29ccc75ac50d765a254336e073342f33bac0b230512753c763ac783c6d3f15e36a9266371a31547253c5cf0d630be290f54268f99f37c8acbebc88304f5678b9
checksum: cf5c9b7afa3c025fffadb3e1451e7a55d914c3070614bb4d57f887774d164ca4298bb777f7c3afa16f47af9869174a19d6aebb4d1ca719bc2cc49f2eccd71a3b
languageName: node
linkType: hard

Expand Down Expand Up @@ -24633,6 +24719,50 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:9.6.0":
version: 9.6.0
resolution: "eslint@npm:9.6.0"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.2.0"
"@eslint-community/regexpp": "npm:^4.6.1"
"@eslint/config-array": "npm:^0.17.0"
"@eslint/eslintrc": "npm:^3.1.0"
"@eslint/js": "npm:9.6.0"
"@humanwhocodes/module-importer": "npm:^1.0.1"
"@humanwhocodes/retry": "npm:^0.3.0"
"@nodelib/fs.walk": "npm:^1.2.8"
ajv: "npm:^6.12.4"
chalk: "npm:^4.0.0"
cross-spawn: "npm:^7.0.2"
debug: "npm:^4.3.2"
escape-string-regexp: "npm:^4.0.0"
eslint-scope: "npm:^8.0.1"
eslint-visitor-keys: "npm:^4.0.0"
espree: "npm:^10.1.0"
esquery: "npm:^1.5.0"
esutils: "npm:^2.0.2"
fast-deep-equal: "npm:^3.1.3"
file-entry-cache: "npm:^8.0.0"
find-up: "npm:^5.0.0"
glob-parent: "npm:^6.0.2"
ignore: "npm:^5.2.0"
imurmurhash: "npm:^0.1.4"
is-glob: "npm:^4.0.0"
is-path-inside: "npm:^3.0.3"
json-stable-stringify-without-jsonify: "npm:^1.0.1"
levn: "npm:^0.4.1"
lodash.merge: "npm:^4.6.2"
minimatch: "npm:^3.1.2"
natural-compare: "npm:^1.4.0"
optionator: "npm:^0.9.3"
strip-ansi: "npm:^6.0.1"
text-table: "npm:^0.2.0"
bin:
eslint: bin/eslint.js
checksum: 82ea5ad3f28aaef89e2a98f4e6df0eae9d4e16ccd6d667c69977042e0b103fa5df98bf16d3df72d1ae77edd8c1dccfdf4afa2a55309aa8081a1bc54af6229826
languageName: node
linkType: hard

"esniff@npm:^2.0.1":
version: 2.0.1
resolution: "esniff@npm:2.0.1"
Expand All @@ -24645,6 +24775,17 @@ __metadata:
languageName: node
linkType: hard

"espree@npm:^10.0.1, espree@npm:^10.1.0":
version: 10.1.0
resolution: "espree@npm:10.1.0"
dependencies:
acorn: "npm:^8.12.0"
acorn-jsx: "npm:^5.3.2"
eslint-visitor-keys: "npm:^4.0.0"
checksum: 52e6feaa77a31a6038f0c0e3fce93010a4625701925b0715cd54a2ae190b3275053a0717db698697b32653788ac04845e489d6773b508d6c2e8752f3c57470a0
languageName: node
linkType: hard

"espree@npm:^9.6.0, espree@npm:^9.6.1":
version: 9.6.1
resolution: "espree@npm:9.6.1"
Expand All @@ -24666,7 +24807,7 @@ __metadata:
languageName: node
linkType: hard

"esquery@npm:^1.4.2":
"esquery@npm:^1.4.2, esquery@npm:^1.5.0":
version: 1.5.0
resolution: "esquery@npm:1.5.0"
dependencies:
Expand Down Expand Up @@ -26861,6 +27002,13 @@ __metadata:
languageName: node
linkType: hard

"globals@npm:^14.0.0":
version: 14.0.0
resolution: "globals@npm:14.0.0"
checksum: b96ff42620c9231ad468d4c58ff42afee7777ee1c963013ff8aabe095a451d0ceeb8dcd8ef4cbd64d2538cef45f787a78ba3a9574f4a634438963e334471302d
languageName: node
linkType: hard

"globals@npm:^15.0.0":
version: 15.1.0
resolution: "globals@npm:15.1.0"
Expand Down

0 comments on commit c40b0f8

Please sign in to comment.