From 5d6979aa8d141df21cf25572f8fcfef9ff83fdf4 Mon Sep 17 00:00:00 2001 From: Antoine Garcia Date: Tue, 13 Feb 2024 14:16:04 +0100 Subject: [PATCH] simplify eslint after upgrade --- packages/eslint-config-custom/index.js | 6 +--- packages/eslint-config-custom/package.json | 2 -- pnpm-lock.yaml | 34 ---------------------- 3 files changed, 1 insertion(+), 41 deletions(-) diff --git a/packages/eslint-config-custom/index.js b/packages/eslint-config-custom/index.js index 1d2aee3..242ef69 100644 --- a/packages/eslint-config-custom/index.js +++ b/packages/eslint-config-custom/index.js @@ -1,18 +1,15 @@ module.exports = { "root": true, "extends": [ - "plugin:you-dont-need-lodash-underscore/compatible", "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", - "plugin:vitest/recommended", - "plugin:security/recommended" + "plugin:vitest/recommended" ], "plugins": [ "@typescript-eslint", "vitest", - "security", "node" ], "rules": { @@ -29,7 +26,6 @@ module.exports = { "@typescript-eslint/semi": "warn", "@typescript-eslint/no-use-before-define": "error", "@typescript-eslint/no-namespace": "warn", - "security/detect-object-injection": "warn", "no-var": "error", "no-console": "warn", "camelcase": "off", diff --git a/packages/eslint-config-custom/package.json b/packages/eslint-config-custom/package.json index c1a65ea..ff8ce0f 100644 --- a/packages/eslint-config-custom/package.json +++ b/packages/eslint-config-custom/package.json @@ -13,8 +13,6 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-vitest": "^0.3.22", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-security": "^2.1.0", - "eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0", "typescript": "^5.3.3" }, "publishConfig": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c7e40da..3923776 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,15 +68,9 @@ importers: eslint-plugin-node: specifier: ^11.1.0 version: 11.1.0(eslint@8.56.0) - eslint-plugin-security: - specifier: ^2.1.0 - version: 2.1.0 eslint-plugin-vitest: specifier: ^0.3.22 version: 0.3.22(@typescript-eslint/eslint-plugin@7.0.1)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.2.2) - eslint-plugin-you-dont-need-lodash-underscore: - specifier: ^6.13.0 - version: 6.13.0 typescript: specifier: ^5.3.3 version: 5.3.3 @@ -3806,12 +3800,6 @@ packages: semver: 6.3.0 dev: true - /eslint-plugin-security@2.1.0: - resolution: {integrity: sha512-ywxclP954bf8d3gr6KOQ/AFc+PRvWuhOxtPOEtiHmVYiZr/mcgQtmSJq6+hTEXC5ylTjHnPPG+PEnzlDiWMXbQ==} - dependencies: - safe-regex: 2.1.1 - dev: true - /eslint-plugin-vitest@0.3.22(@typescript-eslint/eslint-plugin@7.0.1)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.2.2): resolution: {integrity: sha512-atkFGQ7aVgcuSeSMDqnyevIyUpfBPMnosksgEPrKE7Y8xQlqG/5z2IQ6UDau05zXaaFv7Iz8uzqvIuKshjZ0Zw==} engines: {node: ^18.0.0 || >= 20.0.0} @@ -3834,13 +3822,6 @@ packages: - typescript dev: true - /eslint-plugin-you-dont-need-lodash-underscore@6.13.0: - resolution: {integrity: sha512-6FkFLp/R/QlgfJl5NrxkIXMQ36jMVLczkWDZJvMd7/wr/M3K0DS7mtX7plZ3giTDcbDD7VBfNYUfUVaBCZOXKA==} - engines: {node: '>=4.0'} - dependencies: - kebab-case: 1.0.2 - dev: true - /eslint-scope@7.2.2: resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -4950,10 +4931,6 @@ packages: resolution: {integrity: sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==} dev: true - /kebab-case@1.0.2: - resolution: {integrity: sha512-7n6wXq4gNgBELfDCpzKc+mRrZFs7D+wgfF5WRFLNAr4DA/qtr9Js8uOAVAfHhuLMfAcQ0pRKqbpjx+TcJVdE1Q==} - dev: true - /keyv@4.3.0: resolution: {integrity: sha512-C30Un9+63J0CsR7Wka5quXKqYZsT6dcRQ2aOwGcSc3RiQ4HGWpTAHlCA+puNfw2jA/s11EsxA1nCXgZRuRKMQQ==} dependencies: @@ -5872,11 +5849,6 @@ packages: resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==} dev: true - /regexp-tree@0.1.27: - resolution: {integrity: sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==} - hasBin: true - dev: true - /regexpp@3.2.0: resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} engines: {node: '>=8'} @@ -5998,12 +5970,6 @@ packages: /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - /safe-regex@2.1.1: - resolution: {integrity: sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==} - dependencies: - regexp-tree: 0.1.27 - dev: true - /safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} dev: true