From ba6e92ed93c08dbeb4ae6d1160b28a665e739f86 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 | 8 ++++++++ legacy.js | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/index.js b/index.js index 708bf2c..2de2811 100644 --- a/index.js +++ b/index.js @@ -72,6 +72,14 @@ module.exports = { "simple-import-sort/imports": "error", "simple-import-sort/exports": "error", "sort-destructure-keys/sort-destructure-keys": "error", + "sonarjs/different-types-comparison": "warn", + "sonarjs/no-clear-text-protocols": "warn", + "sonarjs/no-ignored-exceptions": "off", + "sonarjs/no-misused-promises": "off", + "sonarjs/no-nested-functions": "off", + "sonarjs/sonar-no-unused-vars": "off", + "sonarjs/sonar-prefer-read-only-props": "off", + "sonarjs/todo-tag": "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..4cb8212 100644 --- a/legacy.js +++ b/legacy.js @@ -73,6 +73,14 @@ module.exports = { "simple-import-sort/imports": "error", "simple-import-sort/exports": "error", "sort-destructure-keys/sort-destructure-keys": "error", + "sonarjs/different-types-comparison": "warn", + "sonarjs/no-clear-text-protocols": "warn", + "sonarjs/no-ignored-exceptions": "off", + "sonarjs/no-misused-promises": "off", + "sonarjs/no-nested-functions": "off", + "sonarjs/sonar-no-unused-vars": "off", + "sonarjs/sonar-prefer-read-only-props": "off", + "sonarjs/todo-tag": "off", "@typescript-eslint/no-unused-vars": [ "error", {