Skip to content

Commit

Permalink
deps(eslint-plugin-unicorn): Update to v53.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed May 27, 2024
1 parent c914369 commit 78921b1
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eslint-plugin-react-perf": "^3.3.2",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-solid": "^0.14.0",
"eslint-plugin-unicorn": "^52.0.0"
"eslint-plugin-unicorn": "^53.0.0"
},
"devDependencies": {
"@types/eslint": "^8.56.6",
Expand Down
10 changes: 5 additions & 5 deletions packages/eslint-config/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const config: eslint.Linter.Config = {
groups: [
[
// Side-effects
'^\\u0000',
String.raw`^\u0000`,
// Node built-ins
`^node:`,
`^(${builtinModules.join('|')})$`,
Expand All @@ -115,13 +115,13 @@ const config: eslint.Linter.Config = {
// Aliased modules
'^:[a-z]',
// Parent files
'^\\.\\./',
String.raw`^\.\./`,
// Sibling files
'^\\./',
String.raw`^\./`,
// Index file
'^\\.$',
String.raw`^\.$`,
// Everything else
'\\*',
String.raw`\*`,
],
],
},
Expand Down
3 changes: 3 additions & 0 deletions packages/eslint-config/src/unicorn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const config: eslint.Linter.Config = {
'unicorn/no-unsafe-regex': 'error',
'unicorn/no-zero-fractions': 'error',
'unicorn/prefer-native-coercion-functions': 'error',
'unicorn/prefer-string-raw': 'error',
'unicorn/prefer-structured-clone': 'error',
'unicorn/prefer-switch': 'error',
'unicorn/string-content': 'error',
'unicorn/relative-url-style': ['error', 'always'],
Expand All @@ -47,6 +49,7 @@ const config: eslint.Linter.Config = {
'unicorn/template-indent': 'off',

// Ensure consistent and correct syntax
'unicorn/consistent-empty-array-spread': 'error',
'unicorn/new-for-builtins': 'error',
'unicorn/no-anonymous-default-export': 'error',
'unicorn/no-await-in-promise-methods': 'error',
Expand Down
80 changes: 61 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/helper-validator-identifier@npm:^7.22.20, @babel/helper-validator-identifier@npm:^7.24.6":
"@babel/helper-validator-identifier@npm:^7.24.5, @babel/helper-validator-identifier@npm:^7.24.6":
version: 7.24.6
resolution: "@babel/helper-validator-identifier@npm:7.24.6"
checksum: 10/7e725ef0684291ca3306d5174a5d1cd9072ad58ba444cfa50aaf92a5c59dd723fa15031733ac598bb6b066cb62c2472e14cd82325522348977a72e99aa21b97a
Expand Down Expand Up @@ -2034,6 +2034,23 @@ __metadata:
languageName: node
linkType: hard

"@eslint/eslintrc@npm:^3.0.2":
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: 10/02bf892d1397e1029209dea685e9f4f87baf643315df2a632b5f121ec7e8548a3b34f428a007234fa82772218fa8a3ac2d10328637b9ce63b7f8344035b74db3
languageName: node
linkType: hard

"@eslint/js@npm:8.57.0":
version: 8.57.0
resolution: "@eslint/js@npm:8.57.0"
Expand Down Expand Up @@ -3910,12 +3927,12 @@ __metadata:
languageName: node
linkType: hard

"acorn@npm:^8.7.1, acorn@npm:^8.9.0":
version: 8.10.0
resolution: "acorn@npm:8.10.0"
"acorn@npm:^8.11.3, acorn@npm:^8.7.1, acorn@npm:^8.9.0":
version: 8.11.3
resolution: "acorn@npm:8.11.3"
bin:
acorn: bin/acorn
checksum: 10/522310c20fdc3c271caed3caf0f06c51d61cb42267279566edd1d58e83dbc12eebdafaab666a0f0be1b7ad04af9c6bc2a6f478690a9e6391c3c8b165ada917dd
checksum: 10/b688e7e3c64d9bfb17b596e1b35e4da9d50553713b3b3630cf5690f2b023a84eac90c56851e6912b483fe60e8b4ea28b254c07e92f17ef83d72d78745a8352dd
languageName: node
linkType: hard

Expand Down Expand Up @@ -5330,12 +5347,12 @@ __metadata:
languageName: node
linkType: hard

"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.34.0, core-js-compat@npm:^3.36.1":
version: 3.36.1
resolution: "core-js-compat@npm:3.36.1"
"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.36.1, core-js-compat@npm:^3.37.0":
version: 3.37.1
resolution: "core-js-compat@npm:3.37.1"
dependencies:
browserslist: "npm:^4.23.0"
checksum: 10/d86b46805de7f5ba3675ed21532ecc64b6c1f123be7286b9efa7941ec087cd8d2446cb555f03a407dbbbeb6e881d1baf92eaffb7f051b11d9103f39c8731fa62
checksum: 10/30c6fdbd9ff179cc53951814689b8aabec106e5de6cddfa7a7feacc96b66d415b8eebcf5ec8f7c68ef35c552fe7d39edb8b15b1ce0f27379a272295b6e937061
languageName: node
linkType: hard

Expand Down Expand Up @@ -6232,7 +6249,7 @@ __metadata:
eslint-plugin-react-perf: "npm:^3.3.2"
eslint-plugin-simple-import-sort: "npm:^12.1.0"
eslint-plugin-solid: "npm:^0.14.0"
eslint-plugin-unicorn: "npm:^52.0.0"
eslint-plugin-unicorn: "npm:^53.0.0"
peerDependencies:
eslint: ^8.0.0 || ^9.0.0
languageName: unknown
Expand Down Expand Up @@ -6468,16 +6485,16 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-unicorn@npm:^52.0.0":
version: 52.0.0
resolution: "eslint-plugin-unicorn@npm:52.0.0"
"eslint-plugin-unicorn@npm:^53.0.0":
version: 53.0.0
resolution: "eslint-plugin-unicorn@npm:53.0.0"
dependencies:
"@babel/helper-validator-identifier": "npm:^7.22.20"
"@babel/helper-validator-identifier": "npm:^7.24.5"
"@eslint-community/eslint-utils": "npm:^4.4.0"
"@eslint/eslintrc": "npm:^2.1.4"
"@eslint/eslintrc": "npm:^3.0.2"
ci-info: "npm:^4.0.0"
clean-regexp: "npm:^1.0.0"
core-js-compat: "npm:^3.34.0"
core-js-compat: "npm:^3.37.0"
esquery: "npm:^1.5.0"
indent-string: "npm:^4.0.0"
is-builtin-module: "npm:^3.2.1"
Expand All @@ -6486,11 +6503,11 @@ __metadata:
read-pkg-up: "npm:^7.0.1"
regexp-tree: "npm:^0.1.27"
regjsparser: "npm:^0.10.0"
semver: "npm:^7.5.4"
semver: "npm:^7.6.1"
strip-indent: "npm:^3.0.0"
peerDependencies:
eslint: ">=8.56.0"
checksum: 10/69b8aeee04806b808a534fe5484ad75ee9feec6078aad90651d7ce7216e2bd14980fec5a2e05fd800b874406a54240af66f04ab83023a7f1fe67397b6dc4c032
checksum: 10/988673e28a556ea31475dde8470b0d176fbf5089eeb6693fd56432e06b5295b2093aefc16e0a7b319133b75ec4f044f94b2b40f3cf01ff04f4a29adf30c3ac22
languageName: node
linkType: hard

Expand Down Expand Up @@ -6527,6 +6544,13 @@ __metadata:
languageName: node
linkType: hard

"eslint-visitor-keys@npm:^4.0.0":
version: 4.0.0
resolution: "eslint-visitor-keys@npm:4.0.0"
checksum: 10/c7617166e6291a15ce2982b5c4b9cdfb6409f5c14562712d12e2584480cdf18609694b21d7dad35b02df0fa2cd037505048ded54d2f405c64f600949564eb334
languageName: node
linkType: hard

"eslint@npm:^8.57.0":
version: 8.57.0
resolution: "eslint@npm:8.57.0"
Expand Down Expand Up @@ -6575,6 +6599,17 @@ __metadata:
languageName: node
linkType: hard

"espree@npm:^10.0.1":
version: 10.0.1
resolution: "espree@npm:10.0.1"
dependencies:
acorn: "npm:^8.11.3"
acorn-jsx: "npm:^5.3.2"
eslint-visitor-keys: "npm:^4.0.0"
checksum: 10/557d6cfb4894b1489effcaed8702682086033f8a2449568933bc59493734733d750f2a87907ba575844d3933340aea2d84288f5e67020c6152f6fd18a86497b2
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 Down Expand Up @@ -7303,6 +7338,13 @@ __metadata:
languageName: node
linkType: hard

"globals@npm:^14.0.0":
version: 14.0.0
resolution: "globals@npm:14.0.0"
checksum: 10/03939c8af95c6df5014b137cac83aa909090c3a3985caef06ee9a5a669790877af8698ab38007e4c0186873adc14c0b13764acc754b16a754c216cc56aa5f021
languageName: node
linkType: hard

"globalthis@npm:^1.0.3":
version: 1.0.3
resolution: "globalthis@npm:1.0.3"
Expand Down Expand Up @@ -12070,7 +12112,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^7.0.0, semver@npm:^7.1.1, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.2":
"semver@npm:^7.0.0, semver@npm:^7.1.1, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.1, semver@npm:^7.6.2":
version: 7.6.2
resolution: "semver@npm:7.6.2"
bin:
Expand Down

0 comments on commit 78921b1

Please sign in to comment.