From 974af732bbe203d523fb3cf7787237021f39276b Mon Sep 17 00:00:00 2001 From: Martin Machacek Date: Thu, 15 Aug 2024 13:33:45 +0200 Subject: [PATCH] Enhancement: Deprecation eslint rule --- .eslintrc.cjs | 6 ++---- npm-shrinkwrap.json | 16 ---------------- package.json | 1 - 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index c8fecd9c5a5..d70e3f6dcc7 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -150,8 +150,7 @@ module.exports = { "plugins": [ "@typescript-eslint", "cli-microsoft365", - "mocha", - "deprecation" + "mocha" ], "ignorePatterns": [ "**/package-generate/assets/**", @@ -240,8 +239,7 @@ module.exports = { ], "@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }], "mocha/no-identical-title": "error", - "@typescript-eslint/no-floating-promises": "error", - "deprecation/deprecation": "error" + "@typescript-eslint/no-floating-promises": "error" }, "overrides": [ { diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 945b7f894e7..cdb81de0b69 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -69,7 +69,6 @@ "c8": "^9.1.0", "eslint": "^8.57.0", "eslint-plugin-cli-microsoft365": "file:eslint-rules", - "eslint-plugin-deprecation": "^3.0.0", "eslint-plugin-mocha": "^10.4.3", "mocha": "^10.5.2", "rimraf": "^5.0.7", @@ -2499,21 +2498,6 @@ "resolved": "eslint-rules", "link": true }, - "node_modules/eslint-plugin-deprecation": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-deprecation/-/eslint-plugin-deprecation-3.0.0.tgz", - "integrity": "sha512-JuVLdNg/uf0Adjg2tpTyYoYaMbwQNn/c78P1HcccokvhtRphgnRjZDKmhlxbxYptppex03zO76f97DD/yQHv7A==", - "dev": true, - "dependencies": { - "@typescript-eslint/utils": "^7.0.0", - "ts-api-utils": "^1.3.0", - "tslib": "^2.3.1" - }, - "peerDependencies": { - "eslint": "^8.0.0", - "typescript": "^4.2.4 || ^5.0.0" - } - }, "node_modules/eslint-plugin-mocha": { "version": "10.4.3", "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.4.3.tgz", diff --git a/package.json b/package.json index ec10726a6cc..538b0272a8b 100644 --- a/package.json +++ b/package.json @@ -306,7 +306,6 @@ "c8": "^9.1.0", "eslint": "^8.57.0", "eslint-plugin-cli-microsoft365": "file:eslint-rules", - "eslint-plugin-deprecation": "^3.0.0", "eslint-plugin-mocha": "^10.4.3", "mocha": "^10.5.2", "rimraf": "^5.0.7",