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 31f615a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down
12 changes: 12 additions & 0 deletions legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
{
Expand Down

0 comments on commit 31f615a

Please sign in to comment.