Skip to content

Commit

Permalink
fix: disable type aware rules in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 28, 2023
1 parent 3fae70a commit edb7f1a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/configs/markdown.ts
Expand Up @@ -59,6 +59,26 @@ export function markdown(options: OptionsComponentExts & OptionsOverrides = {}):
'unused-imports/no-unused-imports': OFF,
'unused-imports/no-unused-vars': OFF,

// Type aware rules
...{
'ts/await-thenable': OFF,
'ts/dot-notation': OFF,
'ts/no-floating-promises': OFF,
'ts/no-for-in-array': OFF,
'ts/no-implied-eval': OFF,
'ts/no-misused-promises': OFF,
'ts/no-throw-literal': OFF,
'ts/no-unnecessary-type-assertion': OFF,
'ts/no-unsafe-argument': OFF,
'ts/no-unsafe-assignment': OFF,
'ts/no-unsafe-call': OFF,
'ts/no-unsafe-member-access': OFF,
'ts/no-unsafe-return': OFF,
'ts/restrict-plus-operands': OFF,
'ts/restrict-template-expressions': OFF,
'ts/unbound-method': OFF,
},

...overrides,
},
},
Expand Down

0 comments on commit edb7f1a

Please sign in to comment.