From 31f615af31d480ca48f4f85ef06acc1912111fdc Mon Sep 17 00:00:00 2001 From: Omar Jaroudi <30807936+OmarJaroudi@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:44:51 +0000 Subject: [PATCH] fix: disable some sonarjs rules --- index.js | 12 ++++++++++++ legacy.js | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/index.js b/index.js index 708bf2c..021ce95 100644 --- a/index.js +++ b/index.js @@ -72,6 +72,18 @@ module.exports = { "simple-import-sort/imports": "error", "simple-import-sort/exports": "error", "sort-destructure-keys/sort-destructure-keys": "error", + "sonarjs/different-types-comparison": "off", + "sonarjs/function-return-type": "off", + "sonarjs/no-clear-text-protocols": "warn", + "sonarjs/no-ignored-exceptions": "off", + "sonarjs/no-misused-promises": "off", + "sonarjs/no-nested-functions": "off", + "sonarjs/prefer-nullish-coalescing": "off", + "sonarjs/sonar-no-unused-vars": "off", + "sonarjs/sonar-prefer-optional-chain": "off", + "sonarjs/sonar-prefer-read-only-props": "off", + "sonarjs/todo-tag": "off", + "sonarjs/use-type-alias": "off", /** * {@link https://typescript-eslint.io/rules/consistent-type-imports | TypeScript ESLint: consistent-type-imports docs} */ diff --git a/legacy.js b/legacy.js index ee6ca0a..f8e4d6f 100644 --- a/legacy.js +++ b/legacy.js @@ -73,6 +73,18 @@ module.exports = { "simple-import-sort/imports": "error", "simple-import-sort/exports": "error", "sort-destructure-keys/sort-destructure-keys": "error", + "sonarjs/different-types-comparison": "off", + "sonarjs/function-return-type": "off", + "sonarjs/no-clear-text-protocols": "warn", + "sonarjs/no-ignored-exceptions": "off", + "sonarjs/no-misused-promises": "off", + "sonarjs/no-nested-functions": "off", + "sonarjs/prefer-nullish-coalescing": "off", + "sonarjs/sonar-no-unused-vars": "off", + "sonarjs/sonar-prefer-optional-chain": "off", + "sonarjs/sonar-prefer-read-only-props": "off", + "sonarjs/todo-tag": "off", + "sonarjs/use-type-alias": "off", "@typescript-eslint/no-unused-vars": [ "error", {