From 3b707c793303ffe3e931df293d71bb4a8e54b2d8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Nov 2021 09:53:09 +0900 Subject: [PATCH] feat(deps): bump eslint-plugin-regexp from 1.3.1 to 1.5.0 (#997) * build(deps): bump eslint-plugin-regexp from 1.3.1 to 1.5.0 Bumps [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp) from 1.3.1 to 1.5.0. - [Release notes](https://github.com/ota-meshi/eslint-plugin-regexp/releases) - [Commits](https://github.com/ota-meshi/eslint-plugin-regexp/compare/v1.3.1...v1.5.0) --- updated-dependencies: - dependency-name: eslint-plugin-regexp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * feat: add new rules Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> --- package-lock.json | 14 +++++++------- package.json | 2 +- rules/plugins/regexp.js | 3 +++ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 054ee20a..99b26902 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-react": "^7.26.1", "eslint-plugin-react-hooks": "^4.2.0", - "eslint-plugin-regexp": "^1.3.1" + "eslint-plugin-regexp": "^1.5.0" }, "devDependencies": { "@tsconfig/node12": "^1.0.9", @@ -5304,9 +5304,9 @@ } }, "node_modules/eslint-plugin-regexp": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-1.3.1.tgz", - "integrity": "sha512-3R0743T+Gn7qXEgzVx4j0MVJQSM0zlql4zY/21OKrrWqH3k0/ttdk5pS27j3RbDIsGsy3N9QtllA1IlI4mFNsA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-1.5.0.tgz", + "integrity": "sha512-OuYlOF6z2VyurEmELUjY58Wqi4TzsWwgF8+XnToItLwSzNHpDuThy/CxWZ6szIcgQ/02plg7/ZAXQ/RPl7uRxQ==", "dependencies": { "comment-parser": "^1.1.2", "eslint-utils": "^3.0.0", @@ -19264,9 +19264,9 @@ "integrity": "sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ==" }, "eslint-plugin-regexp": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-1.3.1.tgz", - "integrity": "sha512-3R0743T+Gn7qXEgzVx4j0MVJQSM0zlql4zY/21OKrrWqH3k0/ttdk5pS27j3RbDIsGsy3N9QtllA1IlI4mFNsA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-1.5.0.tgz", + "integrity": "sha512-OuYlOF6z2VyurEmELUjY58Wqi4TzsWwgF8+XnToItLwSzNHpDuThy/CxWZ6szIcgQ/02plg7/ZAXQ/RPl7uRxQ==", "requires": { "comment-parser": "^1.1.2", "eslint-utils": "^3.0.0", diff --git a/package.json b/package.json index e1c5caf9..407b4b98 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-react": "^7.26.1", "eslint-plugin-react-hooks": "^4.2.0", - "eslint-plugin-regexp": "^1.3.1" + "eslint-plugin-regexp": "^1.5.0" }, "devDependencies": { "@tsconfig/node12": "^1.0.9", diff --git a/rules/plugins/regexp.js b/rules/plugins/regexp.js index f5a4c1f6..25760528 100644 --- a/rules/plugins/regexp.js +++ b/rules/plugins/regexp.js @@ -15,12 +15,15 @@ module.exports = { "regexp/prefer-lookaround": "error", "regexp/prefer-named-backreference": "error", "regexp/prefer-named-capture-group": "error", + "regexp/prefer-named-replacement": "error", "regexp/prefer-quantifier": "error", "regexp/prefer-regexp-exec": "error", "regexp/prefer-regexp-test": "error", + "regexp/prefer-result-array-groups": "error", "regexp/require-unicode-regexp": "error", "regexp/sort-alternatives": "off", "regexp/sort-character-class-elements": "warn", "regexp/unicode-escape": "off", + "regexp/use-ignore-case": "warn", }, };