Skip to content

Commit 08b8634

Browse files
authored
chore: update eslint-plugin-unicorn (#15067)
1 parent 343d450 commit 08b8634

File tree

4 files changed

+62
-16
lines changed

4 files changed

+62
-16
lines changed

.eslintrc.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ module.exports = {
225225
'unicorn/no-await-expression-member': 'off',
226226
'unicorn/no-static-only-class': 'off',
227227
'unicorn/prefer-number-properties': 'off',
228+
'unicorn/prefer-string-raw': 'off',
228229
},
229230
},
230231
// demonstration of matchers usage
@@ -336,6 +337,7 @@ module.exports = {
336337
'unicorn/consistent-function-scoping': 'off',
337338
'unicorn/no-await-expression-member': 'off',
338339
'unicorn/prefer-spread': 'off',
340+
'unicorn/prefer-string-raw': 'off',
339341
},
340342
},
341343
{
@@ -705,6 +707,8 @@ module.exports = {
705707
// TODO: decide whether or not we want these
706708
'unicorn/filename-case': 'off',
707709
'unicorn/prefer-reflect-apply': 'off',
710+
'unicorn/prefer-string-raw': 'off',
711+
'unicorn/prefer-structured-clone': 'off',
708712

709713
// enabling this is blocked by https://github.com/microsoft/rushstack/issues/2780
710714
'unicorn/prefer-export-from': 'off',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"eslint-plugin-markdown": "^3.0.0",
4343
"eslint-plugin-prettier": "^5.0.0",
4444
"eslint-plugin-promise": "^6.1.1",
45-
"eslint-plugin-unicorn": "^52.0.0",
45+
"eslint-plugin-unicorn": "^53.0.0",
4646
"execa": "^5.0.0",
4747
"find-process": "^1.4.1",
4848
"glob": "^10.3.10",

packages/jest-haste-map/src/crawlers/watchman.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type WatchmanQueryResponse = {
5656

5757
const watchmanURL = 'https://facebook.github.io/watchman/docs/troubleshooting';
5858

59-
function WatchmanError(error: Error): Error {
59+
function watchmanError(error: Error): Error {
6060
error.message =
6161
`Watchman error: ${error.message.trim()}. Make sure watchman ` +
6262
`is running for this project. See ${watchmanURL}.`;
@@ -121,12 +121,12 @@ export async function watchmanCrawl(options: CrawlerOptions): Promise<{
121121
}
122122

123123
let clientError;
124-
client.on('error', error => (clientError = WatchmanError(error)));
124+
client.on('error', error => (clientError = watchmanError(error)));
125125

126126
const cmd = <T>(...args: Array<any>): Promise<T> =>
127127
new Promise((resolve, reject) =>
128128
client.command(args, (error, result) =>
129-
error ? reject(WatchmanError(error)) : resolve(result),
129+
error ? reject(watchmanError(error)) : resolve(result),
130130
),
131131
);
132132

yarn.lock

Lines changed: 54 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2710,6 +2710,23 @@ __metadata:
27102710
languageName: node
27112711
linkType: hard
27122712

2713+
"@eslint/eslintrc@npm:^3.0.2":
2714+
version: 3.0.2
2715+
resolution: "@eslint/eslintrc@npm:3.0.2"
2716+
dependencies:
2717+
ajv: ^6.12.4
2718+
debug: ^4.3.2
2719+
espree: ^10.0.1
2720+
globals: ^14.0.0
2721+
ignore: ^5.2.0
2722+
import-fresh: ^3.2.1
2723+
js-yaml: ^4.1.0
2724+
minimatch: ^3.1.2
2725+
strip-json-comments: ^3.1.1
2726+
checksum: 05bf516b60fbb1c1bdc264e081118b2172c5feb071cd665976482c5614b8e7950991175fea3ca6b1f482ced7cb0d0aa34ceab3a508d6bf1ff17b4efc0911e293
2727+
languageName: node
2728+
linkType: hard
2729+
27132730
"@eslint/js@npm:8.57.0":
27142731
version: 8.57.0
27152732
resolution: "@eslint/js@npm:8.57.0"
@@ -3054,7 +3071,7 @@ __metadata:
30543071
eslint-plugin-markdown: ^3.0.0
30553072
eslint-plugin-prettier: ^5.0.0
30563073
eslint-plugin-promise: ^6.1.1
3057-
eslint-plugin-unicorn: ^52.0.0
3074+
eslint-plugin-unicorn: ^53.0.0
30583075
execa: ^5.0.0
30593076
find-process: ^1.4.1
30603077
glob: ^10.3.10
@@ -6105,7 +6122,7 @@ __metadata:
61056122
languageName: node
61066123
linkType: hard
61076124

6108-
"acorn@npm:^8.0.0, acorn@npm:^8.0.4, acorn@npm:^8.4.1, acorn@npm:^8.7.1, acorn@npm:^8.8.2, acorn@npm:^8.9.0":
6125+
"acorn@npm:^8.0.0, acorn@npm:^8.0.4, acorn@npm:^8.11.3, acorn@npm:^8.4.1, acorn@npm:^8.7.1, acorn@npm:^8.8.2, acorn@npm:^8.9.0":
61096126
version: 8.11.3
61106127
resolution: "acorn@npm:8.11.3"
61116128
bin:
@@ -7996,7 +8013,7 @@ __metadata:
79968013
languageName: node
79978014
linkType: hard
79988015

7999-
"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.34.0, core-js-compat@npm:^3.36.1":
8016+
"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.36.1, core-js-compat@npm:^3.37.0":
80008017
version: 3.37.0
80018018
resolution: "core-js-compat@npm:3.37.0"
80028019
dependencies:
@@ -9520,16 +9537,16 @@ __metadata:
95209537
languageName: node
95219538
linkType: hard
95229539

9523-
"eslint-plugin-unicorn@npm:^52.0.0":
9524-
version: 52.0.0
9525-
resolution: "eslint-plugin-unicorn@npm:52.0.0"
9540+
"eslint-plugin-unicorn@npm:^53.0.0":
9541+
version: 53.0.0
9542+
resolution: "eslint-plugin-unicorn@npm:53.0.0"
95269543
dependencies:
9527-
"@babel/helper-validator-identifier": ^7.22.20
9544+
"@babel/helper-validator-identifier": ^7.24.5
95289545
"@eslint-community/eslint-utils": ^4.4.0
9529-
"@eslint/eslintrc": ^2.1.4
9546+
"@eslint/eslintrc": ^3.0.2
95309547
ci-info: ^4.0.0
95319548
clean-regexp: ^1.0.0
9532-
core-js-compat: ^3.34.0
9549+
core-js-compat: ^3.37.0
95339550
esquery: ^1.5.0
95349551
indent-string: ^4.0.0
95359552
is-builtin-module: ^3.2.1
@@ -9538,11 +9555,11 @@ __metadata:
95389555
read-pkg-up: ^7.0.1
95399556
regexp-tree: ^0.1.27
95409557
regjsparser: ^0.10.0
9541-
semver: ^7.5.4
9558+
semver: ^7.6.1
95429559
strip-indent: ^3.0.0
95439560
peerDependencies:
95449561
eslint: ">=8.56.0"
9545-
checksum: 27c827b67951d07145d451c426e714ce5b06f8022156185247dbebaf02642349cf0b5821a8b56ad7812646bcfb161f4db4382d10ba07544bf566b377bea3e70d
9562+
checksum: bf3e4046977903c7018745c3ad19c026ef25df116721f10a58dc215285c4d98d8531829e31aa5b4da0ccc03aa352e5a58a865c7879c50da7138ce5fd41a21a3d
95469563
languageName: node
95479564
linkType: hard
95489565

@@ -9573,6 +9590,13 @@ __metadata:
95739590
languageName: node
95749591
linkType: hard
95759592

9593+
"eslint-visitor-keys@npm:^4.0.0":
9594+
version: 4.0.0
9595+
resolution: "eslint-visitor-keys@npm:4.0.0"
9596+
checksum: 5c09f89cf29d87cdbfbac38802a880d3c2e65f8cb61c689888346758f1e24a4c7f6caefeac9474dfa52058a99920623599bdb00516976a30134abeba91275aa2
9597+
languageName: node
9598+
linkType: hard
9599+
95769600
"eslint@npm:^8.8.0":
95779601
version: 8.57.0
95789602
resolution: "eslint@npm:8.57.0"
@@ -9621,6 +9645,17 @@ __metadata:
96219645
languageName: node
96229646
linkType: hard
96239647

9648+
"espree@npm:^10.0.1":
9649+
version: 10.0.1
9650+
resolution: "espree@npm:10.0.1"
9651+
dependencies:
9652+
acorn: ^8.11.3
9653+
acorn-jsx: ^5.3.2
9654+
eslint-visitor-keys: ^4.0.0
9655+
checksum: 62c9242a84c6741cebd35ede6574131d0419be7e5559566403e384087d99c4ddb2ced44e32acd44a4c3d8a8a84997cf8d78810c4e46b3fe25a804f1a92dc6b9d
9656+
languageName: node
9657+
linkType: hard
9658+
96249659
"espree@npm:^9.6.0, espree@npm:^9.6.1":
96259660
version: 9.6.1
96269661
resolution: "espree@npm:9.6.1"
@@ -10949,6 +10984,13 @@ __metadata:
1094910984
languageName: node
1095010985
linkType: hard
1095110986

10987+
"globals@npm:^14.0.0":
10988+
version: 14.0.0
10989+
resolution: "globals@npm:14.0.0"
10990+
checksum: 534b8216736a5425737f59f6e6a5c7f386254560c9f41d24a9227d60ee3ad4a9e82c5b85def0e212e9d92162f83a92544be4c7fd4c902cb913736c10e08237ac
10991+
languageName: node
10992+
linkType: hard
10993+
1095210994
"globalthis@npm:^1.0.3":
1095310995
version: 1.0.4
1095410996
resolution: "globalthis@npm:1.0.4"
@@ -18803,7 +18845,7 @@ __metadata:
1880318845
languageName: node
1880418846
linkType: hard
1880518847

18806-
"semver@npm:^7.1.1, semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0":
18848+
"semver@npm:^7.1.1, semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, 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":
1880718849
version: 7.6.2
1880818850
resolution: "semver@npm:7.6.2"
1880918851
bin:

0 commit comments

Comments
 (0)