Skip to content

Commit

Permalink
Add prefer-regexp-exec rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 14, 2019
1 parent 9e65b7f commit 85e7a25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ module.exports = {
// }
// ],

'@typescript-eslint/prefer-regexp-exec': 'error',
'@typescript-eslint/unified-signatures': 'error',

// TypeScript supports these features
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
"simple"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^1.8.0",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"ava": "^1.4.1",
"eslint": "^5.16.0",
"temp-write": "^4.0.0",
"typescript": "^3.4.5"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">=1.7.0",
"@typescript-eslint/eslint-plugin": ">=1.9.0",
"eslint": ">=5.16.0",
"typescript": ">=3.4.0"
}
Expand Down

0 comments on commit 85e7a25

Please sign in to comment.