Skip to content

Commit

Permalink
Update eslint rules to allow aliasing 'this' to 'that'.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Jan 2, 2024
1 parent 7a1906b commit 9c23e12
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/prefer-for-of": "warn",
"arrow-body-style": ["warn", "as-needed"],
"func-style": ["warn", "declaration"],
"no-empty": "off",
"@typescript-eslint/no-this-alias": ["error", {"allowedNames": ["that"]}],
"no-undef": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/prefer-for-of": "warn",
"no-var": "warn",
"func-style": ["warn", "declaration"],
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-template": "warn",
"prefer-arrow-callback": "warn"
"prefer-template": "warn"
}
}

0 comments on commit 9c23e12

Please sign in to comment.