diff --git a/packages/commons-ecma/package.json b/packages/commons-ecma/package.json index f967932..11f8055 100644 --- a/packages/commons-ecma/package.json +++ b/packages/commons-ecma/package.json @@ -55,7 +55,7 @@ "eslint-plugin-code-import-patterns": "^3.0.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.28.1", - "eslint-plugin-node": "^11.1.0", + "eslint-plugin-n": "^16.2.0", "eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-regexp": "^1.15.0", "eslint-plugin-unicorn": "^48.0.1", diff --git a/packages/commons-node/package.json b/packages/commons-node/package.json index a456124..592ec26 100644 --- a/packages/commons-node/package.json +++ b/packages/commons-node/package.json @@ -54,7 +54,7 @@ "eslint-plugin-code-import-patterns": "^3.0.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.28.1", - "eslint-plugin-node": "^11.1.0", + "eslint-plugin-n": "^16.2.0", "eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-regexp": "^1.15.0", "eslint-plugin-unicorn": "^48.0.1", diff --git a/packages/fetch-favicon/package.json b/packages/fetch-favicon/package.json index b2b9134..6cb7366 100644 --- a/packages/fetch-favicon/package.json +++ b/packages/fetch-favicon/package.json @@ -58,7 +58,7 @@ "eslint-plugin-code-import-patterns": "^3.0.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.28.1", - "eslint-plugin-node": "^11.1.0", + "eslint-plugin-n": "^16.2.0", "eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-regexp": "^1.15.0", "eslint-plugin-unicorn": "^48.0.1", diff --git a/packages/pkg-management/package.json b/packages/pkg-management/package.json index afec3a0..0a2abe7 100644 --- a/packages/pkg-management/package.json +++ b/packages/pkg-management/package.json @@ -62,7 +62,7 @@ "eslint-plugin-code-import-patterns": "^3.0.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.28.1", - "eslint-plugin-node": "^11.1.0", + "eslint-plugin-n": "^16.2.0", "eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-regexp": "^1.15.0", "eslint-plugin-unicorn": "^48.0.1", diff --git a/platform/config-eslint/eslint-ecma.cjs b/platform/config-eslint/eslint-ecma.cjs index c4a3388..5761fbc 100644 --- a/platform/config-eslint/eslint-ecma.cjs +++ b/platform/config-eslint/eslint-ecma.cjs @@ -14,7 +14,7 @@ module.exports = { */ 'only-warn', '@typescript-eslint/eslint-plugin', - 'node', + 'n', 'regexp', 'code-import-patterns', ], @@ -26,7 +26,7 @@ module.exports = { 'plugin:regexp/recommended', 'plugin:import/recommended', 'plugin:import/typescript', - 'plugin:node/recommended', + 'plugin:n/recommended', 'plugin:unicorn/recommended', 'plugin:eslint-comments/recommended', 'prettier', @@ -94,20 +94,20 @@ module.exports = { ], }, ], - 'node/handle-callback-err': 'error', - 'node/no-callback-literal': 'error', - // disable "node/no-extraneous-import" --> thanks to "isolated mode" of node_modules of pnpm and "public-hoist-pattern" being disabled of this monorepo, there is no possibilty for extraneous imports - 'node/no-extraneous-import': 'off', - // disable "node/no-missing-import" --> covered by TypeScript - 'node/no-missing-import': 'off', - 'node/no-process-env': 'error', - 'node/no-sync': 'error', - // disable "node/no-unsupported-features/es-syntax" --> covered by TypeScript - 'node/no-unsupported-features/es-syntax': 'off', - // disable "node/no-unsupported-features/es-builtins" --> covered by TypeScript - 'node/no-unsupported-features/es-builtins': 'off', - // disable "node/no-unsupported-features/node-builtins" --> covered by TypeScript - 'node/no-unsupported-features/node-builtins': 'off', + 'n/handle-callback-err': 'error', + 'n/no-callback-literal': 'error', + // disable "n/no-extraneous-import" --> thanks to "isolated mode" of node_modules of pnpm and "public-hoist-pattern" being disabled of this monorepo, there is no possibilty for extraneous imports + 'n/no-extraneous-import': 'off', + // disable "n/no-missing-import" --> covered by TypeScript + 'n/no-missing-import': 'off', + 'n/no-process-env': 'error', + 'n/no-sync': 'error', + // disable "n/no-unsupported-features/es-syntax" --> covered by TypeScript + 'n/no-unsupported-features/es-syntax': 'off', + // disable "n/no-unsupported-features/es-builtins" --> covered by TypeScript + 'n/no-unsupported-features/es-builtins': 'off', + // disable "n/no-unsupported-features/node-builtins" --> covered by TypeScript + 'n/no-unsupported-features/node-builtins': 'off', 'unicorn/filename-case': 'off', 'unicorn/no-negated-condition': 'off', 'unicorn/no-null': 'off', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 84b2cfc..5c443b5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -64,9 +64,9 @@ importers: eslint-plugin-import: specifier: ^2.28.1 version: 2.28.1(@typescript-eslint/parser@6.7.3)(eslint@8.50.0) - eslint-plugin-node: - specifier: ^11.1.0 - version: 11.1.0(eslint@8.50.0) + eslint-plugin-n: + specifier: ^16.2.0 + version: 16.2.0(eslint@8.50.0) eslint-plugin-only-warn: specifier: ^1.1.0 version: 1.1.0 @@ -119,9 +119,9 @@ importers: eslint-plugin-import: specifier: ^2.28.1 version: 2.28.1(@typescript-eslint/parser@6.7.3)(eslint@8.50.0) - eslint-plugin-node: - specifier: ^11.1.0 - version: 11.1.0(eslint@8.50.0) + eslint-plugin-n: + specifier: ^16.2.0 + version: 16.2.0(eslint@8.50.0) eslint-plugin-only-warn: specifier: ^1.1.0 version: 1.1.0 @@ -183,9 +183,9 @@ importers: eslint-plugin-import: specifier: ^2.28.1 version: 2.28.1(@typescript-eslint/parser@6.7.3)(eslint@8.50.0) - eslint-plugin-node: - specifier: ^11.1.0 - version: 11.1.0(eslint@8.50.0) + eslint-plugin-n: + specifier: ^16.2.0 + version: 16.2.0(eslint@8.50.0) eslint-plugin-only-warn: specifier: ^1.1.0 version: 1.1.0 @@ -265,9 +265,9 @@ importers: eslint-plugin-import: specifier: ^2.28.1 version: 2.28.1(@typescript-eslint/parser@6.7.3)(eslint@8.50.0) - eslint-plugin-node: - specifier: ^11.1.0 - version: 11.1.0(eslint@8.50.0) + eslint-plugin-n: + specifier: ^16.2.0 + version: 16.2.0(eslint@8.50.0) eslint-plugin-only-warn: specifier: ^1.1.0 version: 1.1.0 @@ -1250,6 +1250,12 @@ packages: engines: {node: '>=6'} dev: true + /builtins@5.0.1: + resolution: {integrity: sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==} + dependencies: + semver: 7.5.4 + dev: true + /call-bind@1.0.2: resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} dependencies: @@ -1755,15 +1761,15 @@ packages: resolution: {integrity: sha512-Vfsm4P8Xz/Na7TmOG5NwqresW1hSyZNdQDcR6yDodhn4ydbo884D9zqrcg4kbZ5z8OAE25m6sYNsB2qTvYVqVg==} dev: true - /eslint-plugin-es@3.0.1(eslint@8.50.0): - resolution: {integrity: sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==} - engines: {node: '>=8.10.0'} + /eslint-plugin-es-x@7.2.0(eslint@8.50.0): + resolution: {integrity: sha512-9dvv5CcvNjSJPqnS5uZkqb3xmbeqRLnvXKK7iI5+oK/yTusyc46zbBZKENGsOfojm/mKfszyZb+wNqNPAPeGXA==} + engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - eslint: '>=4.19.1' + eslint: '>=8' dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0) + '@eslint-community/regexpp': 4.9.0 eslint: 8.50.0 - eslint-utils: 2.1.0 - regexpp: 3.2.0 dev: true /eslint-plugin-eslint-comments@3.2.0(eslint@8.50.0): @@ -1812,19 +1818,22 @@ packages: - supports-color dev: true - /eslint-plugin-node@11.1.0(eslint@8.50.0): - resolution: {integrity: sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==} - engines: {node: '>=8.10.0'} + /eslint-plugin-n@16.2.0(eslint@8.50.0): + resolution: {integrity: sha512-AQER2jEyQOt1LG6JkGJCCIFotzmlcCZFur2wdKrp1JX2cNotC7Ae0BcD/4lLv3lUAArM9uNS8z/fsvXTd0L71g==} + engines: {node: '>=16.0.0'} peerDependencies: - eslint: '>=5.16.0' + eslint: '>=7.0.0' dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0) + builtins: 5.0.1 eslint: 8.50.0 - eslint-plugin-es: 3.0.1(eslint@8.50.0) - eslint-utils: 2.1.0 + eslint-plugin-es-x: 7.2.0(eslint@8.50.0) + get-tsconfig: 4.7.2 ignore: 5.2.4 + is-core-module: 2.13.0 minimatch: 3.1.2 resolve: 1.22.6 - semver: 6.3.1 + semver: 7.5.4 dev: true /eslint-plugin-only-warn@1.1.0: @@ -1881,18 +1890,6 @@ packages: estraverse: 5.3.0 dev: true - /eslint-utils@2.1.0: - resolution: {integrity: sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==} - engines: {node: '>=6'} - dependencies: - eslint-visitor-keys: 1.3.0 - dev: true - - /eslint-visitor-keys@1.3.0: - resolution: {integrity: sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==} - engines: {node: '>=4'} - dev: true - /eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2196,6 +2193,12 @@ packages: get-intrinsic: 1.2.1 dev: true + /get-tsconfig@4.7.2: + resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==} + dependencies: + resolve-pkg-maps: 1.0.0 + dev: true + /glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -3272,11 +3275,6 @@ packages: set-function-name: 2.0.1 dev: true - /regexpp@3.2.0: - resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} - engines: {node: '>=8'} - dev: true - /regjsparser@0.10.0: resolution: {integrity: sha512-qx+xQGZVsy55CH0a1hiVwHmqjLryfh7wQyF5HO07XJ9f7dQMY/gPQHhlyDkIzJKC+x2fUCpCcUODUUUFrm7SHA==} hasBin: true @@ -3303,6 +3301,10 @@ packages: engines: {node: '>=8'} dev: true + /resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + dev: true + /resolve@1.22.6: resolution: {integrity: sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw==} hasBin: true