Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

chore(deps): update dependency eslint-plugin-n to v18 (#5948)

renovate[bot]99f0e4a39e44
diff --git a/eslint.config.js b/eslint.config.js
index 4ce377d3..0942d7c9 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -2,7 +2,7 @@
const js = require("@eslint/js");
const { defineConfig, globalIgnores } = require("eslint/config");
-const n = require("eslint-plugin-n");
+const { default: n } = require("eslint-plugin-n");
const globals = require("globals");
const { default: markdown } = require("@eslint/markdown");
diff --git a/package-lock.json b/package-lock.json
index 451df261..da42ff4f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -49,7 +49,7 @@
"coffeescript": "^2.6.1",
"cross-env": "^10.0.0",
"eslint": "^10.0.0",
- "eslint-plugin-n": "^17.23.1",
+ "eslint-plugin-n": "^18.0.0",
"fail-on-errors-webpack-plugin": "^3.0.0",
"globals": "^17.0.0",
"installed-check": "^10.0.0",
@@ -4349,9 +4349,9 @@
}
},
"node_modules/eslint-plugin-n": {
- "version": "17.24.0",
- "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.24.0.tgz",
- "integrity": "sha512-/gC7/KAYmfNnPNOb3eu8vw+TdVnV0zhdQwexsw6FLXbhzroVj20vRn2qL8lDWDGnAQ2J8DhdfvXxX9EoxvERvw==",
+ "version": "18.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-18.0.1.tgz",
+ "integrity": "sha512-q3ARhk+eZRc7myR0KHx+R3/GJeOHF+Ir6PK95Pu2tEX8Sl/4BIpmmVLva2kPrjC2gCmn6WHlHm+3yeo6Rxhycw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -4362,17 +4362,26 @@
"globals": "^15.11.0",
"globrex": "^0.1.2",
"ignore": "^5.3.2",
- "semver": "^7.6.3",
- "ts-declaration-location": "^1.0.6"
+ "semver": "^7.6.3"
},
"engines": {
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ "node": "^20.19.0 || ^22.13.0 || >=24"
},
"funding": {
"url": "https://opencollective.com/eslint"
},
"peerDependencies": {
- "eslint": ">=8.23.0"
+ "eslint": ">=8.57.1",
+ "ts-declaration-location": "^1.0.6",
+ "typescript": ">=5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ts-declaration-location": {
+ "optional": true
+ },
+ "typescript": {
+ "optional": true
+ }
}
},
"node_modules/eslint-plugin-n/node_modules/globals": {
@@ -10194,42 +10203,6 @@
"url": "https://github.com/sponsors/wooorm"
}
},
- "node_modules/ts-declaration-location": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/ts-declaration-location/-/ts-declaration-location-1.0.7.tgz",
- "integrity": "sha512-EDyGAwH1gO0Ausm9gV6T2nUvBgXT5kGoCMJPllOaooZ+4VvJiKBdZE7wK18N1deEowhcUptS+5GXZK8U/fvpwA==",
- "dev": true,
- "funding": [
- {
- "type": "ko-fi",
- "url": "https://ko-fi.com/rebeccastevens"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/ts-declaration-location"
- }
- ],
- "license": "BSD-3-Clause",
- "dependencies": {
- "picomatch": "^4.0.2"
- },
- "peerDependencies": {
- "typescript": ">=4.0.0"
- }
- },
- "node_modules/ts-declaration-location/node_modules/picomatch": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
- "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
"node_modules/tslib": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
diff --git a/package.json b/package.json
index 09418894..6aad5311 100644
--- a/package.json
+++ b/package.json
@@ -128,7 +128,7 @@
"coffeescript": "^2.6.1",
"cross-env": "^10.0.0",
"eslint": "^10.0.0",
- "eslint-plugin-n": "^17.23.1",
+ "eslint-plugin-n": "^18.0.0",
"fail-on-errors-webpack-plugin": "^3.0.0",
"globals": "^17.0.0",
"installed-check": "^10.0.0",