Skip to content

Commit

Permalink
Disable some new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Aug 1, 2022
1 parent c8b777a commit 0224f56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,16 @@ const config = {
"unicorn/prefer-node-protocol": "off", // Not fully supported by TS
"unicorn/prefer-set-has": "off", // Not always worth the extra code
"unicorn/require-post-message-target-origin": "off", // Incompatible https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1396
"unicorn/prefer-top-level-await": "off", // No advantage in browsers
"import/no-cycle": "off", // Unreasonably slow (90 sec lint -> 5 minutes) https://github.com/pixiebrix/pixiebrix-extension/issues/1080
"import/no-extraneous-dependencies": "off", // Not worth it
"@typescript-eslint/triple-slash-reference": "off", // No alternative sometimes
"@typescript-eslint/consistent-type-definitions": "off", // `type` cannot be used to extend globals

// Rules that duplicate TypeScript features
"import/default": "off",
"import/no-duplicates": "off", // Until https://github.com/xojs/eslint-config-xo-typescript/pull/55
"import/no-named-as-default": "off", // Too slow; The errors this prevents are already caught by TS
"import/no-named-as-default-member": "off", // It's common to use `React.memo` instead of just `memo`; The errors this prevents are already caught by TS
"@typescript-eslint/no-implicit-any-catch": "off",
"@typescript-eslint/consistent-type-assertions": "off", // Our current typing has too many `unknowns` for this to be applicable https://github.com/typescript-eslint/typescript-eslint/issues/4462
Expand Down

0 comments on commit 0224f56

Please sign in to comment.