Skip to content

Commit

Permalink
fix: disable some sonarjs rules
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarJaroudi committed Sep 11, 2024
1 parent 36d9ea0 commit d7e5a85
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ 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/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/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}
*/
Expand Down
9 changes: 9 additions & 0 deletions legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ 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/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/sonar-no-unused-vars": "off",
"sonarjs/sonar-prefer-read-only-props": "off",
"sonarjs/todo-tag": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand Down

0 comments on commit d7e5a85

Please sign in to comment.