chore: update eslint-plugin-unicorn (#15067)

This commit is contained in:
Simen Bekkhus
2024-05-13 10:22:47 +02:00
committed by GitHub
parent 9ccc9c1fa3
commit 51ef02ddc2
4 changed files with 62 additions and 16 deletions
+4
View File
@@ -225,6 +225,7 @@ module.exports = {
'unicorn/no-await-expression-member': 'off',
'unicorn/no-static-only-class': 'off',
'unicorn/prefer-number-properties': 'off',
'unicorn/prefer-string-raw': 'off',
},
},
// demonstration of matchers usage
@@ -336,6 +337,7 @@ module.exports = {
'unicorn/consistent-function-scoping': 'off',
'unicorn/no-await-expression-member': 'off',
'unicorn/prefer-spread': 'off',
'unicorn/prefer-string-raw': 'off',
},
},
{
@@ -705,6 +707,8 @@ module.exports = {
// TODO: decide whether or not we want these
'unicorn/filename-case': 'off',
'unicorn/prefer-reflect-apply': 'off',
'unicorn/prefer-string-raw': 'off',
'unicorn/prefer-structured-clone': 'off',
// enabling this is blocked by https://github.com/microsoft/rushstack/issues/2780
'unicorn/prefer-export-from': 'off',
+1 -1
View File
@@ -42,7 +42,7 @@
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unicorn": "^53.0.0",
"execa": "^5.0.0",
"find-process": "^1.4.1",
"glob": "^10.3.10",
@@ -56,7 +56,7 @@ type WatchmanQueryResponse = {
const watchmanURL = 'https://facebook.github.io/watchman/docs/troubleshooting';
function WatchmanError(error: Error): Error {
function watchmanError(error: Error): Error {
error.message =
`Watchman error: ${error.message.trim()}. Make sure watchman ` +
`is running for this project. See ${watchmanURL}.`;
@@ -121,12 +121,12 @@ export async function watchmanCrawl(options: CrawlerOptions): Promise<{
}
let clientError;
client.on('error', error => (clientError = WatchmanError(error)));
client.on('error', error => (clientError = watchmanError(error)));
const cmd = <T>(...args: Array<any>): Promise<T> =>
new Promise((resolve, reject) =>
client.command(args, (error, result) =>
error ? reject(WatchmanError(error)) : resolve(result),
error ? reject(watchmanError(error)) : resolve(result),
),
);
+54 -12
View File
@@ -2710,6 +2710,23 @@ __metadata:
languageName: node
linkType: hard
"@eslint/eslintrc@npm:^3.0.2":
version: 3.0.2
resolution: "@eslint/eslintrc@npm:3.0.2"
dependencies:
ajv: ^6.12.4
debug: ^4.3.2
espree: ^10.0.1
globals: ^14.0.0
ignore: ^5.2.0
import-fresh: ^3.2.1
js-yaml: ^4.1.0
minimatch: ^3.1.2
strip-json-comments: ^3.1.1
checksum: 05bf516b60fbb1c1bdc264e081118b2172c5feb071cd665976482c5614b8e7950991175fea3ca6b1f482ced7cb0d0aa34ceab3a508d6bf1ff17b4efc0911e293
languageName: node
linkType: hard
"@eslint/js@npm:8.57.0":
version: 8.57.0
resolution: "@eslint/js@npm:8.57.0"
@@ -3054,7 +3071,7 @@ __metadata:
eslint-plugin-markdown: ^3.0.0
eslint-plugin-prettier: ^5.0.0
eslint-plugin-promise: ^6.1.1
eslint-plugin-unicorn: ^52.0.0
eslint-plugin-unicorn: ^53.0.0
execa: ^5.0.0
find-process: ^1.4.1
glob: ^10.3.10
@@ -6105,7 +6122,7 @@ __metadata:
languageName: node
linkType: hard
"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":
"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":
version: 8.11.3
resolution: "acorn@npm:8.11.3"
bin:
@@ -7996,7 +8013,7 @@ __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":
"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.36.1, core-js-compat@npm:^3.37.0":
version: 3.37.0
resolution: "core-js-compat@npm:3.37.0"
dependencies:
@@ -9520,16 +9537,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": ^7.22.20
"@babel/helper-validator-identifier": ^7.24.5
"@eslint-community/eslint-utils": ^4.4.0
"@eslint/eslintrc": ^2.1.4
"@eslint/eslintrc": ^3.0.2
ci-info: ^4.0.0
clean-regexp: ^1.0.0
core-js-compat: ^3.34.0
core-js-compat: ^3.37.0
esquery: ^1.5.0
indent-string: ^4.0.0
is-builtin-module: ^3.2.1
@@ -9538,11 +9555,11 @@ __metadata:
read-pkg-up: ^7.0.1
regexp-tree: ^0.1.27
regjsparser: ^0.10.0
semver: ^7.5.4
semver: ^7.6.1
strip-indent: ^3.0.0
peerDependencies:
eslint: ">=8.56.0"
checksum: 27c827b67951d07145d451c426e714ce5b06f8022156185247dbebaf02642349cf0b5821a8b56ad7812646bcfb161f4db4382d10ba07544bf566b377bea3e70d
checksum: bf3e4046977903c7018745c3ad19c026ef25df116721f10a58dc215285c4d98d8531829e31aa5b4da0ccc03aa352e5a58a865c7879c50da7138ce5fd41a21a3d
languageName: node
linkType: hard
@@ -9573,6 +9590,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: 5c09f89cf29d87cdbfbac38802a880d3c2e65f8cb61c689888346758f1e24a4c7f6caefeac9474dfa52058a99920623599bdb00516976a30134abeba91275aa2
languageName: node
linkType: hard
"eslint@npm:^8.8.0":
version: 8.57.0
resolution: "eslint@npm:8.57.0"
@@ -9621,6 +9645,17 @@ __metadata:
languageName: node
linkType: hard
"espree@npm:^10.0.1":
version: 10.0.1
resolution: "espree@npm:10.0.1"
dependencies:
acorn: ^8.11.3
acorn-jsx: ^5.3.2
eslint-visitor-keys: ^4.0.0
checksum: 62c9242a84c6741cebd35ede6574131d0419be7e5559566403e384087d99c4ddb2ced44e32acd44a4c3d8a8a84997cf8d78810c4e46b3fe25a804f1a92dc6b9d
languageName: node
linkType: hard
"espree@npm:^9.6.0, espree@npm:^9.6.1":
version: 9.6.1
resolution: "espree@npm:9.6.1"
@@ -10949,6 +10984,13 @@ __metadata:
languageName: node
linkType: hard
"globals@npm:^14.0.0":
version: 14.0.0
resolution: "globals@npm:14.0.0"
checksum: 534b8216736a5425737f59f6e6a5c7f386254560c9f41d24a9227d60ee3ad4a9e82c5b85def0e212e9d92162f83a92544be4c7fd4c902cb913736c10e08237ac
languageName: node
linkType: hard
"globalthis@npm:^1.0.3":
version: 1.0.4
resolution: "globalthis@npm:1.0.4"
@@ -18803,7 +18845,7 @@ __metadata:
languageName: node
linkType: hard
"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.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":
version: 7.6.2
resolution: "semver@npm:7.6.2"
bin: