Skip to content

Commit

Permalink
Merge pull request #217 from Automattic/improve/errors-for-dangerous-…
Browse files Browse the repository at this point in the history
…ts-problems

Remove rules that dangerously allow known type errors
  • Loading branch information
chriszarate authored Mar 7, 2025
2 parents f0f5b0b + 1aba9f2 commit 6a9345d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions configs/weak-typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* "Weak" TypeScript rules
* ==========================
* These rules are intended to extend the base `typescript` rules and will help
* you migrate an existing project to TypeScript.
* you migrate an existing project to TypeScript. They are primarily focused on
* allowing relaxed or omitted types.
*/
module.exports = {
overrides: [
Expand All @@ -16,10 +17,6 @@ module.exports = {
rules: {
'@typescript-eslint/no-explicit-any': 'warn',

'@typescript-eslint/no-floating-promises': 'warn',

'@typescript-eslint/no-misused-promises': 'warn',

'@typescript-eslint/no-unsafe-argument': 'warn',

'@typescript-eslint/no-unsafe-assignment': 'warn',
Expand All @@ -30,12 +27,6 @@ module.exports = {

'@typescript-eslint/no-unsafe-return': 'warn',

'@typescript-eslint/require-await': 'warn',

'@typescript-eslint/restrict-plus-operands': 'warn',

'@typescript-eslint/restrict-template-expressions': 'warn',

'@typescript-eslint/unbound-method': 'warn',

'import/no-duplicates': 'warn',
Expand Down

0 comments on commit 6a9345d

Please sign in to comment.