diff --git a/config/eslint.js b/config/eslint.js index c5a38d70..fe8ddabc 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -815,7 +815,7 @@ export default [ radix: ["error"], "require-atomic-updates": ["error"], "require-await": ["error"], - "require-unicode-regexp": ["error"], + "require-unicode-regexp": ["off"], "require-yield": ["error"], "sort-imports": ["off"], "sort-keys": ["off"], @@ -845,6 +845,7 @@ export default [ "unicorn/explicit-length-check": ["error"], "unicorn/filename-case": ["error"], "unicorn/import-style": ["off"], + "unicorn/isolated-functions": ["error"], "unicorn/new-for-builtins": ["error"], "unicorn/no-abusive-eslint-disable": ["error"], "unicorn/no-accessor-recursion": ["error"], diff --git a/package-lock.json b/package-lock.json index 40b0f083..e3b226d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "eslint-plugin-import": "2.32.0", "eslint-plugin-jsdoc": "62.7.1", "eslint-plugin-regexp": "3.0.0", - "eslint-plugin-unicorn": "62.0.0", + "eslint-plugin-unicorn": "63.0.0", "eslint-plugin-yml": "3.3.0", "fast-check": "4.6.0", "licensee": "12.0.1", @@ -5926,20 +5926,18 @@ } }, "node_modules/eslint-plugin-unicorn": { - "version": "62.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-62.0.0.tgz", - "integrity": "sha512-HIlIkGLkvf29YEiS/ImuDZQbP12gWyx5i3C6XrRxMvVdqMroCI9qoVYCoIl17ChN+U89pn9sVwLxhIWj5nEc7g==", + "version": "63.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-63.0.0.tgz", + "integrity": "sha512-Iqecl9118uQEXYh7adylgEmGfkn5es3/mlQTLLkd4pXkIk9CTGrAbeUux+YljSa2ohXCBmQQ0+Ej1kZaFgcfkA==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.28.5", "@eslint-community/eslint-utils": "^4.9.0", - "@eslint/plugin-kit": "^0.4.0", "change-case": "^5.4.4", "ci-info": "^4.3.1", "clean-regexp": "^1.0.0", "core-js-compat": "^3.46.0", - "esquery": "^1.6.0", "find-up-simple": "^1.0.1", "globals": "^16.4.0", "indent-string": "^5.0.0", @@ -5961,33 +5959,6 @@ "eslint": ">=9.38.0" } }, - "node_modules/eslint-plugin-unicorn/node_modules/@eslint/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", - "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", - "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, "node_modules/eslint-plugin-unicorn/node_modules/globals": { "version": "16.5.0", "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", diff --git a/package.json b/package.json index 6a63b431..3bf07400 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "eslint-plugin-import": "2.32.0", "eslint-plugin-jsdoc": "62.7.1", "eslint-plugin-regexp": "3.0.0", - "eslint-plugin-unicorn": "62.0.0", + "eslint-plugin-unicorn": "63.0.0", "eslint-plugin-yml": "3.3.0", "fast-check": "4.6.0", "licensee": "12.0.1", diff --git a/test/compat/regexp-engine/runner.js b/test/compat/regexp-engine/runner.js index 133afd44..1a02a392 100644 --- a/test/compat/regexp-engine/runner.js +++ b/test/compat/regexp-engine/runner.js @@ -21,7 +21,7 @@ import * as unix from "./unix.test.js"; import * as win from "./win.test.js"; try { - // eslint-disable-next-line + // eslint-disable-next-line prefer-regex-literals, no-invalid-regexp, no-new, regexp/no-non-standard-flag, regexp/require-unicode-regexp new RegExp("", "l"); } catch { throw new Error(