From 85e7a25e81680acd1be70cd8eaba360bd5e79025 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 14 May 2019 13:17:17 +0700 Subject: [PATCH] Add `prefer-regexp-exec` rule https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-regexp-exec.md --- index.js | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e433f04..eb65e54 100644 --- a/index.js +++ b/index.js @@ -231,6 +231,7 @@ module.exports = { // } // ], + '@typescript-eslint/prefer-regexp-exec': 'error', '@typescript-eslint/unified-signatures': 'error', // TypeScript supports these features diff --git a/package.json b/package.json index c216d0d..56b2cac 100644 --- a/package.json +++ b/package.json @@ -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" }