diff --git a/CHANGELOG.md b/CHANGELOG.md index 05200f8..49d1d3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This changelog is only to log changes of the project base. If there are changes on the packages, please, check and update the changelog of each package accordingly. --> +## 3.1.0 + +- Replace dependency eslint-plugin-node with eslint-plugin-n 14.0.0. + # 3.0.0 - Updated engine requirements to node 18 and npm 9. diff --git a/package-lock.json b/package-lock.json index 7f573ab..fee3683 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "devDependencies": { "chalk": "5.3.0", "eslint": "8.50.0", - "eslint-plugin-node": "11.1.0", + "eslint-plugin-n": "14.0.0", "safe-publish": "1.2.1" }, "engines": { @@ -2044,24 +2044,6 @@ "ms": "^2.1.1" } }, - "node_modules/eslint-plugin-es": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz", - "integrity": "sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==", - "dependencies": { - "eslint-utils": "^2.0.0", - "regexpp": "^3.0.0" - }, - "engines": { - "node": ">=8.10.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=4.19.1" - } - }, "node_modules/eslint-plugin-import": { "version": "2.28.1", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.1.tgz", @@ -2297,23 +2279,80 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, - "node_modules/eslint-plugin-node": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz", - "integrity": "sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==", + "node_modules/eslint-plugin-n": { + "version": "14.0.0", + "resolved": "https://artifactory.tools.3stripes.net/artifactory/api/npm/npm-virtual/eslint-plugin-n/-/eslint-plugin-n-14.0.0.tgz", + "integrity": "sha512-mNwplPLsbaKhHyA0fa/cy8j+oF6bF6l81hzBTWa6JOvPcMNAuIogk2ih6d9tYvWYzyUG+7ZFeChqbzdFpg2QrQ==", "dependencies": { - "eslint-plugin-es": "^3.0.0", - "eslint-utils": "^2.0.0", + "eslint-plugin-es": "^4.1.0", + "eslint-utils": "^3.0.0", "ignore": "^5.1.1", + "is-core-module": "^2.3.0", "minimatch": "^3.0.4", "resolve": "^1.10.1", "semver": "^6.1.0" }, + "engines": { + "node": ">=12.22.0" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-n/node_modules/eslint-plugin-es": { + "version": "4.1.0", + "resolved": "https://artifactory.tools.3stripes.net/artifactory/api/npm/npm-virtual/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz", + "integrity": "sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==", + "dependencies": { + "eslint-utils": "^2.0.0", + "regexpp": "^3.0.0" + }, "engines": { "node": ">=8.10.0" }, "peerDependencies": { - "eslint": ">=5.16.0" + "eslint": ">=4.19.1" + } + }, + "node_modules/eslint-plugin-n/node_modules/eslint-plugin-es/node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://artifactory.tools.3stripes.net/artifactory/api/npm/npm-virtual/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint-plugin-n/node_modules/eslint-plugin-es/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://artifactory.tools.3stripes.net/artifactory/api/npm/npm-virtual/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-plugin-n/node_modules/eslint-utils": { + "version": "3.0.0", + "resolved": "https://artifactory.tools.3stripes.net/artifactory/api/npm/npm-virtual/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dependencies": { + "eslint-visitor-keys": "^2.0.0" + }, + "engines": { + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "peerDependencies": { + "eslint": ">=5" + } + }, + "node_modules/eslint-plugin-n/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://artifactory.tools.3stripes.net/artifactory/api/npm/npm-virtual/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "engines": { + "node": ">=10" } }, "node_modules/eslint-plugin-promise": { @@ -2456,28 +2495,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dependencies": { - "eslint-visitor-keys": "^1.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "engines": { - "node": ">=4" - } - }, "node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", @@ -5866,7 +5883,7 @@ }, "peerDependencies": { "eslint": "^8", - "eslint-plugin-node": "^11" + "eslint-plugin-n": "^14" } }, "packages/eslint-config-adidas-es13": { @@ -5979,7 +5996,7 @@ } }, "packages/eslint-config-adidas-typescript": { - "version": "2.0.0", + "version": "2.0.1", "license": "MIT", "dependencies": { "@typescript-eslint/eslint-plugin": "^6.7", @@ -5995,7 +6012,7 @@ } }, "packages/eslint-config-adidas-vue": { - "version": "2.0.0", + "version": "2.0.1", "license": "MIT", "engines": { "node": ">= 18", diff --git a/package.json b/package.json index 35ebc44..099ebf4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "js-linter-configs", - "version": "3.0.0", + "version": "3.1.0", "description": "adidas configurations for JavaScript linting tools", "license": "MIT", "contributors": [ @@ -15,7 +15,9 @@ "node": ">= 18", "npm": ">= 9" }, - "workspaces": [ "packages/*" ], + "workspaces": [ + "packages/*" + ], "scripts": { "safe-publish": "npm exec --workspaces -- safe-publish", "lint": "eslint packages" @@ -23,7 +25,7 @@ "devDependencies": { "chalk": "5.3.0", "eslint": "8.50.0", - "eslint-plugin-node": "11.1.0", + "eslint-plugin-n": "14.0.0", "safe-publish": "1.2.1" }, "keywords": [ diff --git a/packages/eslint-config-adidas-env/CHANGELOG.md b/packages/eslint-config-adidas-env/CHANGELOG.md index 6926307..93fb64b 100644 --- a/packages/eslint-config-adidas-env/CHANGELOG.md +++ b/packages/eslint-config-adidas-env/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.1.0 + +- Replace dependency eslint-plugin-node with eslint-plugin-n 14.0.0. + ## 2.0.0 - Updated ESLint to version 8. diff --git a/packages/eslint-config-adidas-env/README.md b/packages/eslint-config-adidas-env/README.md index 7b34228..35559d9 100644 --- a/packages/eslint-config-adidas-env/README.md +++ b/packages/eslint-config-adidas-env/README.md @@ -12,7 +12,7 @@ Environment configurations for ESLint: ## Install ``` -npm i --save-dev eslint@8 eslint-plugin-node@11 eslint-config-adidas-env +npm i --save-dev eslint@8 eslint-plugin-n@14 eslint-config-adidas-env ``` ## Usage diff --git a/packages/eslint-config-adidas-env/module.js b/packages/eslint-config-adidas-env/module.js index a4a6e04..3e1c7ba 100644 --- a/packages/eslint-config-adidas-env/module.js +++ b/packages/eslint-config-adidas-env/module.js @@ -1,5 +1,5 @@ module.exports = { - plugins: [ 'node' ], + plugins: [ 'n' ], env: { commonjs: true }, @@ -7,11 +7,11 @@ module.exports = { sourceType: 'module' }, rules: { - 'node/global-require': 'off', - 'node/no-mixed-requires': 'off', - 'node/no-new-require': 'error', - 'node/no-process-env': 'off', - 'node/no-process-exit': 'off', - 'node/no-restricted-modules': 'off' + 'n/global-require': 'off', + 'n/no-mixed-requires': 'off', + 'n/no-new-require': 'error', + 'n/no-process-env': 'off', + 'n/no-process-exit': 'off', + 'n/no-restricted-modules': 'off' } }; diff --git a/packages/eslint-config-adidas-env/node.js b/packages/eslint-config-adidas-env/node.js index 3ad736a..642a28d 100644 --- a/packages/eslint-config-adidas-env/node.js +++ b/packages/eslint-config-adidas-env/node.js @@ -7,9 +7,9 @@ module.exports = { rules: { 'no-buffer-constructor': 'error', - 'node/callback-return': 'off', - 'node/handle-callback-err': 'error', - 'node/no-path-concat': 'error', - 'node/no-sync': 'off' + 'n/callback-return': 'off', + 'n/handle-callback-err': 'error', + 'n/no-path-concat': 'error', + 'n/no-sync': 'off' } }; diff --git a/packages/eslint-config-adidas-env/package.json b/packages/eslint-config-adidas-env/package.json index c14d081..7dd189c 100644 --- a/packages/eslint-config-adidas-env/package.json +++ b/packages/eslint-config-adidas-env/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-adidas-env", - "version": "2.0.0", + "version": "2.1.0", "description": "ESLint configurations for multiple environments", "license": "MIT", "contributors": [ @@ -18,7 +18,7 @@ "main": "./browser.js", "peerDependencies": { "eslint": "^8", - "eslint-plugin-node": "^11" + "eslint-plugin-n": "^14" }, "files": [ "browser.js",