diff --git a/package-lock.json b/package-lock.json index c732aab7..89b4c815 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "@eslint/eslintrc": "^2.1.2", "@tsconfig/node16": "^16.1.1", "@typescript-eslint/eslint-plugin": "^6.7.3", - "eslint": "^8.48.0", + "eslint": "^8.50.0", "eslint-find-rules": "^4.1.0", "prettier": "^3.0.3", "remark-preset-ybiquitous": "^0.3.1", @@ -36,7 +36,7 @@ }, "peerDependencies": { "@typescript-eslint/eslint-plugin": ">=6.2.0", - "eslint": ">=8.46.0" + "eslint": ">=8.50.0" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { @@ -996,17 +996,17 @@ } }, "node_modules/@eslint/js": { - "version": "8.48.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.48.0.tgz", - "integrity": "sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==", + "version": "8.50.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz", + "integrity": "sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", - "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", + "version": "0.11.11", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz", + "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==", "dependencies": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", @@ -3850,15 +3850,15 @@ } }, "node_modules/eslint": { - "version": "8.48.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.48.0.tgz", - "integrity": "sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==", + "version": "8.50.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz", + "integrity": "sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg==", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.48.0", - "@humanwhocodes/config-array": "^0.11.10", + "@eslint/js": "8.50.0", + "@humanwhocodes/config-array": "^0.11.11", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.12.4", diff --git a/package.json b/package.json index 4fbbde08..5a5c33d1 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@eslint/eslintrc": "^2.1.2", "@tsconfig/node16": "^16.1.1", "@typescript-eslint/eslint-plugin": "^6.7.3", - "eslint": "^8.48.0", + "eslint": "^8.50.0", "eslint-find-rules": "^4.1.0", "prettier": "^3.0.3", "remark-preset-ybiquitous": "^0.3.1", @@ -48,7 +48,7 @@ }, "peerDependencies": { "@typescript-eslint/eslint-plugin": ">=6.2.0", - "eslint": ">=8.46.0" + "eslint": ">=8.50.0" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { diff --git a/rules/core.js b/rules/core.js index 17a94795..49ccac33 100644 --- a/rules/core.js +++ b/rules/core.js @@ -81,8 +81,8 @@ module.exports = { "no-new": "error", "no-new-func": "error", "no-new-native-nonconstructor": "error", - "no-new-object": "error", "no-new-wrappers": "error", + "no-object-constructor": "error", "no-octal-escape": "error", "no-param-reassign": ["warn", { props: true }], "no-plusplus": ["error", { allowForLoopAfterthoughts: true }],