Skip to content

Commit

Permalink
feat(rules): add rule prefer-includes (#148) (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
toddbluhm committed Feb 10, 2020
1 parent 56d1991 commit a2bdac5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.test.ts
Expand Up @@ -112,6 +112,7 @@ test('export', (t): void => {
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-nullish-coalescing': ['error', { ignoreConditionalTests: false, ignoreMixedLogicalExpressions: false }],
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-readonly': 'error',
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -95,6 +95,7 @@ export = {
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-nullish-coalescing': ['error', { ignoreConditionalTests: false, ignoreMixedLogicalExpressions: false }],
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-readonly': 'error',
Expand Down

0 comments on commit a2bdac5

Please sign in to comment.