eslint-plugin-regexp
Advanced tools
Comparing version
@@ -49,3 +49,3 @@ "use strict"; | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
return true; | ||
@@ -66,3 +66,3 @@ } | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
return true; | ||
@@ -102,3 +102,3 @@ } | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
return { | ||
@@ -162,3 +162,3 @@ nfa: refa_1.NFA.empty({ | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
} | ||
@@ -189,3 +189,3 @@ } | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
return null; | ||
@@ -215,3 +215,3 @@ } | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
return 4; | ||
@@ -259,3 +259,3 @@ } | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
return "<ERROR>"; | ||
@@ -262,0 +262,0 @@ } |
@@ -13,3 +13,3 @@ "use strict"; | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
return false; | ||
@@ -16,0 +16,0 @@ } |
@@ -85,3 +85,3 @@ "use strict"; | ||
} | ||
catch (error) { | ||
catch (_error) { | ||
return undefined; | ||
@@ -88,0 +88,0 @@ } |
@@ -29,2 +29,3 @@ "use strict"; | ||
const no_misleading_unicode_character_1 = __importDefault(require("../rules/no-misleading-unicode-character")); | ||
const no_missing_g_flag_1 = __importDefault(require("../rules/no-missing-g-flag")); | ||
const no_non_standard_flag_1 = __importDefault(require("../rules/no-non-standard-flag")); | ||
@@ -107,2 +108,3 @@ const no_obscure_range_1 = __importDefault(require("../rules/no-obscure-range")); | ||
no_misleading_unicode_character_1.default, | ||
no_missing_g_flag_1.default, | ||
no_non_standard_flag_1.default, | ||
@@ -109,0 +111,0 @@ no_obscure_range_1.default, |
{ | ||
"name": "eslint-plugin-regexp", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "ESLint plugin for finding RegExp mistakes and RegExp style guide violations.", | ||
@@ -55,3 +55,3 @@ "engines": { | ||
"devDependencies": { | ||
"@ota-meshi/eslint-plugin": "^0.11.0", | ||
"@ota-meshi/eslint-plugin": "^0.13.0", | ||
"@types/chai": "^4.2.22", | ||
@@ -61,4 +61,4 @@ "@types/eslint": "^8.0.0", | ||
"@types/estree": "^1.0.0", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.10.1", | ||
"@types/mocha": "^10.0.0", | ||
"@types/node": "^18.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.0.0", | ||
@@ -76,3 +76,3 @@ "@typescript-eslint/parser": "^5.0.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-regexp": "~1.8.0", | ||
"eslint-plugin-regexp": "~1.9.0", | ||
"eslint-plugin-vue": "^9.0.0", | ||
@@ -86,6 +86,6 @@ "eslint-plugin-yml": "^1.0.0", | ||
"stylelint": "^14.9.1", | ||
"stylelint-config-standard": "^28.0.0", | ||
"stylelint-config-standard": "^29.0.0", | ||
"stylelint-stylus": "^0.17.0", | ||
"ts-node": "^10.2.1", | ||
"typescript": "~4.7.0", | ||
"typescript": "~4.8.0", | ||
"vue-eslint-editor": "^1.1.0", | ||
@@ -92,0 +92,0 @@ "vue-eslint-parser": "^9.0.0", |
@@ -119,2 +119,3 @@ # Introduction | ||
| [regexp/no-misleading-unicode-character](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html) | disallow multi-code-point characters in character classes and quantifiers | :wrench: | | ||
| [regexp/no-missing-g-flag](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html) | disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll` | :wrench: | | ||
| [regexp/no-optional-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html) | disallow optional assertions | :star: | | ||
@@ -121,0 +122,0 @@ | [regexp/no-potentially-useless-backreference](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html) | disallow backreferences that reference a group that might not be matched | :star: | |
630328
0.6%127
0.79%15620
0.64%236
0.43%