Skip to content

Commit

Permalink
Add option to the no-object-literal-type-assertion rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 23, 2019
1 parent f3bf368 commit f97c32b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ module.exports = {
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-object-literal-type-assertion': 'error',
'@typescript-eslint/no-object-literal-type-assertion': [
'error',
{
allowAsParameter: true
}
],
'@typescript-eslint/no-this-alias': [
'error',
{
Expand Down

0 comments on commit f97c32b

Please sign in to comment.