{
  "_id": "eslint-plugin-regex",
  "maintainers": [
    {
      "name": "gmullerb",
      "email": "gmullerb@gmail.com"
    }
  ],
  "keywords": [
    "eslint-plugin-regex",
    "eslint",
    "regex-rule",
    "regex",
    "regexp",
    "eslint-regex",
    "eslint-rule",
    "eslint-regex-rule",
    "rule",
    "expression",
    "regular-expression",
    "eslint-regular-expression",
    "eslint-regular-expression-rule",
    "eslintrule",
    "regular-expression-rule",
    "eslintplugin",
    "eslint-plugin",
    "plugin",
    "coding style",
    "coding standards",
    "code checker",
    "code linter",
    "code quality",
    "code standards",
    "code style",
    "syntax",
    "lint",
    "linter",
    "jshint",
    "js-hint",
    "jslint",
    "js-lint",
    "js lint",
    "js quality",
    "js rules",
    "js rules",
    "js standards",
    "js style",
    "style guide",
    "style checker",
    "style linter",
    "standard",
    "standard style",
    "style"
  ],
  "dist-tags": {
    "latest": "1.10.0",
    "beta": "1.9.0-delta"
  },
  "author": {
    "name": "Gonzalo Müller Bravo"
  },
  "_rev": "22-7233332e8ae6df27d5ca973ddf088dd7",
  "description": "ESLint rules using Regular Expression",
  "readme": "<p align=\"center\">\n  <br/>\n  <a href=\"https://eslint-plugin-regex.github.io/\"><img src=\"https://assets.gitlab-static.net/uploads/-/system/project/avatar/16770425/eslint-plugin-regex.png\" alt=\" \"/></a>\n</p>\n\n<h1 align=\"center\">ESLint rules using Regular Expressions</h1>\n\n[![eslint-plugin-regex](https://badgen.net/badge/homepage/eslint-plugin-regex/blue)](https://eslint-plugin-regex.github.io/)\n[![eslint-plugin-regex](https://badgen.net/badge/npm%20pack/eslint-plugin-regex/blue)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![ ](https://badgen.net/npm/v/eslint-plugin-regex)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![ ](https://badgen.net/npm/node/eslint-plugin-regex)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE.txt)\n[![ ](https://gitlab.com/gmullerb/eslint-plugin-regex/badges/master/coverage.svg)](https://gmullerb.gitlab.io/eslint-plugin-regex/coverage/index.html)\n[![Github repo](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/gmullerb/eslint-plugin-regex)\n[![Gitlab repo](https://badgen.net/badge/icon/gitlab?icon=gitlab&label)](https://gitlab.com/gmullerb/eslint-plugin-regex)\n\n__________________\n\n## Quick Start\n\n1 . Add dependencies:\n\n`package.json`:\n\n```json\n  \"engines\" : {\n    \"node\" : \">=6.0.0\"\n  },\n  \"devDependencies\": {\n    \"eslint\": \">=4.0.0\",\n    \"eslint-plugin-regex\": \"1.10.0\",\n```\n\n2 . Configure eslint:\n\nShort configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ],\n      \"ignoreFilesRegex\"\n    ]\n  }\n}\n```\n\nFiles will be checked for the absence of `invalidRegex1` and `invalidRegexN`, and for the presence of `requiredRegex1` and `requiredRegexN`, and files with name matching `ignoreFilesRegex` will not be checked.\n\nDetailed configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [{\n          \"regex\": \"invalidRegex1\",\n          \"replacement\": \"newValue\"\n        }, {\n          \"id\": \"regexIdN\",\n          \"message\": \"errorMessageN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [{\n          \"id\": \"regexId1\",\n          \"regex\": \"requiredRegex1\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        }, {\n          \"regex\": \"requiredRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexA\",\n            \"inspect\": \"inspectFilesRegexZ\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\nFiles will be checked for:\n\n* The absence of `invalidRegex1` but if found it will be replaced with `newValue`.\n* The absence of `invalidRegexN` only in files with name not matching `ignoreFilesRegexN`, but if found `errorMessageN` will be shown.\n* The presence of `requiredRegex1` only in files with name matching `inspectFilesRegex1`, but if not found `errorMessage1` will be shown.\n* The presence of `requiredRegexN` only in files with name matching `inspectFilesRegexA` and not matching `ignoreFilesRegexZ`.\n\n__________________\n\n## Goals\n\nThe idea is to allow the creation of different eslint rules based on Regular Expressions in order to have some \"freedom\" to create quick ESLint custom rules.\n\n## Rules\n\nName                                                  | Fixable | Description\n----------------------------------------------------- | ------- | -----------\n[`regex/invalid`](docs/rules/invalid-regex-rule.md)   | Yes     | checks that specified patterns are not found\n[`regex/required`](docs/rules/required-regex-rule.md) | No      | checks that specified patterns are found\n\nEach rule defines a set of patterns:\n\n![Rules](.readme/rules.svg)\n\n### 📏 `regex/invalid`\n\nThis rule checks that specified patterns are not found in files, i.e. **Invalid patterns**.\n\n✏ Example of **incorrect** code for this rule:\n\n```javascript\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nThe error message will reflect the exact location, e.g.:\n\n```bash\n/path/to/some.js\n 34:25  error  Invalid regular expression /\"/gm found  regex/invalid\n```\n\n✏ Example of **correct** code for this rule:\n\n```javascript\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \\'My Friend\\''\n```\n\n### 📏 `regex/required`\n\nThis rule looks for specific patterns that must be present in each file, i.e. **Required patterns**.\n\n✏ Example of **incorrect** code for this rule:\n\n```javascript\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nThe error message will point to the beginning of the file, e.g.:\n\n```sh\n/path/to/some.js\n 1:1  error  Required regular expression /^\\/\\/ Copyright My Friend/gm not found in file  regex/required\n```\n\n✏ Example of **correct** code for this rule:\n\n```javascript\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\n// Copyright My Friend\nconst text = 'Hello \"My Friend\"'\n```\n\n### Options\n\nBoth rule has two options:\n\n* **array** of patterns definitions to analyze. [REQUIRED]\n  * Each pattern definition can be 'Short' or 'Detailed'.\n* a **string** representing the regular expression for ignoring files for all patterns. [OPTIONAL]\n\n```json\n[\n  \"error\",\n  [\n    \"regex1\",\n    \"regexN\"\n  ],\n  \"ignoreFilesRegex\"\n]\n```\n\n#### The *string* representing the regular expression\n\nRemember, Slashes (`/`) are not required in the string that defines the regex,\n\ne.g. To get the following regex `/^(test|spec)$/`, define:\n\n* **`\"^(test|spec)$\"`**, when using `.eslintrc.js` or `.eslintrc.json`.\n\ne.g. To get the following regex `/\\bhttp:/`, define:\n\n* **`\"\\bhttp:\"`**, when using `.eslintrc.js`, or\n* **`\"\\\\bhttp:\"`**, when using `.eslintrc.json`. (backslash needs to be double in a json file)\n\ne.g. To get the following regex `/.*test\\.js/`, define:\n\n* **`\".*test\\.js\"`**, when using `.eslintrc.js`, or\n* **`\".*test\\\\.js\"`**, when using `.eslintrc.json`. (backslash needs to be double in a json file)\n\n#### Short pattern definition\n\nEach pattern is specified by just a **`string`** representing the regular expression, i.e. `\"regex\"`\n\n```json\n{\n  \"regex/invalid\": [\n    \"error\",\n    [\n      \"invalidRegex1\",\n      \"invalidRegexN\"\n    ]\n  ],\n  \"regex/required\": [\n    \"error\",\n    [\n      \"requiredRegex1\",\n      \"requiredRegexN\"\n    ]\n  ]\n}\n```\n\n#### Detailed pattern definition\n\nIt is specified by an `object`, with the following fields:\n\n* `regex`: A **required** `string` for `regex/required` and `regex/invalid` representing the **Regular expression to look for**. [REQUIRED]\n* `flags`: A combination of flags, `i`, `s` and/or `u`, to be used by the Regular Expression. [OPTIONAL]\n* `replacement` for `regex/invalid` [1]: [OPTIONAL]\n  * An optional `string` used to replace the **invalid** found pattern, or\n  * An optional `object` that establish how the **invalid** found pattern will be replaced:\n    * `function`: used to replace the **invalid** found pattern.\n      * It will receive 3 parameters: `text`, `captured` and `$`, that can be used as desired.\n      * It must return a `string` value, if not, return value will be ignored.\n      * Its definition must be only the body of the function.\n  * One must be defined, either the `string` or `function`.\n* `id`: An optional `string` representing the **Pattern Id**. [OPTIONAL]\n* `message`: An optional `string` specifying the **Message to be shown when an error happens** (invalid `regex` is found or required `regex` is not found). [OPTIONAL]\n* `files`: An optional `object` specifying which files to analyze: [OPTIONAL]\n  * `ignore`: A `string` representing **Regular expression of the files to be ignored** when validating this specific pattern.\n  * `inspect`:  A `string` representing **Regular expression of the files to be inspected** when validating this specific pattern.\n\n```json\n{\n  \"id\": \"regexId\",\n  \"regex\": \"regex\",\n  \"flags\": \"isu\",\n  \"replacement\": \"replacementString\",\n  \"message\": \"errorMessage\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegex\",\n    \"inspect\": \"inspectFilesRegex\"\n  }\n}\n```\n\n> * `regex` is the **only** Required field.\n> * When `ignore` and `inspect` are present, `ignore` takes precedence.\n> * Global ignore file pattern, takes precedence over `files` patterns.\n>\n> [1] In order to fix issues `eslint` must be run with `--fix` option.\n\nUsing `message` is pretty useful since it will give a better understanding to the developer when an error happens:\n\ne.g. Given the following definition:\n\n```json\n{\n  \"regex\": \"someRegex\",\n  \"message\": \"The Useful Error MessagE\"\n}\n```\n\nthen shown error will be similar to:\n\n```sh\n/path/to/some.js\n 1:1  error  The Useful Error MessagE  regex/required\n```\n\nor\n\n```bash\n/path/to/some.js\n 34:25  error  The Useful Error MessagE  regex/invalid\n```\n\ninstead of\n\n```sh\n/path/to/some.js\n 1:1  error  Required regular expression /someRegex/gm not found in file  regex/required\n```\n\nor\n\n```bash\n/path/to/some.js\n 34:25  error  Invalid regular expression /someRegex/gm found  regex/invalid\n```\n\n##### Definition of the Function used to replace the *invalid* found pattern\n\nDefinition of the function must be done as a `string` in 1 line, and the following rules apply:\n\n* It must return a `string` value, if not, return value will be ignored, i.e. it will silently fail.\n* Its definition must be **only the body of the function**.\n  * For \"simple\" functions where the `return` is found at the beginning of the body of the function and the **exact** word *return* is not present, `return` can be omitted.\n* If the function has invalid Javascript code, the function will be ignored, i.e. it will silently fail.\n\nFunction will receive 3 parameters, to be used as desired:\n\n* `text`: a `string` with the value of the invalid text found.\n* `captured`: an `array` of strings with the values of the captured groups for the regex.\n* `$`: an `array` of strings, with the value of the invalid text found plus the values of the captured groups for the regex, i.e.\n  * `$[0]` = `text`: a `string` with the value of the invalid text found.\n  * `$[1..]` = `captured`: an `array` of strings with the values of the captured groups for the regex.\n    * `$[1]` = `captured[0]` and so on.\n  * It allows smaller definitions.\n\n**Using parameter `text`**\n\ne.g.\n\n```javascript\n  function(text, captured, $) {\n    return text.trim()\n  }\n```\n\n`\"return text.trim()\"` => only the body of the function + returns a `string` value based on `text`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return text.trim()\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[0].trim()\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```javascript\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```javascript\nconst exception = \"error19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"text.trim()\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[0].trim()\"\n  }\n}\n```\n\n**Using parameter `captured`**\n\ne.g.\n\n`\"return captured[0]\"` => only the body of the function + returns a `string` value based on `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return captured[0]\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[1]\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```javascript\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```javascript\nconst exception = \"19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"captured[0]\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[1]\"\n  }\n}\n```\n\n**Using parameters `text` and `captured`**\n\ne.g.\n\n`\"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"` => only the body of the function + returns a `string` value based on `text` and `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return $[0] + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return `${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```javascript\nconst sum = \"4+5\"\n```\n\nwhen linting with fix, the result will be:\n\n```javascript\nconst sum = \"4+5 = 4 + 5 = 9\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"`${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\n**When `return` keyword is required**\n\ne.g.\n\ne.g. `const result = text === 'superb' ? 'Superb' : text; return result` => only the body of the function + returns a `string` value based on `text`.\n\nSince the `return` is not found at the beginning of the body of the function, `return` cannot be omitted, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"const result = text === 'superb' ? 'Superb' : text; return result\"\n  }\n}\n```\n\n> Some cases may use Comma operator, e.g. `\"function\": \"result = text === 'superb' ? 'Superb' : text, result\"`\n\ne.g. `return text === 'return' ? 'Return' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the *exact* word *return* is present, this will **required** `return`, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"return text === 'return' ? 'Return' : text\"\n  }\n}\n```\n\nFollowing case does not required `return`:\n\ne.g. `return text === 'Return' ? 'RETURN' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the **exact** word *return* is not present, this will allow the following rule definition to be:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"text === 'Return' ? 'RETURN' : text\"\n  }\n}\n```\n\n###### Debugging of the Replacement Function for *invalid* found pattern\n\n* It is possible to add `console` statements to print some information in the Replacement Function.\n\n```json\n{\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"const extract = captured[0]; console.log(extract); return extract\"\n  }\n}\n```\n\n##### RegExp Flags\n\nThe following flags can be add to the regex:\n\n* `i`: For case insensitive search.\n* `s`: To allow `.` to match newline characters.\n* `u`: To treat the regex as a sequence of unicode code points.\n\nTo define the flags to be used, employ the field `flags` in the detailed pattern:\n\n* A combination of flags can be used, e.g. `\"is\"`.\n  * Order of flags is irrelevant, e.g. `\"si\"`.\n* It's case insensitive, e.g. `\"iS\"`, `\"Is\"` and `\"IS\"` are the same.\n* Invalid flags will be reported as an error by eslint.\n\n> By default, `\"gm\"` is always added by the engine (since It's required).\n\ne.g.\n\nHaving the following detailed pattern:\n\n```json\n{\n  \"regex\": \"invalid\",\n  \"flags\": \"i\"\n}\n```\n\n`Invalid`, `inValid`, `INvalid` or `INVALID` will match.\n\n### String to Regular expression conversion\n\nInternally, each string from the array will be converted into a Regular Expression with `global` and `multiline` options, e.g.:\n\n`\"someRegex\"` will be transformed into `/someRegex/gm`\n\n> Remember that backslash needs to be double in strings of a json file, e.g. To get the following regex `/\\bhttp:/` define the following string `\"\\\\bhttp:\"`.\n\n### Empty Meta characters\n\nFor some special cases when using meta characters that may result in an empty match, e.g. `^`, eslint-plugin-regex will report only the first case found, and after that case is fixed, the following will be report, if present.\n\ne.g.\n\n```json\n{\n  \"regex\": \"^(?!(?:(feature|fix|docs|config|refactor|revert|test).*[\\\\.:]$)|(\\\\*\\\\s\\\\w.*\\\\.$)|$)\"\n}\n```\n\n`/path/to/some.js`:\n\n```text\nconfig(ALL):\n\n* Use eslint-plugin-regex for commit message linting\n* Use eslint-plugin-regex for commit message linting\n```\n\nWhen linting, `eslint-plugin-regex` will only report the first case:\n\n```bash\n/path/to/some.js\n 3:1  error  Invalid regular expression /^(?!(?:(feature|fix|docs|config|refactor|revert|test).*[\\\\.:]$)|(\\\\*\\\\s\\\\w.*\\\\.$)|$)/gm found  regex/invalid\n```\n\n4:1  error will not be reported until 3:1 is fixed.\n\n> The issue is that having an empty match does not allow the regex engine to move forward.\n\n### Error report\n\nThe 'Short pattern definition' errors are reported with the following structure:\n\nGiven `someRegex`, the following message will be shown on error:\n\n```\nInvalid regular expression /someRegex/gm found\n```\n\nor\n\n```\nRequired regular expression /someRegex/gm not found in file\n```\n\nThe 'Detailed pattern definition' errors are reported with the following rules:\n\nA . If `message` is present then that **exact message is reported**.  \nB . If `id` is present then:\n\nGiven `\"id\": \"someRegexId\"`, the following message will be shown on error:\n\n```\nInvalid regular expression 'someRegexId' found\n```\n\nor\n\n```\nRequired regular expression 'someRegexId' not found in file\n```\n\nC . If neither `message` nor `id` is present then the 'Short pattern definition' error message is shown.\n\n> * `message` takes precedence over `id`.  \n> * Although `id` is a quick solution (and useful when creating and testing a rule), using `message` will give more information to the team about the issue.\n\n### Mixing\n\n#### Mixing pattern types\n\nIt is possible to use both type of definitions, 'Short pattern definition' with 'Detailed pattern definition', in the array of patterns.\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegex2\",\n        {\n          \"regex\": \"invalidRegex3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\n* `invalidRegex1` and `invalidRegex2` are 'Short pattern definition'.\n* `invalidRegex3` and `invalidRegexN` are 'Detailed pattern definition'.\n\n#### Mixing rules\n\n##### Mixing error levels\n\nRules names have synonyms:\n\n`regex/invalid` = `regex/invalid-warn` = `regex/invalid-error` = `regex/another-invalid` = `regex/other-invalid`.\n\n`regex/required` = `regex/required-warn` = `regex/required-error` = `regex/another-required` = `regex/other-required`.\n\n* Synonyms are just that, synonyms, do not imply any level of error, but some are provided to increase readability, e.g. `regex/invalid-warn` does not imply `warn` level.\n* This will allow to mix different error levels.\n\nIt is possible to set different error level: `error`, `warn` and `off`. For this use a synonym for the regex rule name:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\",\n      [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalid-error\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n    \"regex/invalid-warn\": [\n      \"warn\", [\n        \"invalidRegexB1\",\n        \"invalidRegexB2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ],\n    ],\n    \"regex/other-invalid\": [\n      \"off\", [\n        \"invalidRegexC1\",\n        \"invalidRegexC2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexC1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexCN\"\n          }\n        }\n      ],\n    ],\n    \"regex/required-warn\": [\n      \"warn\",\n      [\n        \"requiredRegexA1\",\n        \"requiredRegexAN\"\n      ]\n    ]\n  }\n}\n```\n\n* Rules with invalid patterns and `error` level: `regex/invalid` and `regex/invalid-error`.\n* Rules with invalid patterns and `off` level: `regex/other-invalid`.\n* Rules with required patterns and `error` level: `regex/required`.\n* Rules with required patterns and `warn` level: `regex/required-warn`.\n\n##### Custom set of regex rules\n\nCreating and Using a Custom Set of regex rules **requires using `js` files**.\n\n###### Named Regex Rules approach\n\nA regex rule can be named with a custom name. The Rule name can be anything that **includes `invalid`, `disuse`, `avoid`, `required` or `use`**, ignoring letter case, and with the restrictions of predefined names (`invalid`, `disuse`, `avoid`, `invalid-warn`, `invalid-error`, `another-invalid`, `other-invalid`, `required`, `use`, `required-warn`, `required-error`, `another-required` and `other-required`).\n\n* `regex/*invalid*`, `regex/*disuse*`  or `regex/*avoid*` for invalid patterns.\n* `regex/*required*` or `regex/*use*` for required patterns.\n\n![Mixed Rules](.readme/mixed-rules.svg)\n\n> In the name `invalid`, `disuse` and `avoid` will take precedence over `required` and `use`, e.g. If custom regex rule name has both `avoid` and `use` in the name, then the respective regex patterns will be consider invalid patterns.\n\n**`addRegexRuleName` must be used to add the custom regex rule name to the set of `eslint-plugin-regex` rules.**\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('*invalid*')\naddRegexRuleName('*required*')\n```\n\n* If the custom regex rule name is already defined, then an error will be shown:\n\n```sh\nError: Cannot read config file: /path/to/.eslintrc.js\nError: \"SomeRuleName\" already defined as eslint-plugin-regex rule name\n```\n\n***Local Custom Regex rules***\n\nCreate a local `.eslintrc.js`:\n\n1 . Add rule name using `addRegexRuleName`.  \n2 . Define `eslint-plugin-regex` custom regex rule.\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('invalid-custom-890')\n\nmodule.exports = {\n  plugins: [ 'regex' ],\n  rules: {\n    'regex/invalid-custom-890': [\n      'error', [\n        {\n          regex: 'invalidRegexBN',\n          files: {\n            ignore: 'ignoreFilesRegexCN'\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\n***Custom Regex rules package***\n\nCreate a custom ESLint package and add the custom regex rules with a **\"unique\"** name for each regex rule defined in the package, so it can be use with other package of regex rules or local regex rules.\n\nCustom package `index.js`:\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('invalid-custom-890')\n\nmodule.exports = {\n  configs: {\n    'someRegexRule1': {\n      plugins: [ 'regex' ],\n      rules: {\n        'regex/invalid-custom-890': [\n          'error', [\n            {\n              regex: 'invalidRegexBN',\n              files: {\n                ignore: 'ignoreFilesRegexCN'\n              }\n            }\n          ]\n        ]\n      }\n    }\n  }\n}\n```\n\n* This custom package defines 1 rule named `regex/invalid-custom-890` with only 1 invalid pattern with `error` as a default error level.\n\n> An online example can be checked at [`eslint-plugin-base-style-config`](https://github.com/gmullerb/base-style-config/tree/master/js#regex-rules).  \n> For more information on how to create a custom ESLint package check [ESLint official documentation: Working with Plugins](https://eslint.org/docs/developer-guide/working-with-plugins)\n\nthen use it,\n\nSome project `.eslintrc.json`:\n\n```json\n  { \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\",\n```\n\nto change the default error level set by the package:\n\n```json\n  {\n    \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n    \"rules\": {\n      \"regex/invalid-custom-890\": \"warn\"\n\n```\n\nmixing with other regex rules:\n\n```json\n{\n  \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n  \"rules\": {\n    \"regex/invalid-custom-890\": \"warn\",\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalid-error\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n```\n\n***Advantages***\n\n* Using Named Regex rule name will allow to have a **set of different regex rule**:\n  * Each rule with totally different settings.\n    * Allow to mix different regular expressions.\n    * Allow to mix different error levels.\n    * etc.\n  * Easily create custom regex rules package.\n* When using Named Regex Rules, shown **errors will be even more specific**, e.g.:\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('required-custom-896')\n```\n\nthen, if an error happens, the output will be something similar to:\n\n```sh\n/path/to/some.js\n  1:1  error  Required regular expression /requiredRegex/gm not found in file  regex/required-custom-896\n```\n\ninstead of\n\n```sh\n/path/to/some.js\n  1:1  error  Required regular expression /requiredRegex/gm not found in file  regex/required\n```\n\n###### Import/Export approach\n\nCreate a custom npm package using either with `json` or `js` files and add the custom regex rules.\n\nCustom package `index.js`:\n\nwith complete rule definition:\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n  files: {\n    ignore: 'ignoreFilesRegexCN'\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n}\n```\n\nor with only regex definition:\n\n```javascript\nmodule.exports = 'invalidRegexBN'\n```\n\nor with multiple complete rule definition:\n\n```javascript\nmodule.exports = {\n ruleName1: {\n    regex: 'invalidRegex1',\n    files: {\n      ignore: 'ignoreFilesRegex1'\n    }\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n    files: {\n      ignore: 'ignoreFilesRegexN'\n    }\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  ruleName1: {\n    regex: 'invalidRegex1',\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n  }\n}\n```\n\nor with multiple only regex definition:\n\n```javascript\nmodule.exports = {\n    ruleName1: 'invalidRegex1',\n    ruleNameN: 'invalidRegexN'\n}\n```\n\nor using `json` files:\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegexCN\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n}\n```\n\nor\n\n```json\n{\n \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegex1\"\n    }\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegexN\"\n    }\n  }\n}\n```\n\nor\n\n```json\n{\n  \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n  }\n}\n```\n\nor\n\n```json\n{\n    \"ruleName1\": \"invalidRegex1\",\n    \"ruleNameN\": \"invalidRegexN\"\n}\n```\n\n> Different approaches can be defined, these are only a glance.\n> For more information on how to create a custom npm package check [Contributing packages to the registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry)\n\nThen use the custom package:\n\nSome project `.eslintrc.js`:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      \"regex/invalid\": [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ],\n```\n\nor using synonyms to mix error levels:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      'regex/invalid-error': [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1\n        ]\n      ],\n      'regex/invalid-warn': [\n        'warn', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ]\n```\n\n### `regex/invalid` vs `regex/required`\n\nBoth rule were design with *binary* approach:\n\n* `regex/invalid`: pattern **is not present** => any presence of the *specific* pattern in a file is invalid.\n* `regex/required`: pattern **is present** => only 1 presence of the *specific* pattern in a file is required.\n\nArray of patterns represent different logical operation for each rule:\n\n* `regex/invalid`: **OR** => the presence in a file of *any* of the patterns defined in the *array* is invalid.\n* `regex/required`: **AND** => the presence in file of *all* of the patterns defined in the *array* is required.\n\n### Examples\n\nCheck:\n\n* [invalid-regex Basic rule tests](tests/lib/rules/invalid-regex-rule.e2e-test.js)\n* [invalid-regex Detailed rule tests](tests/lib/rules/invalid-regex-detailed-rule.e2e-test.js)\n* [required-regex Basic rule tests](tests/lib/rules/required-regex-rule.e2e-test.js)\n* [required-regex Detailed rule tests](tests/lib/rules/required-regex-detailed-rule.e2e-test.js)\n* [The set of Regex Rules of `eslint-plugin-base-style-config`](https://github.com/gmullerb/base-style-config/tree/master/js#regex-rules)\n\n__________________\n\n## Prerequisites\n\n* [`\"eslint\": \">=4.0.0\"`](https://www.npmjs.com/package/eslint).\n\n__________________\n\n## Evolution\n\n[`CHANGELOG.md`](CHANGELOG.md): contains the information about changes in each version, chronologically ordered ([Keep a Changelog](http://keepachangelog.com)).\n\n## Extending/Developing\n\n[Developing](js/.readme/developing.md)\n\n## Contributing\n\n* **Use it**.\n* **Share it**.\n* [Give it a Star](https://github.com/gmullerb/eslint-plugin-regex).\n* [Propose changes or improvements](https://github.com/gmullerb/eslint-plugin-regex/issues).\n* [Report bugs](https://github.com/gmullerb/eslint-plugin-regex/issues).\n\n## License\n\n[MIT License](LICENSE.txt)\n\n__________________\n\n## Remember\n\n* Use code style verification tools => Encourages Best Practices, Efficiency, Readability and Learnability.\n* Code Review everything => Encourages Functional suitability, Performance Efficiency and Teamwork.\n* If viable, Start testing early => Encourages Reliability and Maintainability.\n\n## Additional words\n\nDon't forget:\n\n* **Love what you do**.\n* **Learn everyday**.\n* **Learn yourself**.\n* **Share your knowledge**.\n* **Think different!**.\n* **Learn from the past, dream on the future, live and enjoy the present to the max!**.\n* **Enjoy and Value the Quest** (It's where you learn and grow).\n\nAt life:\n\n* Let's act, not complain.\n* Be flexible.\n\nAt work:\n\n* Let's give solutions, not questions.\n* Aim to simplicity not intellectualism.\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
  },
  "bugs": {
    "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0-alpha": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.0.0-alpha",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regex",
        "regular expression rule",
        "regex rule",
        "eslintrules",
        "eslint-rules",
        "eslint rules",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "eslint --color \"**/*.js\"",
        "test": "node tests/lib/rules/e2e-tests.js",
        "check": "echo ==== Linting ==== && npm run lint && echo ==== Testing ==== && npm run test"
      },
      "peerDependencies": {
        "eslint": "^6.0.0"
      },
      "devDependencies": {
        "eslint": "~6.7.1",
        "eslint-plugin-base-style-config": "1.0.1"
      },
      "gitHead": "bf6a6da542dcb4598aceee0b850ad92a798578cf",
      "_id": "eslint-plugin-regex@1.0.0-alpha",
      "_nodeVersion": "12.10.0",
      "_npmVersion": "6.10.3",
      "dist": {
        "integrity": "sha512-owdFGXOcva0mbq5ZSa3NAG5u4Gfsq49FX/cRd9ivBYGHmrE9I1CmaG0Uzx37h2gz1l5LWGrq8V+YDa3T2OXRMA==",
        "shasum": "2fc2e519a7d9ab0110ec3b7321627872fc7c1570",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.0.0-alpha.tgz",
        "fileCount": 8,
        "unpackedSize": 11840,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePfzdCRA9TVsSAnZWagAAPnkP/j5SZoLDTRhP++jTBlWl\nu7aJ6JrOCo/CSZnTsO5qPi5R/uvVnFUDx+ZsWgtRQnVviPyn7Ef8pDDsVlAh\n/f2bYKXSnDlCkw46nNZm1Xo3pR7BGkNFCyclx+m0TeUG1zo3tsK+Yv1Iz2mX\nHZa4R4E61Thr1rRazudPRjErkGpEUtR1oxn383A6aIoyAr+ojK+AoIHhzDFB\n86J2lIpEJaFKZJpNFf604n+NsyB15dcIHg2MmdSRnInVKs9n4BnZXKPcSDzX\nyzluVNd2uIS4aIRntaoqH9cKOsHbjAXOCLWibZwq9UpBQpHlhAz7uLAI0k9i\nGdDYDhXAwFsdah4eD/hdBRb93gfDO7AKtJD0b3u45ysYo6d1Uxal5qQIVuZ9\nsRLgKpb1y3WsuJcmoLE4cyEfQXCJihSS7+9nkqxfqm4MgATmFpliYHtBbpix\nbXeMR0tvrB+ThWxobgDNVyg8g2WxnLwxUoqFk7/AxnPs8tQy1Ozb4Ghh19vQ\ntrGJ/2c93YgfIsaXl3lTRKiNYXFcFexuxznl924ZDjQ897VfZxeXJ+wI6FvR\nbqPYHRJ44YgXt0g0zpRUrn3rOFhDHJvh9lVpF57ncyz0p0z0IMQuJ17ENBC+\nPbYY/PgijmS8Miy5d6bcEWU6gkXgVCoeuS52erVPYCMXspjVHzAOesliZjA5\nwbas\r\n=4fh/\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQD3237yEoJ+zTSZSFfKF5H3++1CHvexQJV8xMZ0TpuOrQIgXh5GSuk9H4gvKFZcKcHBWuWssFIAKVzTrLCMWo6xG9M="
          }
        ]
      },
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.0.0-alpha_1581120733358_0.18656596874731912"
      },
      "_hasShrinkwrap": false
    },
    "1.0.0-beta": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.0.0-beta",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regex",
        "regular expression rule",
        "regex rule",
        "eslintrule",
        "eslint-rule",
        "eslint rule",
        "eslint regular expression",
        "eslint regex",
        "eslint regular expression rule",
        "eslint regex rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "eslint --color \"**/*.js\"",
        "test": "node tests/lib/rules/e2e-tests.js",
        "check": "echo ==== Linting ==== && npm run lint && echo ==== Testing ==== && npm run test"
      },
      "peerDependencies": {
        "eslint": "^6.0.0"
      },
      "devDependencies": {
        "eslint": "~6.7.1",
        "eslint-plugin-base-style-config": "1.0.1"
      },
      "gitHead": "cd0b33150bb58101c4383628907adb50effdd6c5",
      "_id": "eslint-plugin-regex@1.0.0-beta",
      "_nodeVersion": "12.10.0",
      "_npmVersion": "6.10.3",
      "dist": {
        "integrity": "sha512-GboxC2iKr3I7rJ3IYUPW3Nv3TJ3r41fSrKrQGionJGh5iSz/SofLFe84GcouwMNK60NFUvuqjPL5nudViHaOSw==",
        "shasum": "0faac4a213f8adaa26ce0db79c597058cf0c6f14",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.0.0-beta.tgz",
        "fileCount": 8,
        "unpackedSize": 12086,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePrxoCRA9TVsSAnZWagAAeDAP/RepoBUv1qMRhV/qgc5+\nGXx1ZYxub4jN6TNkrwuZTbRvpiBZJOtAAYxIBLPeqy7NrOE6ffHlApovGwBf\nHKlPWIKsfrzrYYe72Q4OZUdz5nzxgTmZ6qEk52SV09BiBfVI2x1hUoWey+AZ\nUTT+tO0h3FsaT9l73X5hZfxBhkp/r+6X297Ewmjd/Bo3+dvuGY4C7+AF3IoW\nfQJ9BTkieMhYfq0f6Y1DzIOIHsEMgPitc7RxJ9Uqt1hcEmjbSJ30JCedGBz9\nQKALnyP1rQktzuuolCcfSdL5glwIR5bozYvt+o99rPbR4pg0/w+R8NESSfkB\nru/26+Anmrwv3ldXP6j69uJL5DH52rL2ARhvIW95pvHa3rxUQkne+wLRamzC\nGhF4Rk6sb0RrwwRerxQodX+ME3XxWaNcMGYVaAmUieyCuPtCfdtf8Go2KeaX\nnDDv8SD4KvDmog/NmIgDg0v3BuY0YCu57nPRMhSCsTA21Whf6Mkm/3YB3yez\niq/f7Kq9eFBcCmtePNHfd2dwv6Dfw33Yz/fOU/gjIRiTH5QGXwoP6jDL296u\n3S+tUR0RJuOp7z4FAlRWt0stvwQlqr7f311LiT3GKYpPt0MSH46K7hMQIkkj\nyVPOmO9OhifSvD00lmaXajoydiltOUCg8KL8va+5akLZxtCbL3qFJFc6wb2v\nhKyj\r\n=kg1B\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIArNT3C9LTePqr6U6HvNp18P5I14LaT18TT5krEvkcLXAiBYu2CKedRenE0zFESTsne2G/X6zH7vgnb3tUlOmYkqhw=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.0.0-beta_1581169767584_0.3929551112366019"
      },
      "_hasShrinkwrap": false
    },
    "1.0.0-chi": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.0.0-chi",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regex",
        "regular expression rule",
        "regex rule",
        "eslintrule",
        "eslint-rule",
        "eslint rule",
        "eslint regular expression",
        "eslint regex",
        "eslint regular expression rule",
        "eslint regex rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "eslint --color \"**/*.js\"",
        "test": "node tests/lib/rules/e2e-tests.js",
        "check": "echo ==== Linting ==== && npm run lint && echo ==== Testing ==== && npm run test"
      },
      "peerDependencies": {
        "eslint": "^6.0.0"
      },
      "devDependencies": {
        "eslint": "~6.7.1",
        "eslint-plugin-base-style-config": "1.0.1"
      },
      "gitHead": "61a5c18373da697881ab1a173cc2eda6337e26c1",
      "_id": "eslint-plugin-regex@1.0.0-chi",
      "_nodeVersion": "12.10.0",
      "_npmVersion": "6.10.3",
      "dist": {
        "integrity": "sha512-lq2lsAWTP0w7EskwjN53qH7thpfjn6KLmR6xosnOaWtVVS5AN5QkUEEU7IQm0X/Rqe9m2N+ovE3obde2c8DpDA==",
        "shasum": "292114aa1b2903d9c211ca52818e08d058b19d04",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.0.0-chi.tgz",
        "fileCount": 8,
        "unpackedSize": 12112,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePr/ICRA9TVsSAnZWagAAuyYP/0S4YYX5fATc6GiNuzBG\nBgFAB07Fo+wdzcheYQ7e+YTDWknn/T7ufsnguEF4/c+GXO+kUMTqariC2LkS\n0OMbxoWMAk7do5iyiykVJfUSdjHpmsr1FopPXEgJ3yZYR0FF/XYlDA5nkU8E\nmeGrmPf3KbWJbmBGLcHJlpAqfKg/KybI9G13+sgIKhSo06ilxb9738nEvkkg\nAQolSQzoqmcCjgtJYH8KNniIYmzg58H36bWHx7w3aIIbtFAeHfMHFAyydDJV\nTgsUOnlN+5GuLGliLxdthh30v+C31hMAN+4htQZeeRH3pF7E69kkmCdF/dFO\nE+mJkxPsDgbjSMM2GbhGmVVXT3kvXPwT629hQePpCb0o34udvppGiqK69mJ7\nQXWJjU0vnI4PYht4B/aXvhgeLqXbW/2DR7k5ds9xNLCWXC/Kshs86NUVVGM9\nEps0KsHJomLZL/1E8QMKKA2hyc9BVbYijB2Re5RD6ZJc8qWjWfZwLq+gW8yJ\nRYmsubk4NV9TDpPIeEm7hWQfmmR61tXWo/Ff65jfiS9VntXnyD11QSRXinBp\nOUVl/h7QJMzaFIDrtgPzk/wenzDCr2yNSdGmyNL+4aKlUkfi11UNKCyTlDZE\nhbKe6WP8DYB6H9xTNaGion/oZIeXmC7ITl0kDf9TffUBeTiwKYLnG8ZxYV78\nO2Bu\r\n=DJmA\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDyM0XWtSwLqaeLY/SqICsIJF1MtT4ISkb+u20UFNvI2AIhAIgQFK0Yl2b+QWekE42WbJ7a7kCGX639jyxu76g9R1u+"
          }
        ]
      },
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.0.0-chi_1581170632402_0.09026566804037284"
      },
      "_hasShrinkwrap": false
    },
    "1.0.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.0.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "eslint --color \"**/*.js\"",
        "test": "node tests/lib/rules/e2e-tests.js",
        "check": "echo ==== Linting ==== && npm run lint && echo ==== Testing ==== && npm run test"
      },
      "peerDependencies": {
        "eslint": "^6.0.0"
      },
      "devDependencies": {
        "eslint": "~6.7.1",
        "eslint-plugin-base-style-config": "1.0.1"
      },
      "gitHead": "a3f63608afe1907402d1d3263fe510ee1fc1d158",
      "_id": "eslint-plugin-regex@1.0.0",
      "_nodeVersion": "12.10.0",
      "_npmVersion": "6.10.3",
      "dist": {
        "integrity": "sha512-8DBl+mioWZam8SyUfk6L+1aP4Iemvl0Etv5p2fbu5j97S+e6TtPLodvOGJ+swZ9DuhxDsXe/R64ZR6J+e3pFDA==",
        "shasum": "f786ab9d12abb36b07751856ffbdbee421e64f63",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.0.0.tgz",
        "fileCount": 8,
        "unpackedSize": 12333,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePsLbCRA9TVsSAnZWagAAo6IQAI8iw9K42otYGTLq4/Ek\nX/P9Swo6sI7day5wmjafamMiKePoKTRsj4dzH3HJuoMRUyQAbln+cIgEMPe7\nIX626tdj2C6zK9Xh3ie56o5BKz+JhsehSAs18ubS0T1NHbQ4cc5QcDzJCAQp\n3V1oJo9Pbv6IoGkzTMI5u0TnEisw5lkl0JdODqupvpZJn+UlFiLLG9mcM6vJ\nEFBnkjflazluMee0Fjb7UbyYKsgKa/0SQhVbNWS0vOSsZ3F+8rqQun5oIadU\n3zTqsXPKR8hl2tuVe/zEQkwGUygSWn+EJuEIFi/pXDIO8wEQCfhps5eB56RP\nlmQCQHddW8b6/0W1O43IheCyxGjqXcPV2/JpbkMHym1XtTM/NeUcsPfRouHB\nXk0monAWnbZbF0cyko86PG/zb98PThNnv7AHejap4pqZyK/SOZ4i/l4e1e7O\nhnXLGaKXlAqJlGk57eNCLQTKq77R4nuBtqcztzWhWP1dZAMB+6EhRFrxjV5W\niJeYB5NGRPKsNONvQQoSx5SccgVsAKADyO+2Q6cIZnZ4eHiwbJ75UIQWiCdt\nbwc6dhiy0hnxLfMiCVLSFSpO0bAddq0oItMx9ibBOYI0MeKUUOOf54W0KSII\nSAE7Qi4oDopxrDPGBDcXL/2VoPN4KcWdynnea2kPpbWyal3K0piKb8/cGg4X\niPCQ\r\n=bMN7\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDhAvdSmtQrSd5E8Lu3Iifc13p1N1YbE4VhavpuB+mTZwIhAIdr2WRN3Tvoo/z+3hq7I7zO998Wc6aOVqJ6Z0oqILAB"
          }
        ]
      },
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.0.0_1581171419134_0.8763396811722846"
      },
      "_hasShrinkwrap": false
    },
    "1.1.0-beta": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.1.0-beta",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "only-test": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run only-test",
        "prepack": "echo ==== Build Package ====",
        "check": "npm run lint && npm test && mkdir -p build && cd build && npm pack ../ && npm audit"
      },
      "peerDependencies": {
        "eslint": "^4.0.0"
      },
      "devDependencies": {
        "eslint": "^6.8.0",
        "eslint-plugin-base-style-config": "^1.0.2",
        "eslint-plugin-import": "^2.20.2",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.0.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "894d85faf2a204997444282d8e4153770ba585f9",
      "_id": "eslint-plugin-regex@1.1.0-beta",
      "_nodeVersion": "12.13.1",
      "_npmVersion": "6.12.1",
      "dist": {
        "integrity": "sha512-xGlmImGpmwTA4G4Xt3jSc1v+cCNuhSw9xrWx6Hq2zbt5JmkfM+m8X2GykYBih2foTMPvXlynYaSh0LnNKyhnnQ==",
        "shasum": "c2b7001a143e321236483bce96ee5d44ea67c2c0",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.1.0-beta.tgz",
        "fileCount": 11,
        "unpackedSize": 23547,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekGVFCRA9TVsSAnZWagAApXsQAIof5t/EBfVN6KRPdKkL\n5B9MLAyZSgSpbBHHC4f9wUPnMTwb/ZgQ504fS5CiWcW2hVOrWIoKxZg0eV/2\n5fFkJMijvlqPgD46WfxvKUsu8aPXyPrReg291EgD6NIAxkecogqpFGL3jHqO\nEHV40NnKSDjFm3DFD8R0XReXXvLSXGIuzXO0dysZ9ATV+emAATmSn8awqe3C\nljipVzH085p9tki6uzb2YiBpXXzwKTyOsNzej+DUWC9ttb22LodTfXTzEdvN\nY85j/+05QLYDdznITrR5JSbVwEtsxph6tYRD/Kxbq+G+ZJBdTxjv+bemeUZT\nt7R0AmJcUcJTcpP+f98KhC3uBHHDcRFc9QJR6cxYzC0D3d3JetVVYRZ1KX5q\n9yReREYPdIaPPGMvPZXgAN/Phu6dKwNWtHHAshpVQgDtUr1gTZx2U/00eTTz\n0ZFYPL3DTqhtCHrbpby0S4rMZNGmuufxawOjtp712lHeMUNADJC1eNC5Iodt\nWGENHBi89PsMM/tsBJH+PEt/kuNpS1tJ/GYzpY5Bza6J6Z9I+KSkxudtKxpw\nKpARIVArsHenENNBh/OgLaZ7ceqIcKfd9wBaRW6qmECyEEGfCYUCgaPBFA14\n9KEyVtkaGJurgb0XzevMXbhs9x6vdrECc1K9VX40WTQBFj6V3E39joUcevP+\nan9/\r\n=j7X4\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIEai43A6HhTo5rwLFBBaIoBszZNQ/zTOv4uMKFY6c98aAiEA8vM7P1vcvWZXAz26gIt9HNjptAmiMmjFEjceJRtrZSM="
          }
        ]
      },
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.1.0-beta_1586521412959_0.7230417217161969"
      },
      "_hasShrinkwrap": false
    },
    "1.1.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.1.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "only-test": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run only-test",
        "prepack": "echo ==== Build Package ====",
        "check": "npm run lint && npm test && mkdir -p build && cd build && npm pack ../ && npm audit"
      },
      "peerDependencies": {
        "eslint": "^4.0.0"
      },
      "devDependencies": {
        "eslint": "^6.8.0",
        "eslint-plugin-base-style-config": "^1.0.2",
        "eslint-plugin-import": "^2.20.2",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.0.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "c01eb5c3567def229d01ea0e2288b379acb009cf",
      "_id": "eslint-plugin-regex@1.1.0",
      "_nodeVersion": "12.13.1",
      "_npmVersion": "6.12.1",
      "dist": {
        "integrity": "sha512-of6tEJvvTPqFDmMp3ZbwaRTxyvieuvbs+F1f6BCGEa+COIwp+fJBJV0GSf+VmfuhIW4PwjLFBqpXDJAfXwKI1Q==",
        "shasum": "acb0f8f91590e030197f1cc105706e632df4282e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.1.0.tgz",
        "fileCount": 11,
        "unpackedSize": 24230,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekHeHCRA9TVsSAnZWagAACk0QAIaFJ7qCePnNPZbCRaHL\ncYOoyrNOD3fZeYsZ7Pq8aSs9trx+sPz1hlhxv1LiNuWSYlur8dMIQjlT6Dn2\nkrMhgsPHeZ2uKfK17dEeDJI2jv5pAGc9Be/YZqwEg3CUQ2PWQ5VRlFRKRGHK\nwZZpk4b8voIFar41MbSRIuB5Q+eebixrBW2D4pBcKD7ynzetSFcKMZoz7g1+\n78Wpf92xNr2p1Q6Ojpm7aMiG1hiPg2ENiPXHXPQEqzrpkMLCiGcdk4NSi4Th\nbi23SH+eSF6hgZRGNO5/k6U9AmDkGFmY+eG1pzd7v5y83JfqJEW9RvrCkH9M\nip4oBxcmDH6341QEVUbEQD5tTjDbAk6zdB11Cd7iZ0ZOd2eL/jju/Y21rwfd\n1ViXwPTUT97ydfBdkIWMVi8HyRnlGTFd2ssj6Bi4YVmhB69iOGvDQezYM82n\nF3joU2EtBYpV0hnCagI43kQA0Rex+W6D3t7t1R6QltNQLN/CtZTaRzPpIxYb\n5ToUpik2SpHBbWBH5ciqym5NNTnJJLagucka/zwobeXTwGAk2/eHyhNXimGl\nBnV+fummS4UiK2jj0NzwWDYFZgpXOP2Y/xiXSObh1C20Xn/ahxyyjP7jwDi4\nWsrMvFHuAKbB/gArnvxcWFbR9DC3++7AXi7KdCw1uh2skGbVc/v87RIcyIhh\nr5Ew\r\n=dNl/\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCXB7JM1z0mayOkquGIIJAdB45rbpEgq8QXB8pXNmrI7gIgQkB2uW4RMKtv3/YMWOcGebBBFSOjGtz3U6Rfup3KFCs="
          }
        ]
      },
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.1.0_1586526086682_0.1993578312096118"
      },
      "_hasShrinkwrap": false
    },
    "1.2.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.2.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit"
      },
      "peerDependencies": {
        "eslint": "^4.0.0"
      },
      "devDependencies": {
        "eslint": "^7.7.0",
        "eslint-plugin-base-style-config": "^2.5.1",
        "eslint-plugin-import": "^2.22.0",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.0.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "4cc7761b45e228eb266286e12c7c883ae03511d3",
      "_id": "eslint-plugin-regex@1.2.0",
      "_nodeVersion": "12.13.1",
      "_npmVersion": "6.12.1",
      "dist": {
        "integrity": "sha512-t6OW1vy5cF1yBY2kwtVEpwHfixWDnG1VO6f+ICZshBvgL/SkxwCvXRqccOP7k/ba2/+J1m8F+DPC/ZIUDiuNLQ==",
        "shasum": "dba59076d06dfa7ba1c893c329eb9996a2168fdf",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.2.0.tgz",
        "fileCount": 11,
        "unpackedSize": 25069,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOthICRA9TVsSAnZWagAADVEP/jqkNYciOk4NoK/8TI4a\nqM/uOgLY7X2K4BhFEVTDimnO6I65GkcRBMPcQSEmxoJ0f6NIO3SuerzbZTyM\n4ymJYC9DtcjherMNWLXOHV/EWM2K9b+72vyRuHE86htQJakUqfznS9t8lTAB\nsEtRRwCbDq4ozx/1rl775lEM1FENx70DXw0jEHnj22lULwb1760qLEaDfe60\nNZDsHlKaBjoMsnyWsULJSaEShcZoYXeOQ7Sq99pLHkkig5PDPFEOAEy8y8Xe\nKCJumrLaUSr/FqVhsBRy7DLb9sK54agBxqaa38xhFmF+slkg9FygmwkWga3I\nimvC59FP0l5c7UyOaOCDm0vPkSuqytwdZzijulWfyox760f8MXWNxJD5DdiA\n/72u7iqm4T/YxGG5+vuEJhKZnNusq81ZOWvwO2DPGnx49Dds5GruxJifaYn7\n5l3n8zxR+yOC+WaiTW/uo0/ToI+SnTu6j1BGIbNp6MKpG/zHqWIFpNVVV4f6\nrWTHvarYaBkjNpISJmNZu1WQzI3jEVS9Cxw2yaH6gHIRNOsyec4aCnioIofK\ngccjdOMDpSIfR+ozoYIs7SpIQJETp0ilwqfZ3gWyXWWibbNi2Fqbqu4N6rIS\nHrq2x3EvQZgfja5aQ/rSiaoPOka7gSWfjwKLCb1bX0rcnkd1exF7Z9vSB7FZ\nVDVE\r\n=hkng\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIG66ZQ/Lbtwu6iQw8nIQ8yy0YbNhCFCsFGs/NagT+6o0AiEAmpci6WTfBh762agR+34YCu7irkDLdKl3HsFgGmDm5SA="
          }
        ]
      },
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.2.0_1597691976019_0.06970581842201784"
      },
      "_hasShrinkwrap": false
    },
    "1.2.1": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.2.1",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "eslint": "^7.7.0",
        "eslint-plugin-base-style-config": "^2.5.1",
        "eslint-plugin-import": "^2.22.0",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.0.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "0f724d0f8251d1aa75475ee3cf6156ee68b151e6",
      "_id": "eslint-plugin-regex@1.2.1",
      "_nodeVersion": "12.13.1",
      "_npmVersion": "6.12.1",
      "dist": {
        "integrity": "sha512-a9RqnjYcECOKPp/T6VVcuhu8tkLOqPaQLKLPuvGf+mI7JTY0a9OyAmK8WUTxuIIKb1rI6d30Urtfyb2aJki1pQ==",
        "shasum": "a47b3f6494d5bf72dc1c7ef3115095211ba8cb24",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.2.1.tgz",
        "fileCount": 11,
        "unpackedSize": 25148,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQRHMCRA9TVsSAnZWagAARewP+QHq61jcky6VPo4tic0H\noW1JGrxkTNCDO2iUoxYqH0ydjWxfzzdger/vvzARtAqMCl9RQl2lIzXF52/K\nPpTDbs/ikNAmA0jwOO7DUfn9fNHQz38VuTu0JSS6+b+rlUOcqPV1c3gLz4fU\n7O9gCOY3pU+7zl0FoI1mdOAeUye0R/Gu3/piTnDPWTj2w9/2N7yhGpRwAa+C\nEXFQzn+A31TPg7tL8XqjSthRQIJi92u7GGa3d9wz6Cc0keFmG3JzLbebWEvr\nmaygNW574VWEsb+YIFeTgO9R9HwFcmtPcVs/vehoxNYfeV1cI7zGFtVjjFpX\ns7VJoJOSZlSHeeDqG5tIouO6kV0HEgANVtYJ6wd4qfuY9H90d5d10x3uz27I\nwIAgd1ZbGgZFFxo4VLS+8YD+xmzxpwDZR7ICyzGaWHfJzCZDIsNROFSVwMuP\nG4hhwmknSOdGx5qzClUpTWbmi828nvxZu2uo9v4Rc0dB5nzHAUjjs/u0y0b9\nKac0tF8T3YLNyiGaDSF3CMq+xSFleevOt3X02+UZKTtf7exsJmR+IG7F9Bvn\nq7eLLr8UcJ/Cfy6jUM81j4dnMxe7mCTo2krv9sVXCoYb7bYWRRQbiJk28AFQ\naTL5Z0K+K0fRSeh1x2yirI7bRj1qJlk7YLH70AA4zQRnIH08QqH4tred+zJN\nNA50\r\n=p5bR\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIFzVLPi8qdx8G/K2KEj3L/NBPdMsXfGZQIuvWQtbPH3bAiAixvv+Qyeu85lxbEcx3B97AWNQxyhIXOByTo1Z7/kiMQ=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.2.1_1598099915752_0.46157612427716277"
      },
      "_hasShrinkwrap": false
    },
    "1.3.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.3.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "eslint": "^7.7.0",
        "eslint-plugin-base-style-config": "^2.5.1",
        "eslint-plugin-import": "^2.22.0",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.0.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "d320e11dec118c43e6a408b329fa7c39bc6ed5c2",
      "_id": "eslint-plugin-regex@1.3.0",
      "_nodeVersion": "14.14.0",
      "_npmVersion": "6.14.8",
      "dist": {
        "integrity": "sha512-TCP9QyxsYRvVuFST7eX/4y8ARwgp9651sI3jycFaizFKQJY9h4UILdk171Jqx0/nqpPr9q7IAw8/7+LmcmzJCw==",
        "shasum": "7bf28afb00dc9a024ce6971a24f1da487688aeac",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.3.0.tgz",
        "fileCount": 11,
        "unpackedSize": 27277,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFrJACRA9TVsSAnZWagAAYRUQAILRc/qW6PzWvd7/UgHW\nbCk6h1SODZmdH1XOnIkVPVqGiS41tZbNcsEtLjX6sW60bgFihmHGtTOuZqL0\nbhZdaQKYXURtuMNm5Kq7STzVtB3zZIIMSvZ9DTsGyEdTQWL7ZRpHRmFjBwu/\n7phrSamp/b6/OarAdVwBJ+ST3hdt0Y+QNj7BkSdMcv4aYBGegVIGH8EadbZp\n1HHgjwr4tUe5ekPqPAkSvntnNIzqGYnyxMuIyZTIT0IZL1FfiY9V8srJdoXd\nafl5E49St56xrHW0QYoeXW5DcDianA/oG9vGhlOwykMRP7b/giGRS+n6Xpgc\ntuY0sycOM/clQPSS7G3Tr4NKMdwn894+ltofQYEzpKqtUlhKQdFGrQwAjQB1\nq403c6UsmI8c8dnl4JVs5IP/KTjKNkuLINKTQI8SyNJjjzrJjDYAnLHphFAR\no29RJF3RGN0mObHuew22dZWMtpEM17c5PFHnA11ltvfE+pMdmIUFNT3vKjvb\nt+zc8jWZNVupY3Qo1Rg2UTCwn3Z6OR0ASzOyketRVoUf32PzqggFX07lCsNV\n8pbYhv4sCkNezv/jYkISBz7AkGFPrFhv8g+1+NQB5viuYb/x3Nyha5H6dFkT\nilmnuokf8uHu51yt9chCmNf+TpjOOcHBVpEnmGUQTTGwlG2V1U4wofagon41\nS8dM\r\n=rrnT\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCICMKYH5I6AfISISB7delPKFnkvfzzGgvZnIHFki5x02NAiA4u5b2KMCAEhoU8ibNjxvil6XuUA7qA8lMPOF60Ji+tQ=="
          }
        ]
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.3.0_1612100159458_0.740632570552318"
      },
      "_hasShrinkwrap": false
    },
    "1.4.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.4.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "eslint": "^7.7.0",
        "eslint-plugin-base-style-config": "^2.5.1",
        "eslint-plugin-import": "^2.22.0",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.0.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "260bf18b9cf6211a97e6e4f1c8c0fd1ec9a873f0",
      "_id": "eslint-plugin-regex@1.4.0",
      "_nodeVersion": "14.14.0",
      "_npmVersion": "6.14.8",
      "dist": {
        "integrity": "sha512-AVmx5siv3LL6gpxjVp5voqGfG2KOpOwY++ZZck0C8GgRJcFvtMiZ0fl29/EYl0pKpt5oCypkI40ezwHnig/eWQ==",
        "shasum": "34e03f410b12d10352100617d1dfafe3043d46cb",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.4.0.tgz",
        "fileCount": 11,
        "unpackedSize": 31100,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJ644CRA9TVsSAnZWagAAIvsP+gIxfKxvSGDzrzEpWN6y\nFXrNNvEgBi8s7454j6NK9d9lN8zFE/PAkYJe1NYB548Ch5kQUyeEmYkS4vWH\nomD33Pdy3461CSMp5YMgfaI0TLqp+x6vF0DiHgHTTqoFH4mHgXtvW8qxyPlG\noO/ek3eBFGnanD6N7EO9tSJn1Eq5SqP0lZ5n2K5dkxS74O1cd+TrEevJ6PBj\nu6opzIMLc8s3b/ojsoIaAPBXtKCOGSFy+jh0xEhVB7omsJDOfugZs8UahXhx\n3x0CvqyIqjHekGXQdRf3ZGG0g9/rEGiR9JniI9IA4JmQKuOf0PRtFmK1arGc\nuWcico8XS8Oujk6IqvsR6ZqXvSg/0kgwZnP+QT7SZ9s9gx57IkFmL5lzALhc\n999mBFAt8JsnRZtteUiPjOqgm5kVAnNT6iPwoU61QfhDOzbbVLskas/84cQL\nurjabVREt9Aya1VZz/BQMgeUAC9bsiSPogYUbHO7ayfCyzWD1SQhCsb6KMa+\niUtNv9kohUfI0iM42TYVvVIGBzstkkR8qmPoMo3ANClMn9dZMSzzwXpfdnTd\n6MPMPrIBjjJdLBsBfKnfSv04nxB9L9hZOJBcC72JhLBfawaB7xxpOl1bFO80\nXyPBkqbhbWH9nlPXsjJF7g2cHXcs0wlNUfId7nHdyYQ+sUlh/8dlwXVW080C\noNfT\r\n=ofH0\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDI0eu0oAsfHFVko+aS5/OPMnn9RvDWE+uYS5ji9uH3lgIhAMS3VnUBk0dllpF6eDDYpsD895sQrHT+R9OYebkbMaN2"
          }
        ]
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.4.0_1613213239479_0.7683399836560196"
      },
      "_hasShrinkwrap": false
    },
    "1.5.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.5.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "eslint": "^7.7.0",
        "eslint-plugin-base-style-config": "^2.5.1",
        "eslint-plugin-import": "^2.22.0",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.0.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "f71baf24c364580a143bf10c140c2589624c0707",
      "_id": "eslint-plugin-regex@1.5.0",
      "_nodeVersion": "14.14.0",
      "_npmVersion": "6.14.8",
      "dist": {
        "integrity": "sha512-lJe+nXaBSLDvosPwN8ReB77fSkMQUrdKzaiDU9EABc3iGdvPxhRDs14/fPwwfvVm0BCSXwrVzgINyittiataUA==",
        "shasum": "fc2570efbfeda39f21952884b98325bba43b08ae",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.5.0.tgz",
        "fileCount": 11,
        "unpackedSize": 31985,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMmDhCRA9TVsSAnZWagAASaYQAIcqazekjbgtl4g3GO2S\n64CVJXTosHmBaPxVaBYZwrZa4dAhIizmk4MOt2Jih8QFcCHh/ofCql4ENBQH\nZvXYOy9x1GEGDAtxlGJmnYzRC9mvX8LHj6plvn2Ko5l/5PGaYCoWiyz9i7Na\nMvz0gtLWIHxzfYLlK5K6Cy1XxfjRSMu1SKpYGm8Lds52d5WhVReIGx9J91gv\nU9nJduTTiAlVi+f9f2cdkPCGFemG/4MN5QMf3ezjkp4DTjwbCGfSGnAxFtOg\nt5uViSWPy0QGmd/pVUa+3xv5JbFeFADY6OYIMgoB9AqMLrxgtY6n3kuAE//X\nm6oVtQiRH+SPn9C61nfgGFDQskMcqXlX4BzeXG3DURYhW4vWtC/P7/bk7XM8\ntDtKmARjW7MRMiuJArxb+HAizeY0+qV51byPn6D6jTX5jUoLhN6olESlhFXt\nmJectNt81TrY24ut9hhCtUKwylJdq4wbCq+u6bgpa7cMEQ6oYl+8L+q0SO4S\n9SKKoXAr3Shv13gjiw74MwGrUM7hZb1qvT96puyC8NPGOFVc2YcWiL9xSHrF\nM9o7MWe6NFb7VPQeBJl9cf96YQo4fWmW51olfymWXWUbnrxVGPM1KFE7qkpo\nBsvyGI4F70tKGAJMYrTy9HPbS+9sB7VCK+j+0Q0k3A5LokQNa48H8xEAhuDC\nO7qQ\r\n=g5N5\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHTf/7aheWGdn4Px3VRaIb4KeYMS8eA2Gs89sFvZRRMwAiEAvPJWtWKmfXK7tJIYiFddMcGRpLJ//6oFHJZrTvVrdDs="
          }
        ]
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.5.0_1613914336941_0.8718386264647526"
      },
      "_hasShrinkwrap": false
    },
    "1.6.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.6.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "eslint": "^7.7.0",
        "eslint-plugin-base-style-config": "^2.5.1",
        "eslint-plugin-import": "^2.22.0",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.0.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "74cd1299e4d557ef680bf2ccbbee8200f4b80587",
      "_id": "eslint-plugin-regex@1.6.0",
      "_nodeVersion": "14.14.0",
      "_npmVersion": "6.14.8",
      "dist": {
        "integrity": "sha512-6nruFqnyILNHIbdas5SNdl+q4rxE3kVhuuqcvtE2W3shJOJaOHiQWqy3dO8XYYQhzOu0cDR+ECfWzdRjBk7e5g==",
        "shasum": "4b3cd7b1e60e4cb1111e68d064b67dbd72fab04d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.6.0.tgz",
        "fileCount": 11,
        "unpackedSize": 34051,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgO5SoCRA9TVsSAnZWagAAhYMP/iMR6mHQ5pfDTdEVe03W\nA/h8ApcfRW78efn9caRzgD8wYNeRJPnc1dkn0NmYs8EeX4DhhCFWImi2IpHp\nk88AE8CX4Kz7qJ/0YCyQyJp4YiMlnwY09/JHLjAMNoWgwCE/j5oo/0p2xj1M\nJK61KlH81ykjWETmsekfhOj3tHrRd+1w/uokoxsqJD4SXzMy0naG2afRi9Kk\n5MjXDNoAX2dIqKcBrZPzeRq6e7EzP4MWA5qIO1EOJZMycRHxE7BgHMybcNuX\n/nUVg0Pd2oI6sZunInLYfeQQM7GBNlJwarK+bd8LkcuCtyBGvygrPyXBzNDx\nSoM0EGLTWomSh2lHU3jEito5IZ4eWq/zLjJax0sbMk3p15pS6hZ8H8xIqWfU\nK1EtoJQetKzoiEK9C5QewOaHXwf1Lt1sUcR18QtXlTjDJYiTccGtGaGPJ49A\niBEHU3kpsZNALQoVS7a4N9ieHR+sRx9GYyqARWBx+bEXKnESQ0elynkZyceA\nO4Po8NWfQM6m+gPBLdgSi1kYiujTgklJD0T56PA3c142OhKmfFmS0NXqN3gJ\nsMdPcPbPWAoooV4fBHVg1QHt5kycL2JFSCbg6EfgrsAsF+kyM/Xe5AOf5aE5\nF/mFiGREAmNdHnmGFWHs+gABhl0HRQaH8pv4NiQZwe11SzF1pW1u8s/CGg+w\n7war\r\n=DwNt\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQC9AogYCtivMIBkhpVmYAnwrPwYmt4BV13/dqRrzzSPbQIhAIZy+iP5Z1vWzVUrv8dmaLQw5hbT6YbDAQvzqn7X7xPE"
          }
        ]
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.6.0_1614517415911_0.012192392454358325"
      },
      "_hasShrinkwrap": false
    },
    "1.7.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.7.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://gitlab.com/gmullerb/eslint-plugin-regex",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://gitlab.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint",
        "eslintplugin",
        "eslint-plugin",
        "eslint plugin",
        "regular expression",
        "regular-expression",
        "regex",
        "regexp",
        "regular expression rule",
        "regular-expression-rule",
        "regex rule",
        "regex-rule",
        "eslintrule",
        "eslint-rule",
        "eslint-rules",
        "eslint rule",
        "eslint regular expression",
        "eslint-regular-expression",
        "eslint regex",
        "eslint-regex",
        "eslint regular expression rule",
        "eslint-regular-expression-rule",
        "eslint regex rule",
        "eslint-regex-rule",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "lint",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "eslint": "^7.7.0",
        "eslint-plugin-base-style-config": "^2.5.1",
        "eslint-plugin-import": "^2.22.0",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.0.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "1b46375d3405f057855a06ac330c648d2065bf2f",
      "_id": "eslint-plugin-regex@1.7.0",
      "_nodeVersion": "14.14.0",
      "_npmVersion": "6.14.8",
      "dist": {
        "integrity": "sha512-dSonj8OBs27A3r7lD8XlR2sx4DjWfr7yxR4qqhAjdwm5QIlVXq8v+u9/3Lzp/gXtcJfTbzQOJSjDN2Cly+IuHg==",
        "shasum": "761ed42a25a1590d806740b961ff11d0f558bc1c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.7.0.tgz",
        "fileCount": 11,
        "unpackedSize": 37223,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgO8yqCRA9TVsSAnZWagAAVZQP/Ah2Aimgd6TPLSfD+B0T\nAEm12OfMLs5qRFpjljJiuj833S9vRH1IdK0BFYdnG8wzrJ6pTTyCMU9n5Rms\nEvLJ18BSDnVLC4K/e+OcrhQ15G9bhTCOTiqyMKSBT5bHZ+dGq4HSnY2C9tIu\nLTEjLYuXkh9lYSIxwmo5uhvmRMUlD2wxJdBqsBJamvf1mCngbCAUqu7l74Q1\n2c5+bAWWwFsuZzoSyRmkasd/nZjST3bB4znWFIFrvR8PAske+0aKragNx6Ph\nreGR0MfzKs9RYlUBpCT4TemjBYl+SvO0CJywKtazy54894ennc6QKlIQtCZ/\ne/EswWTzBEYwn4NLIO5/6c2g19PBOTf7lARLrS8eW49AKmOvaK8/Os6gcPdf\n2+j6WrZSvhKVdK5fABDoXFO6TXU/mlAVUV9o3gmyrcXqH6Bnl1IIyNL0co9t\n6lxuniydFurNxlSlolxQOHpuw970dFNIWGHroxK1YAgrEdOBPmqbDgbKAmRG\nTbC8AsVEQOzFqWOR4HTrBmRsqs39kMbwrbH3I7KFmXGlil4Y1orS+7TbzsFu\nV7tpk2tQxdpuYJzNvMBmz4+4oVWbAmop/KFchJ00rTpDiLUJfMuDwOpXFR3B\nhATJ7RsGqGCI8sB6gvi1I9BPyHkQxuovy/FjUgTiRpCP0bQWSoUDTwno2uW9\nvlks\r\n=zNDF\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIGglnM8hTmLApF8EY2nueV/lkOp25yu3dLyRrawQpwziAiEA14wmZ/h5niq3O7GvQH7eh1xjqqcuPdxYB0MWpvNHieE="
          }
        ]
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.7.0_1614531754028_0.8374811474908346"
      },
      "_hasShrinkwrap": false
    },
    "1.8.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.8.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://eslint-plugin-regex.github.io",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint-plugin-regex",
        "eslint",
        "regex-rule",
        "regex",
        "regexp",
        "eslint-regex",
        "eslint-rule",
        "eslint-regex-rule",
        "rule",
        "expression",
        "regular-expression",
        "eslint-regular-expression",
        "eslint-regular-expression-rule",
        "eslintrule",
        "regular-expression-rule",
        "eslintplugin",
        "eslint-plugin",
        "plugin",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "syntax",
        "lint",
        "linter",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && lintspaces --newline --indentation \"spaces\"  ./lib/**/*.* ./readme/**/*.* ./tests/**/*.* ./docs/**/*.* ./*.json ./*.yml ./*.md ./*.sh ./*.txt ./*.properties ./*.gradle ./.gitignore ./.npmignore",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "eslint": "^7.32.0",
        "eslint-plugin-base-style-config": "^2.8.0",
        "eslint-plugin-import": "^2.24.2",
        "lintspaces-cli": "^0.7.1",
        "nyc": "^15.1.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "7427e2196bde0eaaea2c3f6b170435140ca785e3",
      "_id": "eslint-plugin-regex@1.8.0",
      "_nodeVersion": "14.14.0",
      "_npmVersion": "6.14.8",
      "dist": {
        "integrity": "sha512-rmzVvpoxHKgvcYDo9d1X9RMFOtyOV3A6taD3KWE6gIID2dHoc8RPd0YAjDSJ0LG35wnehQBfsNB+F7q4eYqXqw==",
        "shasum": "4bd111cf5235fb76a4a7f77d7ffcb7b3777b8a77",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.8.0.tgz",
        "fileCount": 11,
        "unpackedSize": 37503,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLlDBCRA9TVsSAnZWagAAPiwP/Ago8az0Sa6y6Gf2L4B5\nSGWtreF1mb424FV2GaLRP3JEVXSGmS/AX9npGezpoE60obwA5jKyUVwAyqB4\nfuvLVK3QS6NVAp4gPj0/Nf2puVoFffXf7OQs56mTumum8XNsSA0INTWisbIO\n57VSo3hYyi+X4FlaEi9hE/wQybfYgIbrJ8XoLuD1EyfziFwvNlTnhLglVR1V\n9gMJ4aiGf4kLQFZ+vw5iUHoLXmibEBShLSaVec8PuSl2yKjuk5OCCBNxPWl5\nBKtGB9zUkN2w5TQG6UNydZGgrJMoLTMtBHohZYDkpTtzYoOUYt0YoUpOaiM0\nxPoZCAArKMj8SH3C+wPfXh0ho/0MeQN/UQHSPMhozu2MIBeYwk8P0bff9AIm\nvaCj1IQ+4KP3s88oY7ydUI/Jw79nr8IoWh7Woi16bdwB5JasvLCJqHpb5k+a\n9jcnBKoe5ypKkdbO5Jxxhu9EU6V7o25LCn34TcmjaRkbmmio1VZQgR6+aSbN\nOKcBlWhVSKA9KFWwSyahWGZVrSSWEPw5w3zZYfOwgHx6aZqCTHF3I7MB9WNs\n32r5Rmv/HMDuVvR9hHsm3cQAkqAUuzZqme+gnNCD87sbOQJi9XHU7U3GMKRl\ntIy8jxclnKli8ldX3f+6SxnQghQvoR3irxJv2pi16qKG9GQr72Qm6J+es+xX\nRsKo\r\n=UUHS\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIDtZ5C6UvypSj6clXBD+s5ELWvJgPueyx/1g5JEC44GiAiBHJOFbsKJqxqDFQPPpof8fALUhsJyAZbhJW+iemhy2/w=="
          }
        ]
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.8.0_1630425281383_0.34880641205438767"
      },
      "_hasShrinkwrap": false
    },
    "1.9.0-alpha": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.9.0-alpha",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://eslint-plugin-regex.github.io",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint-plugin-regex",
        "eslint",
        "regex-rule",
        "regex",
        "regexp",
        "eslint-regex",
        "eslint-rule",
        "eslint-regex-rule",
        "rule",
        "expression",
        "regular-expression",
        "eslint-regular-expression",
        "eslint-regular-expression-rule",
        "eslintrule",
        "regular-expression-rule",
        "eslintplugin",
        "eslint-plugin",
        "plugin",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "syntax",
        "lint",
        "linter",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && eslint --config .eslintrc-any.json \"**/[\\.a-zA-Z]*.+(js|jsx|ts|tsx|json|yml|xml|sh|txt|md|svg|properties|gradle|java|cpp|c|html|css|groovy)\" \"**/.+(|gitignore|npmignore)\" --no-eslintrc --ignore-pattern \"build\"",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "engines": {
        "node": ">=6.0.0"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "any-eslint-parser": "^1.0.1",
        "eslint": "^7.32.0",
        "eslint-plugin-base-style-config": "^2.8.0",
        "eslint-plugin-import": "^2.24.2",
        "nyc": "^15.1.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "readme": "<p align=\"center\">\n  <br/>\n  <a href=\"https://eslint-plugin-regex.github.io/\"><img src=\"https://assets.gitlab-static.net/uploads/-/system/project/avatar/16770425/eslint-plugin-regex.png\" alt=\" \"/></a>\n</p>\n\n<h1 align=\"center\">ESLint rules using Regular Expressions</h1>\n\n[![eslint-plugin-regex](https://badgen.net/badge/homepage/eslint-plugin-regex/blue)](https://eslint-plugin-regex.github.io/)\n[![eslint-plugin-regex](https://badgen.net/badge/npm%20pack/eslint-plugin-regex/blue)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![ ](https://badgen.net/npm/v/eslint-plugin-regex)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE.txt)\n[![ ](https://gitlab.com/gmullerb/eslint-plugin-regex/badges/master/coverage.svg)](https://gmullerb.gitlab.io/eslint-plugin-regex/coverage/index.html)\n[![Github repo](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/gmullerb/eslint-plugin-regex)\n[![Gitlab repo](https://badgen.net/badge/icon/gitlab?icon=gitlab&label)](https://gitlab.com/gmullerb/eslint-plugin-regex)\n\n__________________\n\n## Quick Start\n\n1 . Add dependencies:\n\n`package.json`:\n\n```json\n  ..\n  \"engines\" : {\n    \"node\" : \">=6.0.0\"\n  },\n  \"devDependencies\": {\n    \"eslint\": \">=4.0.0\",\n    \"eslint-plugin-regex\": \"1.9.0\",\n    ..\n```\n\n2 . Configure eslint:\n\nShort configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ],\n      \"ignoreFilesRegex\"\n    ]\n  }\n}\n```\n\nFiles will be checked for the absence of `invalidRegex1` and `invalidRegexN`, and for the presence of `requiredRegex1` and `requiredRegexN`, and files with name matching `ignoreFilesRegex` will not be checked.\n\nDetailed configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [{\n          \"regex\": \"invalidRegex1\",\n          \"replacement\": \"newValue\"\n        }, {\n          \"id\": \"regexIdN\",\n          \"message\": \"errorMessageN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [{\n          \"id\": \"regexId1\",\n          \"regex\": \"requiredRegex1\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        }, {\n          \"regex\": \"requiredRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexA\",\n            \"inspect\": \"inspectFilesRegexZ\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\nFiles will be checked for:\n\n* The absence of `invalidRegex1` but if found it will be replaced with `newValue`.\n* The absence of `invalidRegexN` only in files with name not matching `ignoreFilesRegexN`, but if found `errorMessageN` will be shown.\n* The presence of `requiredRegex1` only in files with name matching `inspectFilesRegex1`, but if not found `errorMessage1` will be shown.\n* The presence of `requiredRegexN` only in files with name matching `inspectFilesRegexA` and not matching `ignoreFilesRegexZ`.\n\n__________________\n\n## Goals\n\nThe idea is to allow the creation of different eslint rules based on Regular Expressions in order to have some \"freedom\" to create quick ESLint custom rules.\n\n## Rules\n\nName                                                  | Fixable | Description\n----------------------------------------------------- | ------- | -----------\n[`regex/invalid`](docs/rules/invalid-regex-rule.md)   | Yes     | checks that specified patterns are not found\n[`regex/required`](docs/rules/required-regex-rule.md) | No      | checks that specified patterns are found\n\nEach rule is a set of patterns.\n\n![Rules](readme/rules.svg)\n\n### `regex/invalid`\n\nThis rule checks that specified patterns are not found in files, i.e. **Invalid patterns**.\n\nExample of **incorrect** code for this rule:\n\n```js\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nExample of **correct** code for this rule:\n\n```js\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \\'My Friend\\''\n```\n\nWhen the pattern is found, the error message will reflect the exact location, e.g.:\n\n```bash\n 34:25  error  Invalid regular expression /invalidRegex1/gm found  regex/invalid\n```\n\n### `regex/required`\n\nThis rule looks for specific patterns that must be present in each file, i.e. **Required patterns**.\n\nExample of **incorrect** code for this rule:\n\n```js\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nExample of **correct** code for this rule:\n\n```js\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\n// Copyright My Friend\nconst text = 'Hello \"My Friend\"'\n```\n\n### Options\n\nBoth rule has two options:\n\n* **array** of patterns definitions to analyze. [REQUIRED]\n  * Each pattern definition can be 'Short' or 'Detailed'.\n* a **string** representing the regular expression for ignoring files for all patterns. [OPTIONAL]\n  * Slashes (`/`) are not required in the string, e.g. To get the following regex `/.*test\\.js/` define the following string `\".*test\\.js\"` when using `.eslintrc.js` or `\".*test\\\\.js\"` when using `.eslintrc.json` (backslash needs to de double in a json file).\n\n```json\n[\n  \"error\",\n  [\n    \"regex1\",\n    \"regexN\"\n  ],\n  \"ignoreFilesRegex\"\n]\n```\n\n#### Short pattern definition\n\nIt is specified by just a regular expression `string`, i.e. `\"regex\"`\n\n```json\n{\n  \"regex/invalid\": [\n    \"error\",\n    [\n      \"invalidRegex1\",\n      \"invalidRegexN\"\n    ]\n  ],\n  \"regex/required\": [\n    \"error\",\n    [\n      \"requiredRegex1\",\n      \"requiredRegexN\"\n    ]\n  ]\n}\n```\n\n> * Slashes (`/`) are not required in the string, e.g. To get the following regex `/\\bhttp:/`:\n>   * when using `.eslintrc.js`, define the following string `\"\\bhttp:\"`, or\n>   * when using `.eslintrc.json`, define `\"\\\\bhttp:\"` (backslash needs to be double in a json file)\n\n#### Detailed pattern definition\n\nIt is specified by an `object`, with the following fields:\n\n* `regex`: A **required** `string` representing the **Regular expression to look for**.\n* `replacement` [1]:\n  * An optional `string` used to replace the **invalid** found pattern, or\n  * An optional `object` that establish how the **invalid** found pattern will be replaced:\n    * `function`: used to replace the **invalid** found pattern.\n      * It will receive 3 parameters: `text`, `captured` and `$`, that can be used as desired.\n      * It must return a `string` value, if not, return value will be ignored.\n      * Its definition must be only the body of the function.\n      * [More Information](#definition-of-the-function-used-to-replace-invalid-found-pattern).\n* `id`: An optional `string` representing the **Pattern Id**.\n* `message`: An optional `string` specifying the **Message to be shown when an error happens** (invalid `regex` is found or required `regex` is not found).\n* `files`: An optional `object` specifying which files to analyze:\n  * `ignore`: A `string` representing **Regular expression of the files to be ignored** when validating this specific pattern.\n  * `inspect`:  A `string` representing **Regular expression of the files to be inspected** when validating this specific pattern.\n\n```json\n{\n  \"id\": \"regexId\",\n  \"regex\": \"regex\",\n  \"message\": \"errorMessage\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegex\",\n    \"inspect\": \"inspectFilesRegex\"\n  }\n}\n```\n\n> * `regex` is the **only** Required field.\n> * Slashes (`/`) are not required in the string, e.g. To get the following regex `/\\bhttp:/`:\n>   * when using `.eslintrc.js`, define the following string `\"\\bhttp:\"`, or\n>   * when using `.eslintrc.json`, define `\"\\\\bhttp:\"` (backslash needs to be double in a json file).\n> * When `ignore` and `inspect` are present, `ignore` takes precedence.\n> * Global ignore file pattern, takes precedence over `files` patterns.\n\n> [1] In order to fix issues `eslint` must be run with `--fix` option.\n\n##### Definition of the Function used to replace the *invalid* found pattern\n\nDefinition of the function must be done as a `string` in 1 line, and the following rules apply:\n\n* It must return a `string` value, if not, return value will be ignored, i.e. it will silently fail.\n* Its definition must be **only the body of the function**.\n  * For \"simple\" functions where the `return` is found at the beginning of the body of the function and the **exact** word *return* is not present, `return` can be omitted.\n* If the function has invalid Javascript code, the function will be ignored, i.e. it will silently fail.\n\nFunction will receive 3 parameters, to be used as desired:\n\n* `text`: a `string` with the value of the invalid text found.\n* `captured`: an `array` of strings with the values of the captured groups for the regex.\n* `$`: an `array` of strings, with the value of the invalid text found plus the values of the captured groups for the regex.\n  * `$[0]` = `text`: a `string` with the value of the invalid text found.\n  * `$[1..]` = `captured`: an `array` of strings with the values of the captured groups for the regex.\n    * `$[1]` = `captured[0]` and so on.\n  * It allows smaller definitions.\n\n**e.g. Using parameter `text`**\n\n`\"return text.trim()\"` => only the body of the function + returns a `string` value based on `text`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return text.trim()\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[0].trim()\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```js\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```js\nconst exception = \"error19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"text.trim()\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[0].trim()\"\n  }\n}\n```\n\n**e.g. Using parameter `captured`**\n\n`\"return captured[0]\"` => only the body of the function + returns a `string` value based on `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return captured[0]\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[1]\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```js\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```js\nconst exception = \"19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"captured[0]\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[1]\"\n  }\n}\n```\n\n**e.g. Using parameters `text` and `captured`**\n\n`\"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"` => only the body of the function + returns a `string` value based on `text` and `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return $[0] + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return `${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```js\nconst sum = \"4+5\"\n```\n\nwhen linting with fix, the result will be:\n\n```js\nconst sum = \"4+5 = 4 + 5 = 9\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"`${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\n**e.g. `return` required**\n\ne.g. `const result = text === 'superb' ? 'Superb' : text; return result` => only the body of the function + returns a `string` value based on `text`.\n\nSince the `return` is not found at the beginning of the body of the function, `return` cannot be omitted, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"const result = text === 'superb' ? 'Superb' : text; return result\"\n  }\n}\n```\n\n> Some cases may use Comma operator, e.g. `\"function\": \"result = text === 'superb' ? 'Superb' : text, result\"`\n\ne.g. `return text === 'return' ? 'Return' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the *exact* word *return* is present, this will **required** `return`, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"return text === 'return' ? 'Return' : text\"\n  }\n}\n```\n\nFollowing case does not required `return`:\n\ne.g. `return text === 'Return' ? 'RETURN' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the **exact** word *return* is not present, this will allow the following rule definition to be:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"text === 'Return' ? 'RETURN' : text\"\n  }\n}\n```\n\n###### Debugging of the Replacement Function for *invalid* found pattern\n\n* It is possible to add `console` statements to print some information in the Replacement Function.\n\n```json\n{\n      regex: '\\\\serror(\\\\w*)\\\\s',\n      replacement: {\n        function: 'const extract = captured[0]; console.log(extract); return extract'\n      }\n    }\n```\n\n#### Mixing\n\n##### Mixing pattern types\n\nIt is possible to use both type of definitions, 'Short pattern definition' with 'Detailed pattern definition', in the array of patterns.\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegex2\",\n        {\n          \"regex\": \"invalidRegex3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\n* `invalidRegex1` and `invalidRegex2` are 'Short pattern definition'.\n* `invalidRegex3` and `invalidRegexN` are 'Detailed pattern definition'.\n\n##### Mixing rules - Named Regex Rules\n\nRule name can have suffix, this will allow to mix different error levels or create custom regex rules package.\n\n* *regex/invalid**Suffix***.\n* *regex/required**Suffix***.\n\n![Mixed Rules](readme/mixed-rules.svg)\n\n###### Mixing error levels\n\nIt is possible to set different error level: `error`, `warn` and `off`. For this add a **different** suffix to the regex rule name of each definition.\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\",\n      [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalidSomeSuffix\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n    \"regex/invalid-another-suffix\": [\n      \"warn\", [\n        \"invalidRegexB1\",\n        \"invalidRegexB2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ],\n    ],\n    \"regex/invalid.another.suffix\": [\n      \"off\", [\n        \"invalidRegexC1\",\n        \"invalidRegexC2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexC1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexCN\"\n          }\n        }\n      ],\n    ],\n    \"regex/requiredSomeSuffix\": [\n      \"warn\",\n      [\n        \"requiredRegexA1\",\n        \"requiredRegexAN\"\n      ]\n    ]\n  }\n}\n```\n\n* Rules with invalid patterns and `error` level: `regex/invalid` and `regex/invalidSomeSuffix`.\n* Rules with invalid patterns and `warn` level: `regex/invalid-another-suffix`.\n* Rules with invalid patterns and `off` level: `regex/invalid.another.suffix`.\n* Rules with required patterns and `error` level: `regex/required`.\n* Rules with required patterns and `warn` level: `regex/requiredSomeSuffix`.\n\n###### Custom set of regex rules\n\nCreate a custom ESLint package and add the custom regex rules with a **\"unique\"** suffix for each regex rule name defined in the package, so it can be use with other package of regex rules or local regex rules.\n\nCustom package `index.js`:\n\n```javascript\nmodule.exports = {\n  configs: {\n    'someRegexRule1': {\n      plugins: [ 'regex' ],\n      rules: {\n        'regex/invalid-custom-890': [\n          error, [\n            {\n              regex: 'invalidRegexBN',\n              files: {\n                ignore: 'ignoreFilesRegexCN'\n              }\n            }\n          ]\n        ]\n      }\n    }\n  }\n}\n```\n\n* This custom package defines 1 rule named `regex/invalid-custom-890` with only 1 invalid pattern with `error` as a default error level.\n\n> For more information on how to create a custom ESLint package check [ESLint official documentation: Working with Plugins](https://eslint.org/docs/developer-guide/working-with-plugins)\n\nthen use it,\n\nSome project `.eslintrc.json`:\n\n```json\n  { \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\",\n```\n\nto change the default error level set by the package:\n\n```json\n  {\n    \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n    \"rules\": {\n      \"regex/invalid-custom-890\": \"warn\"\n\n```\n\nmixing with other regex rules:\n\n```json\n{\n  \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n  \"rules\": {\n    \"regex/invalid-custom-890\": \"warn\",\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalidSomeSuffix\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n```\n\n##### Custom set of regex rules using js files\n\nCreate a custom npm package using either with `json` or `js` files and add the custom regex rules.\n\nCustom package `index.js`:\n\nwith complete rule definition:\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n  files: {\n    ignore: 'ignoreFilesRegexCN'\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n}\n```\n\nor with only regex definition:\n\n```javascript\nmodule.exports = 'invalidRegexBN'\n```\n\nor with multiple complete rule definition:\n\n```javascript\nmodule.exports = {\n ruleName1: {\n    regex: 'invalidRegex1',\n    files: {\n      ignore: 'ignoreFilesRegex1'\n    }\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n    files: {\n      ignore: 'ignoreFilesRegexN'\n    }\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  ruleName1: {\n    regex: 'invalidRegex1',\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n  }\n}\n```\n\nor with multiple only regex definition:\n\n```javascript\nmodule.exports = {\n    ruleName1: 'invalidRegex1',\n    ruleNameN: 'invalidRegexN'\n}\n```\n\nor using `json` files:\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegexCN\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n}\n```\n\nor\n\n```json\n{\n \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegex1\"\n    }\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegexN\"\n    }\n  }\n}\n```\n\nor\n\n```json\n{\n  \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n  }\n}\n```\n\nor\n\n```json\n{\n    \"ruleName1\": \"invalidRegex1\",\n    \"ruleNameN\": \"invalidRegexN\"\n}\n```\n\n> Different approaches can be defined, these are only a glance.\n> For more information on how to create a custom npm package check [Contributing packages to the registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry)\n\nThen use the custom package, here comes the \"trick\", must use eslintrc `js` files:\n\nSome project `.eslintrc.js`:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      \"regex/invalid\": [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ],\n```\n\nor using Named Regex Rules to mix error levels:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      'regex/invalidError': [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1\n        ]\n      ],\n      'regex/invalidWarn': [\n        'warn', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ]\n```\n\n#### String to Regular expression conversion\n\nInternally, each string from the array will be converted into a Regular Expression with `global` and `multiline` options, e.g.:\n\n`\"someRegex\"` will be transformed into `/someRegex/gm`\n\n> Remember that backslash needs to be double in strings of a json file, e.g. To get the following regex `/\\bhttp:/` define the following string `\"\\\\bhttp:\"`.\n\n#### Error report\n\nThe 'Short pattern definition' errors are reported with the following structure:\n\nGiven `someRegex`, the following message will be shown on error:\n\n```\nInvalid regular expression /someRegex/gm found\n```\n\nor\n\n```\nRequired regular expression /someRegex/gm not found in file\n```\n\nThe 'Detailed pattern definition' errors are reported with the following rules:\n\nA . If `message` is present then that **exact message is reported**.  \nB . If `id` is present then:\n\nGiven `\"id\": \"someRegexId\"`, the following message will be shown on error:\n\n```\nInvalid regular expression 'someRegexId' found\n```\n\nor\n\n```\nRequired regular expression 'someRegexId' not found in file\n```\n\nC . If neither `message` nor `id` is present then the 'Short pattern definition' error message is shown.\n\n> * `message` takes precedence over `id`.  \n> * Although `id` is a quick solution (and useful when creating and testing a rule), using `message` will give more information to the team about the issue.\n\n### `regex/invalid` vs `regex/required`\n\nBoth rule were design with *binary* approach:\n\n* `regex/invalid`: pattern **is not present** => any presence of the *specific* pattern in a file is invalid.\n* `regex/required`: pattern **is present** => only 1 presence of the *specific* pattern in a file is required.\n\nArray of patterns represent different logical operation for each rule:\n\n* `regex/invalid`: **OR** => the presence in a file of *any* of the patterns defined in the *array* is invalid.\n* `regex/required`: **AND** => the presence in file of *all* of the patterns defined in the *array* is required.\n\n### Examples\n\nCheck:\n\n* [invalid-regex Basic rule tests](tests/lib/rules/invalid-regex-rule.e2e-test.js)\n* [invalid-regex Detailed rule tests](tests/lib/rules/invalid-regex-detailed-rule.e2e-test.js)\n* [required-regex Basic rule tests](tests/lib/rules/required-regex-rule.e2e-test.js)\n* [required-regex Detailed rule tests](tests/lib/rules/required-regex-detailed-rule.e2e-test.js)\n* [The set of Regex Rules of `eslint-plugin-base-style-config`](https://github.com/gmullerb/base-style-config/tree/master/js#regex-rules)\n\n__________________\n\n## Prerequisites\n\n* [`\"eslint\": \">=4.0.0\"`](https://www.npmjs.com/package/eslint).\n\n__________________\n\n## Extending/Developing\n\n[Developing](js/readme/developing.md)\n\n## Contributing\n\n* **Use it**.\n* **Share it**.\n* [Give it a Star](https://github.com/gmullerb/eslint-plugin-regex).\n* [Propose changes or improvements](https://github.com/gmullerb/eslint-plugin-regex/issues).\n* [Report bugs](https://github.com/gmullerb/eslint-plugin-regex/issues).\n\n## Documentation\n\n* [`CHANGELOG.md`](CHANGELOG.md): contains the information about changes in each version, chronologically ordered ([Keep a Changelog](http://keepachangelog.com)).\n\n## License\n\n[MIT License](LICENSE.txt)\n\n__________________\n\n## Remember\n\n* Use code style verification tools => Encourages Best Practices, Efficiency, Readability and Learnability.\n* Code Review everything => Encourages Functional suitability, Performance Efficiency and Teamwork.\n* If viable, Start testing early => Encourages Reliability and Maintainability.\n\n## Additional words\n\nDon't forget:\n\n* **Love what you do**.\n* **Learn everyday**.\n* **Learn yourself**.\n* **Share your knowledge**.\n* **Think different!**.\n* **Learn from the past, dream on the future, live and enjoy the present to the max!**.\n* **Enjoy and Value the Quest** (It's where you learn and grow).\n\nAt life:\n\n* Let's act, not complain.\n* Be flexible.\n\nAt work:\n\n* Let's give solutions, not questions.\n* Aim to simplicity not intellectualism.\n",
      "readmeFilename": "README.md",
      "gitHead": "123b5697091422a4cbd5f81ff9e440cba4484cc7",
      "_id": "eslint-plugin-regex@1.9.0-alpha",
      "_nodeVersion": "16.14.0",
      "_npmVersion": "8.3.1",
      "dist": {
        "integrity": "sha512-7/72R9p7cpRqRrsUHBVLEps90/MG4ae5vSTrPJCn2xj1fDhF8vvSBLEiUT8IkrDYb6emLb3qY6IgT4oH63+q5Q==",
        "shasum": "2994b13153cbe3f02647e2fe6a56bc8c456151e5",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.9.0-alpha.tgz",
        "fileCount": 13,
        "unpackedSize": 122802,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLlUjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhyA//e79AhIeioEHhMLrdSdhmRshczF4ddpuOOLIP6gqxahIXFScp\r\n/gXQHeSM29SiquRoZQ6Bkd9ug9ewgcwLODs0wDdnsUntmPeDTHcWD+pxvjuK\r\njYlxmZym02N0IDQX3gw3xyPgUEwzm7YemwNNZhujr0Y1OomixbDYK0skjB9C\r\nhd5p3I2zOwzd4647w/qlzGe0I7UTPdW2DowasTmDe3Vjsj1POZkwxt5edeZ9\r\n78TEhp4R4p5O3V52J1k0DYVbO1tuaX2rDPY1Hs4rETfotNzvlITdCiMhUDQW\r\nRHU2lDzRF89cbx/q/U8tYaLRkBWm8J7VwHZOjOKJ23tf+TE+XuIX5HkqCjzp\r\ndeCnCHqoqEMeducGLS8d1O0Y7zRvcHHOMeSS/1nqBMT6opbHUzej2XllqAGb\r\nQj7RbvTEvqIRJ1goQSCs6khL6HWjIT12AELu+WJN47Im3jrLABTxEIiVgApW\r\npWIe9OfnYfKrqtJfr8GFgchGtcFxKHAmBZ/8XK8yRR0PBBQMk0nTi10MNc6c\r\nFiKl5n8Fn8g9Cj9Sfps6wx8Cq1wGYmeEWSq1AcIaH0MwWiHgKiJM76amCG5o\r\ni/PfqgBsaFsoBL18NTHllN1kzzEEuEhu7rZ02rA5NYy6YBVEWKzDeTW/gXCv\r\nwayOUPSdiiwG925PZDTPsrRLkn6tQ3PaeFI=\r\n=zkPi\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDv/8um0lUE4wfUTY0Q+ahDxXgEh2i531wNpkShPp59kQIhAOx0dVhVmc9FBDkJR15/aSIunGGftM/0RHBiySyU6SW2"
          }
        ]
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.9.0-alpha_1647203619150_0.9223933853551285"
      },
      "_hasShrinkwrap": false
    },
    "1.9.0-beta": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.9.0-beta",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://eslint-plugin-regex.github.io",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint-plugin-regex",
        "eslint",
        "regex-rule",
        "regex",
        "regexp",
        "eslint-regex",
        "eslint-rule",
        "eslint-regex-rule",
        "rule",
        "expression",
        "regular-expression",
        "eslint-regular-expression",
        "eslint-regular-expression-rule",
        "eslintrule",
        "regular-expression-rule",
        "eslintplugin",
        "eslint-plugin",
        "plugin",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "syntax",
        "lint",
        "linter",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && eslint --config .eslintrc-any.json \"**/[\\.a-zA-Z]*.+(js|jsx|ts|tsx|json|yml|xml|sh|txt|md|svg|properties|gradle|java|cpp|c|html|css|groovy)\" \"**/.+(|gitignore|npmignore)\" --no-eslintrc --ignore-pattern \"build\"",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/tests.js && node tests/lib/rules/e2e-tests.js ",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "engines": {
        "node": ">=6.0.0"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "any-eslint-parser": "^1.0.1",
        "eslint": "^8.12.0",
        "eslint-plugin-base-style-config": "^2.8.1",
        "eslint-plugin-import": "^2.25.4",
        "jasmine": "^4.0.2",
        "nyc": "^15.1.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "readme": "<p align=\"center\">\n  <br/>\n  <a href=\"https://eslint-plugin-regex.github.io/\"><img src=\"https://assets.gitlab-static.net/uploads/-/system/project/avatar/16770425/eslint-plugin-regex.png\" alt=\" \"/></a>\n</p>\n\n<h1 align=\"center\">ESLint rules using Regular Expressions</h1>\n\n[![eslint-plugin-regex](https://badgen.net/badge/homepage/eslint-plugin-regex/blue)](https://eslint-plugin-regex.github.io/)\n[![eslint-plugin-regex](https://badgen.net/badge/npm%20pack/eslint-plugin-regex/blue)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![ ](https://badgen.net/npm/v/eslint-plugin-regex)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE.txt)\n[![ ](https://gitlab.com/gmullerb/eslint-plugin-regex/badges/master/coverage.svg)](https://gmullerb.gitlab.io/eslint-plugin-regex/coverage/index.html)\n[![Github repo](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/gmullerb/eslint-plugin-regex)\n[![Gitlab repo](https://badgen.net/badge/icon/gitlab?icon=gitlab&label)](https://gitlab.com/gmullerb/eslint-plugin-regex)\n\n__________________\n\n## Quick Start\n\n1 . Add dependencies:\n\n`package.json`:\n\n```json\n  \"engines\" : {\n    \"node\" : \">=6.0.0\"\n  },\n  \"devDependencies\": {\n    \"eslint\": \">=4.0.0\",\n    \"eslint-plugin-regex\": \"1.9.0\",\n```\n\n2 . Configure eslint:\n\nShort configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ],\n      \"ignoreFilesRegex\"\n    ]\n  }\n}\n```\n\nFiles will be checked for the absence of `invalidRegex1` and `invalidRegexN`, and for the presence of `requiredRegex1` and `requiredRegexN`, and files with name matching `ignoreFilesRegex` will not be checked.\n\nDetailed configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [{\n          \"regex\": \"invalidRegex1\",\n          \"replacement\": \"newValue\"\n        }, {\n          \"id\": \"regexIdN\",\n          \"message\": \"errorMessageN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [{\n          \"id\": \"regexId1\",\n          \"regex\": \"requiredRegex1\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        }, {\n          \"regex\": \"requiredRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexA\",\n            \"inspect\": \"inspectFilesRegexZ\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\nFiles will be checked for:\n\n* The absence of `invalidRegex1` but if found it will be replaced with `newValue`.\n* The absence of `invalidRegexN` only in files with name not matching `ignoreFilesRegexN`, but if found `errorMessageN` will be shown.\n* The presence of `requiredRegex1` only in files with name matching `inspectFilesRegex1`, but if not found `errorMessage1` will be shown.\n* The presence of `requiredRegexN` only in files with name matching `inspectFilesRegexA` and not matching `ignoreFilesRegexZ`.\n\n__________________\n\n## Goals\n\nThe idea is to allow the creation of different eslint rules based on Regular Expressions in order to have some \"freedom\" to create quick ESLint custom rules.\n\n## Rules\n\nName                                                  | Fixable | Description\n----------------------------------------------------- | ------- | -----------\n[`regex/invalid`](docs/rules/invalid-regex-rule.md)   | Yes     | checks that specified patterns are not found\n[`regex/required`](docs/rules/required-regex-rule.md) | No      | checks that specified patterns are found\n\nEach rule is a set of patterns.\n\n![Rules](readme/rules.svg)\n\n### `regex/invalid`\n\nThis rule checks that specified patterns are not found in files, i.e. **Invalid patterns**.\n\nExample of **incorrect** code for this rule:\n\n```js\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nExample of **correct** code for this rule:\n\n```js\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \\'My Friend\\''\n```\n\nWhen the pattern is found, the error message will reflect the exact location, e.g.:\n\n```bash\n 34:25  error  Invalid regular expression /invalidRegex1/gm found  regex/invalid\n```\n\n### `regex/required`\n\nThis rule looks for specific patterns that must be present in each file, i.e. **Required patterns**.\n\nExample of **incorrect** code for this rule:\n\n```js\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nExample of **correct** code for this rule:\n\n```js\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\n// Copyright My Friend\nconst text = 'Hello \"My Friend\"'\n```\n\n### Options\n\nBoth rule has two options:\n\n* **array** of patterns definitions to analyze. [REQUIRED]\n  * Each pattern definition can be 'Short' or 'Detailed'.\n* a **string** representing the regular expression for ignoring files for all patterns. [OPTIONAL]\n  * Slashes (`/`) are not required in the string, e.g. To get the following regex `/.*test\\.js/` define the following string `\".*test\\.js\"` when using `.eslintrc.js` or `\".*test\\\\.js\"` when using `.eslintrc.json` (backslash needs to de double in a json file).\n\n```json\n[\n  \"error\",\n  [\n    \"regex1\",\n    \"regexN\"\n  ],\n  \"ignoreFilesRegex\"\n]\n```\n\n#### Short pattern definition\n\nIt is specified by just a regular expression `string`, i.e. `\"regex\"`\n\n```json\n{\n  \"regex/invalid\": [\n    \"error\",\n    [\n      \"invalidRegex1\",\n      \"invalidRegexN\"\n    ]\n  ],\n  \"regex/required\": [\n    \"error\",\n    [\n      \"requiredRegex1\",\n      \"requiredRegexN\"\n    ]\n  ]\n}\n```\n\n> * Slashes (`/`) are not required in the string, e.g. To get the following regex `/\\bhttp:/`:\n>   * when using `.eslintrc.js`, define the following string `\"\\bhttp:\"`, or\n>   * when using `.eslintrc.json`, define `\"\\\\bhttp:\"` (backslash needs to be double in a json file)\n\n#### Detailed pattern definition\n\nIt is specified by an `object`, with the following fields:\n\n* `regex`: A **required** `string` representing the **Regular expression to look for**.\n* `replacement` [1]:\n  * An optional `string` used to replace the **invalid** found pattern, or\n  * An optional `object` that establish how the **invalid** found pattern will be replaced:\n    * `function`: used to replace the **invalid** found pattern.\n      * It will receive 3 parameters: `text`, `captured` and `$`, that can be used as desired.\n      * It must return a `string` value, if not, return value will be ignored.\n      * Its definition must be only the body of the function.\n      * [More Information](#definition-of-the-function-used-to-replace-invalid-found-pattern).\n* `id`: An optional `string` representing the **Pattern Id**.\n* `message`: An optional `string` specifying the **Message to be shown when an error happens** (invalid `regex` is found or required `regex` is not found).\n* `files`: An optional `object` specifying which files to analyze:\n  * `ignore`: A `string` representing **Regular expression of the files to be ignored** when validating this specific pattern.\n  * `inspect`:  A `string` representing **Regular expression of the files to be inspected** when validating this specific pattern.\n\n```json\n{\n  \"id\": \"regexId\",\n  \"regex\": \"regex\",\n  \"message\": \"errorMessage\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegex\",\n    \"inspect\": \"inspectFilesRegex\"\n  }\n}\n```\n\n> * `regex` is the **only** Required field.\n> * Slashes (`/`) are not required in the string, e.g. To get the following regex `/\\bhttp:/`:\n>   * when using `.eslintrc.js`, define the following string `\"\\bhttp:\"`, or\n>   * when using `.eslintrc.json`, define `\"\\\\bhttp:\"` (backslash needs to be double in a json file).\n> * When `ignore` and `inspect` are present, `ignore` takes precedence.\n> * Global ignore file pattern, takes precedence over `files` patterns.\n\n> [1] In order to fix issues `eslint` must be run with `--fix` option.\n\n##### Definition of the Function used to replace the *invalid* found pattern\n\nDefinition of the function must be done as a `string` in 1 line, and the following rules apply:\n\n* It must return a `string` value, if not, return value will be ignored, i.e. it will silently fail.\n* Its definition must be **only the body of the function**.\n  * For \"simple\" functions where the `return` is found at the beginning of the body of the function and the **exact** word *return* is not present, `return` can be omitted.\n* If the function has invalid Javascript code, the function will be ignored, i.e. it will silently fail.\n\nFunction will receive 3 parameters, to be used as desired:\n\n* `text`: a `string` with the value of the invalid text found.\n* `captured`: an `array` of strings with the values of the captured groups for the regex.\n* `$`: an `array` of strings, with the value of the invalid text found plus the values of the captured groups for the regex.\n  * `$[0]` = `text`: a `string` with the value of the invalid text found.\n  * `$[1..]` = `captured`: an `array` of strings with the values of the captured groups for the regex.\n    * `$[1]` = `captured[0]` and so on.\n  * It allows smaller definitions.\n\n**e.g. Using parameter `text`**\n\n`\"return text.trim()\"` => only the body of the function + returns a `string` value based on `text`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return text.trim()\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[0].trim()\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```js\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```js\nconst exception = \"error19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"text.trim()\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[0].trim()\"\n  }\n}\n```\n\n**e.g. Using parameter `captured`**\n\n`\"return captured[0]\"` => only the body of the function + returns a `string` value based on `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return captured[0]\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[1]\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```js\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```js\nconst exception = \"19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"captured[0]\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[1]\"\n  }\n}\n```\n\n**e.g. Using parameters `text` and `captured`**\n\n`\"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"` => only the body of the function + returns a `string` value based on `text` and `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return $[0] + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return `${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```js\nconst sum = \"4+5\"\n```\n\nwhen linting with fix, the result will be:\n\n```js\nconst sum = \"4+5 = 4 + 5 = 9\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"`${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\n**e.g. `return` required**\n\ne.g. `const result = text === 'superb' ? 'Superb' : text; return result` => only the body of the function + returns a `string` value based on `text`.\n\nSince the `return` is not found at the beginning of the body of the function, `return` cannot be omitted, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"const result = text === 'superb' ? 'Superb' : text; return result\"\n  }\n}\n```\n\n> Some cases may use Comma operator, e.g. `\"function\": \"result = text === 'superb' ? 'Superb' : text, result\"`\n\ne.g. `return text === 'return' ? 'Return' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the *exact* word *return* is present, this will **required** `return`, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"return text === 'return' ? 'Return' : text\"\n  }\n}\n```\n\nFollowing case does not required `return`:\n\ne.g. `return text === 'Return' ? 'RETURN' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the **exact** word *return* is not present, this will allow the following rule definition to be:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"text === 'Return' ? 'RETURN' : text\"\n  }\n}\n```\n\n###### Debugging of the Replacement Function for *invalid* found pattern\n\n* It is possible to add `console` statements to print some information in the Replacement Function.\n\n```json\n{\n      regex: \"\\\\serror(\\\\w*)\\\\s\",\n      replacement: {\n        function: \"const extract = captured[0]; console.log(extract); return extract\"\n      }\n    }\n```\n\n### Mixing\n\n#### Mixing pattern types\n\nIt is possible to use both type of definitions, 'Short pattern definition' with 'Detailed pattern definition', in the array of patterns.\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegex2\",\n        {\n          \"regex\": \"invalidRegex3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\n* `invalidRegex1` and `invalidRegex2` are 'Short pattern definition'.\n* `invalidRegex3` and `invalidRegexN` are 'Detailed pattern definition'.\n\n#### Mixing rules\n\n##### Mixing error levels\n\nRules names have synonyms:\n\n`regex/invalid` = `regex/invalid-warn` = `regex/invalid-error` = `regex/another-invalid` = `regex/other-invalid`.\n\n`regex/required` = `regex/required-warn` = `regex/required-error` = `regex/another-required` = `regex/other-required`.\n\n* Synonyms are just that, synonyms, do not imply any level of error, but some are provided to increase readability, e.g. `regex/invalid-warn` does not imply `warn` level.\n* This will allow to mix different error levels.\n\nIt is possible to set different error level: `error`, `warn` and `off`. For this use a synonym for the regex rule name:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\",\n      [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalid-error\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n    \"regex/invalid-warn\": [\n      \"warn\", [\n        \"invalidRegexB1\",\n        \"invalidRegexB2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ],\n    ],\n    \"regex/other-invalid\": [\n      \"off\", [\n        \"invalidRegexC1\",\n        \"invalidRegexC2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexC1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexCN\"\n          }\n        }\n      ],\n    ],\n    \"regex/required-warn\": [\n      \"warn\",\n      [\n        \"requiredRegexA1\",\n        \"requiredRegexAN\"\n      ]\n    ]\n  }\n}\n```\n\n* Rules with invalid patterns and `error` level: `regex/invalid` and `regex/invalid-error`.\n* Rules with invalid patterns and `off` level: `regex/other-invalid`.\n* Rules with required patterns and `error` level: `regex/required`.\n* Rules with required patterns and `warn` level: `regex/required-warn`.\n\n##### Custom set of regex rules\n\nCreating and Using a Custom Set of regex rules **requires using `js` files**.\n\n###### Named Regex Rules approach\n\nRule name can be anything that includes `invalid` or `required`, ignoring letter case, and with the restrictions of predefined names (`invalid`, `invalid-warn`, `invalid-error`, `another-invalid`, `other-invalid`, `required`, `required-warn`, `required-error`, `another-required`, `other-required`), this will allow to mix different error levels or create custom regex rules package.\n\n* `regex/*invalid*`.\n* `regex/*required*`.\n\n![Mixed Rules](readme/mixed-rules.svg)\n\n**`addRegexRuleName` must be used to add the custom regex rule name to the set of `eslint-plugin-regex` rules.**\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('*invalid*')\naddRegexRuleName('*required*')\n```\n\n***Local Custom Regex rules***\n\nCreate a local `.eslintrc.js`:\n\n1 . Add rule name using `addRegexRuleName`.  \n2 . Define `eslint-plugin-regex` custom regex rule.\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('invalid-custom-890')\n\nmodule.exports = {\n  plugins: [ 'regex' ],\n  rules: {\n    'regex/invalid-custom-890': [\n      'error', [\n        {\n          regex: 'invalidRegexBN',\n          files: {\n            ignore: 'ignoreFilesRegexCN'\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\n***Custom Regex rules package***\n\nCreate a custom ESLint package and add the custom regex rules with a **\"unique\"** name for each regex rule defined in the package, so it can be use with other package of regex rules or local regex rules.\n\nCustom package `index.js`:\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('invalid-custom-890')\n\nmodule.exports = {\n  configs: {\n    'someRegexRule1': {\n      plugins: [ 'regex' ],\n      rules: {\n        'regex/invalid-custom-890': [\n          'error', [\n            {\n              regex: 'invalidRegexBN',\n              files: {\n                ignore: 'ignoreFilesRegexCN'\n              }\n            }\n          ]\n        ]\n      }\n    }\n  }\n}\n```\n\n* This custom package defines 1 rule named `regex/invalid-custom-890` with only 1 invalid pattern with `error` as a default error level.\n\n> For more information on how to create a custom ESLint package check [ESLint official documentation: Working with Plugins](https://eslint.org/docs/developer-guide/working-with-plugins)\n\nthen use it,\n\nSome project `.eslintrc.json`:\n\n```json\n  { \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\",\n```\n\nto change the default error level set by the package:\n\n```json\n  {\n    \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n    \"rules\": {\n      \"regex/invalid-custom-890\": \"warn\"\n\n```\n\nmixing with other regex rules:\n\n```json\n{\n  \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n  \"rules\": {\n    \"regex/invalid-custom-890\": \"warn\",\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalid-error\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n```\n\n###### Import/Export approach\n\nCreate a custom npm package using either with `json` or `js` files and add the custom regex rules.\n\nCustom package `index.js`:\n\nwith complete rule definition:\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n  files: {\n    ignore: 'ignoreFilesRegexCN'\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n}\n```\n\nor with only regex definition:\n\n```javascript\nmodule.exports = 'invalidRegexBN'\n```\n\nor with multiple complete rule definition:\n\n```javascript\nmodule.exports = {\n ruleName1: {\n    regex: 'invalidRegex1',\n    files: {\n      ignore: 'ignoreFilesRegex1'\n    }\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n    files: {\n      ignore: 'ignoreFilesRegexN'\n    }\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  ruleName1: {\n    regex: 'invalidRegex1',\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n  }\n}\n```\n\nor with multiple only regex definition:\n\n```javascript\nmodule.exports = {\n    ruleName1: 'invalidRegex1',\n    ruleNameN: 'invalidRegexN'\n}\n```\n\nor using `json` files:\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegexCN\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n}\n```\n\nor\n\n```json\n{\n \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegex1\"\n    }\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegexN\"\n    }\n  }\n}\n```\n\nor\n\n```json\n{\n  \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n  }\n}\n```\n\nor\n\n```json\n{\n    \"ruleName1\": \"invalidRegex1\",\n    \"ruleNameN\": \"invalidRegexN\"\n}\n```\n\n> Different approaches can be defined, these are only a glance.\n> For more information on how to create a custom npm package check [Contributing packages to the registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry)\n\nThen use the custom package:\n\nSome project `.eslintrc.js`:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      \"regex/invalid\": [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ],\n```\n\nor using synonyms to mix error levels:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      'regex/invalid-error': [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1\n        ]\n      ],\n      'regex/invalid-warn': [\n        'warn', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ]\n```\n\n#### String to Regular expression conversion\n\nInternally, each string from the array will be converted into a Regular Expression with `global` and `multiline` options, e.g.:\n\n`\"someRegex\"` will be transformed into `/someRegex/gm`\n\n> Remember that backslash needs to be double in strings of a json file, e.g. To get the following regex `/\\bhttp:/` define the following string `\"\\\\bhttp:\"`.\n\n#### Error report\n\nThe 'Short pattern definition' errors are reported with the following structure:\n\nGiven `someRegex`, the following message will be shown on error:\n\n```\nInvalid regular expression /someRegex/gm found\n```\n\nor\n\n```\nRequired regular expression /someRegex/gm not found in file\n```\n\nThe 'Detailed pattern definition' errors are reported with the following rules:\n\nA . If `message` is present then that **exact message is reported**.  \nB . If `id` is present then:\n\nGiven `\"id\": \"someRegexId\"`, the following message will be shown on error:\n\n```\nInvalid regular expression 'someRegexId' found\n```\n\nor\n\n```\nRequired regular expression 'someRegexId' not found in file\n```\n\nC . If neither `message` nor `id` is present then the 'Short pattern definition' error message is shown.\n\n> * `message` takes precedence over `id`.  \n> * Although `id` is a quick solution (and useful when creating and testing a rule), using `message` will give more information to the team about the issue.\n\n### `regex/invalid` vs `regex/required`\n\nBoth rule were design with *binary* approach:\n\n* `regex/invalid`: pattern **is not present** => any presence of the *specific* pattern in a file is invalid.\n* `regex/required`: pattern **is present** => only 1 presence of the *specific* pattern in a file is required.\n\nArray of patterns represent different logical operation for each rule:\n\n* `regex/invalid`: **OR** => the presence in a file of *any* of the patterns defined in the *array* is invalid.\n* `regex/required`: **AND** => the presence in file of *all* of the patterns defined in the *array* is required.\n\n### Examples\n\nCheck:\n\n* [invalid-regex Basic rule tests](tests/lib/rules/invalid-regex-rule.e2e-test.js)\n* [invalid-regex Detailed rule tests](tests/lib/rules/invalid-regex-detailed-rule.e2e-test.js)\n* [required-regex Basic rule tests](tests/lib/rules/required-regex-rule.e2e-test.js)\n* [required-regex Detailed rule tests](tests/lib/rules/required-regex-detailed-rule.e2e-test.js)\n* [The set of Regex Rules of `eslint-plugin-base-style-config`](https://github.com/gmullerb/base-style-config/tree/master/js#regex-rules)\n\n__________________\n\n## Prerequisites\n\n* [`\"eslint\": \">=4.0.0\"`](https://www.npmjs.com/package/eslint).\n\n__________________\n\n## Extending/Developing\n\n[Developing](js/readme/developing.md)\n\n## Contributing\n\n* **Use it**.\n* **Share it**.\n* [Give it a Star](https://github.com/gmullerb/eslint-plugin-regex).\n* [Propose changes or improvements](https://github.com/gmullerb/eslint-plugin-regex/issues).\n* [Report bugs](https://github.com/gmullerb/eslint-plugin-regex/issues).\n\n## Documentation\n\n* [`CHANGELOG.md`](CHANGELOG.md): contains the information about changes in each version, chronologically ordered ([Keep a Changelog](http://keepachangelog.com)).\n\n## License\n\n[MIT License](LICENSE.txt)\n\n__________________\n\n## Remember\n\n* Use code style verification tools => Encourages Best Practices, Efficiency, Readability and Learnability.\n* Code Review everything => Encourages Functional suitability, Performance Efficiency and Teamwork.\n* If viable, Start testing early => Encourages Reliability and Maintainability.\n\n## Additional words\n\nDon't forget:\n\n* **Love what you do**.\n* **Learn everyday**.\n* **Learn yourself**.\n* **Share your knowledge**.\n* **Think different!**.\n* **Learn from the past, dream on the future, live and enjoy the present to the max!**.\n* **Enjoy and Value the Quest** (It's where you learn and grow).\n\nAt life:\n\n* Let's act, not complain.\n* Be flexible.\n\nAt work:\n\n* Let's give solutions, not questions.\n* Aim to simplicity not intellectualism.\n",
      "readmeFilename": "README.md",
      "gitHead": "2f9d1ae8a8a18b946af4771510bb66001a195407",
      "_id": "eslint-plugin-regex@1.9.0-beta",
      "_nodeVersion": "16.14.0",
      "_npmVersion": "8.3.1",
      "dist": {
        "integrity": "sha512-O6purjeeBahHtW9x6flYrY2oGo9G038t0lIUZO1/0M/Tkq12WWlvKKV5OqWtuyaiJyxN5qFDLLkvlBGFHBUwDg==",
        "shasum": "c48a398110e62cd67880c777055f06e1e29e15ab",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.9.0-beta.tgz",
        "fileCount": 13,
        "unpackedSize": 125026,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQN3eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBUg//UhE6MEhLCOCZJ40o9ChGAp8mH58PCyocwv6q2Q8AZ03jkOfi\r\nXH4YGv5MfsAF7aR/lSi1BIP7kjDu61zHTg+rdDkQUKEQcPbEAUaz3WnEuhOD\r\n+7nxQPukKH0dvzoL+4TUVTiWsL9iTGy45YNuKscUNhM58ax3VxknYOrQNt6I\r\nO4xkzVkYEVSVBPv2DlqhPRHj6FEZ0hIbAmETgFdL/Ev0A4AE0E2o1bpDAPGS\r\nYpaJnKXjkuvYAnfDXTER5cA7qBtBpxq5jswli0TRFcB0xdU9s1IX7kWJHAYK\r\nJNd2B1rFCNh2/uSI+hqMFqKC8VfeyymqwCmd1GIWgF+J7dVqLR8T7pagfbHa\r\n4C5qqv5EbMxB3801VHq49R9P/ImJD+jzw14usEYe9ypYiRezv//4ifdJLM31\r\njQ5GvAAoEZ0YG9BPrY5EnkzAlwmmvv4Hg4Rkw+/rA+eWLNB6/wT9RT8Fohjj\r\nl0bmi83k+HGMnkoldNjRkO6tPN2gFQYVGt+aqLRIMvnQuRwwCQ2ZaUEbAZbm\r\n19B3kc90iHOdp9fipMWqAoy5gFT1n8NyYFieVWxlmhEAzjrR3E1eMpF2doef\r\nJJHljJSgDkqpGNuVQXyoF8cVm4TZZWmDQiwBiogTJV/WqSqE8Z1TIswh8snF\r\n72HQ5WjFb4/3HFaa1Wz2o9vAIhNSe0/Yd3E=\r\n=YEHD\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDwHp+gv8zBr+i/4pGHHR2e1UztY4vLkCqdcU6G0hw3ygIgHUuf+64Mtz9i49PBPdn5LrFj/H6CfxxbTnAS9c7WG4Y="
          }
        ]
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.9.0-beta_1648418269954_0.03370682888292764"
      },
      "_hasShrinkwrap": false
    },
    "1.9.0-chi": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.9.0-chi",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://eslint-plugin-regex.github.io",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint-plugin-regex",
        "eslint",
        "regex-rule",
        "regex",
        "regexp",
        "eslint-regex",
        "eslint-rule",
        "eslint-regex-rule",
        "rule",
        "expression",
        "regular-expression",
        "eslint-regular-expression",
        "eslint-regular-expression-rule",
        "eslintrule",
        "regular-expression-rule",
        "eslintplugin",
        "eslint-plugin",
        "plugin",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "syntax",
        "lint",
        "linter",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && eslint --config .eslintrc-any.json \"**/[\\.a-zA-Z]*.+(js|jsx|ts|tsx|json|yml|xml|sh|txt|md|svg|properties|gradle|java|cpp|c|html|css|groovy)\" \"**/.+(|gitignore|npmignore)\" --no-eslintrc --ignore-pattern \"build\"",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\"",
        "test.only": "node tests/tests.js && node tests/lib/rules/e2e-tests.js ",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "engines": {
        "node": ">=6.0.0"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "any-eslint-parser": "^1.0.1",
        "eslint": "^8.12.0",
        "eslint-plugin-base-style-config": "^2.8.1",
        "eslint-plugin-import": "^2.25.4",
        "jasmine": "^4.0.2",
        "nyc": "^15.1.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "readme": "<p align=\"center\">\n  <br/>\n  <a href=\"https://eslint-plugin-regex.github.io/\"><img src=\"https://assets.gitlab-static.net/uploads/-/system/project/avatar/16770425/eslint-plugin-regex.png\" alt=\" \"/></a>\n</p>\n\n<h1 align=\"center\">ESLint rules using Regular Expressions</h1>\n\n[![eslint-plugin-regex](https://badgen.net/badge/homepage/eslint-plugin-regex/blue)](https://eslint-plugin-regex.github.io/)\n[![eslint-plugin-regex](https://badgen.net/badge/npm%20pack/eslint-plugin-regex/blue)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![ ](https://badgen.net/npm/v/eslint-plugin-regex)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE.txt)\n[![ ](https://gitlab.com/gmullerb/eslint-plugin-regex/badges/master/coverage.svg)](https://gmullerb.gitlab.io/eslint-plugin-regex/coverage/index.html)\n[![Github repo](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/gmullerb/eslint-plugin-regex)\n[![Gitlab repo](https://badgen.net/badge/icon/gitlab?icon=gitlab&label)](https://gitlab.com/gmullerb/eslint-plugin-regex)\n\n__________________\n\n## Quick Start\n\n1 . Add dependencies:\n\n`package.json`:\n\n```json\n  \"engines\" : {\n    \"node\" : \">=6.0.0\"\n  },\n  \"devDependencies\": {\n    \"eslint\": \">=4.0.0\",\n    \"eslint-plugin-regex\": \"1.9.0\",\n```\n\n2 . Configure eslint:\n\nShort configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ],\n      \"ignoreFilesRegex\"\n    ]\n  }\n}\n```\n\nFiles will be checked for the absence of `invalidRegex1` and `invalidRegexN`, and for the presence of `requiredRegex1` and `requiredRegexN`, and files with name matching `ignoreFilesRegex` will not be checked.\n\nDetailed configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [{\n          \"regex\": \"invalidRegex1\",\n          \"replacement\": \"newValue\"\n        }, {\n          \"id\": \"regexIdN\",\n          \"message\": \"errorMessageN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [{\n          \"id\": \"regexId1\",\n          \"regex\": \"requiredRegex1\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        }, {\n          \"regex\": \"requiredRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexA\",\n            \"inspect\": \"inspectFilesRegexZ\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\nFiles will be checked for:\n\n* The absence of `invalidRegex1` but if found it will be replaced with `newValue`.\n* The absence of `invalidRegexN` only in files with name not matching `ignoreFilesRegexN`, but if found `errorMessageN` will be shown.\n* The presence of `requiredRegex1` only in files with name matching `inspectFilesRegex1`, but if not found `errorMessage1` will be shown.\n* The presence of `requiredRegexN` only in files with name matching `inspectFilesRegexA` and not matching `ignoreFilesRegexZ`.\n\n__________________\n\n## Goals\n\nThe idea is to allow the creation of different eslint rules based on Regular Expressions in order to have some \"freedom\" to create quick ESLint custom rules.\n\n## Rules\n\nName                                                  | Fixable | Description\n----------------------------------------------------- | ------- | -----------\n[`regex/invalid`](docs/rules/invalid-regex-rule.md)   | Yes     | checks that specified patterns are not found\n[`regex/required`](docs/rules/required-regex-rule.md) | No      | checks that specified patterns are found\n\nEach rule is a set of patterns.\n\n![Rules](readme/rules.svg)\n\n### 📏 `regex/invalid`\n\nThis rule checks that specified patterns are not found in files, i.e. **Invalid patterns**.\n\n✏ Example of **incorrect** code for this rule:\n\n```js\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nThe error message will reflect the exact location, e.g.:\n\n```bash\n/path/to/some.js\n 34:25  error  Invalid regular expression /\"/gm found  regex/invalid\n```\n\n✏ Example of **correct** code for this rule:\n\n```js\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \\'My Friend\\''\n```\n\n### 📏 `regex/required`\n\nThis rule looks for specific patterns that must be present in each file, i.e. **Required patterns**.\n\n✏ Example of **incorrect** code for this rule:\n\n```js\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nThe error message will point to the beginning of the file, e.g.:\n\n```sh\n/path/to/some.js\n 1:1  error  Required regular expression /^\\/\\/ Copyright My Friend/gm not found in file  regex/required\n```\n\n✏ Example of **correct** code for this rule:\n\n```js\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\n// Copyright My Friend\nconst text = 'Hello \"My Friend\"'\n```\n\n### Options\n\nBoth rule has two options:\n\n* **array** of patterns definitions to analyze. [REQUIRED]\n  * Each pattern definition can be 'Short' or 'Detailed'.\n* a **string** representing the regular expression for ignoring files for all patterns. [OPTIONAL]\n  * Slashes (`/`) are not required in the string, e.g. To get the following regex `/.*test\\.js/` define the following string `\".*test\\.js\"` when using `.eslintrc.js` or `\".*test\\\\.js\"` when using `.eslintrc.json` (backslash needs to de double in a json file).\n\n```json\n[\n  \"error\",\n  [\n    \"regex1\",\n    \"regexN\"\n  ],\n  \"ignoreFilesRegex\"\n]\n```\n\n#### Short pattern definition\n\nIt is specified by just a regular expression `string`, i.e. `\"regex\"`\n\n```json\n{\n  \"regex/invalid\": [\n    \"error\",\n    [\n      \"invalidRegex1\",\n      \"invalidRegexN\"\n    ]\n  ],\n  \"regex/required\": [\n    \"error\",\n    [\n      \"requiredRegex1\",\n      \"requiredRegexN\"\n    ]\n  ]\n}\n```\n\n> * Slashes (`/`) are not required in the string, e.g. To get the following regex `/\\bhttp:/`:\n>   * when using `.eslintrc.js`, define the following string `\"\\bhttp:\"`, or\n>   * when using `.eslintrc.json`, define `\"\\\\bhttp:\"` (backslash needs to be double in a json file)\n\n#### Detailed pattern definition\n\nIt is specified by an `object`, with the following fields:\n\n* `regex`: A **required** `string` for `regex/required` and `regex/invalid` representing the **Regular expression to look for**.\n* `replacement` for `regex/invalid` [1]:\n  * An optional `string` used to replace the **invalid** found pattern, or\n  * An optional `object` that establish how the **invalid** found pattern will be replaced:\n    * `function`: used to replace the **invalid** found pattern.\n      * It will receive 3 parameters: `text`, `captured` and `$`, that can be used as desired.\n      * It must return a `string` value, if not, return value will be ignored.\n      * Its definition must be only the body of the function.\n      * [More Information](#definition-of-the-function-used-to-replace-invalid-found-pattern).\n* `id`: An optional `string` representing the **Pattern Id**.\n* `message`: An optional `string` specifying the **Message to be shown when an error happens** (invalid `regex` is found or required `regex` is not found).\n* `files`: An optional `object` specifying which files to analyze:\n  * `ignore`: A `string` representing **Regular expression of the files to be ignored** when validating this specific pattern.\n  * `inspect`:  A `string` representing **Regular expression of the files to be inspected** when validating this specific pattern.\n\n```json\n{\n  \"id\": \"regexId\",\n  \"regex\": \"regex\",\n  \"message\": \"errorMessage\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegex\",\n    \"inspect\": \"inspectFilesRegex\"\n  }\n}\n```\n\n> * `regex` is the **only** Required field.\n> * Slashes (`/`) are not required in the string, e.g. To get the following regex `/\\bhttp:/`:\n>   * when using `.eslintrc.js`, define the following string `\"\\bhttp:\"`, or\n>   * when using `.eslintrc.json`, define `\"\\\\bhttp:\"` (backslash needs to be double in a json file).\n> * When `ignore` and `inspect` are present, `ignore` takes precedence.\n> * Global ignore file pattern, takes precedence over `files` patterns.\n\nUsing `message` is pretty useful since it will give a better understanding to the developer when an error happens:\n\ne.g. Given the following definition:\n\n```json\n{\n  \"regex\": \"someRegex\",\n  \"message\": \"The Useful Error MessagE\",\n}\n```\n\nthen shown error will be similar to:\n\n```sh\n/path/to/some.js\n 1:1  error  The Useful Error MessagE  regex/required\n```\n\nor\n\n```bash\n/path/to/some.js\n 34:25  error  The Useful Error MessagE  regex/invalid\n```\n\ninstead of\n\n```sh\n/path/to/some.js\n 1:1  error  Required regular expression /someRegex/gm not found in file  regex/required\n```\n\nor\n\n```bash\n/path/to/some.js\n 34:25  error  Invalid regular expression /someRegex/gm found  regex/invalid\n```\n\n> [1] In order to fix issues `eslint` must be run with `--fix` option.\n\n##### Definition of the Function used to replace the *invalid* found pattern\n\nDefinition of the function must be done as a `string` in 1 line, and the following rules apply:\n\n* It must return a `string` value, if not, return value will be ignored, i.e. it will silently fail.\n* Its definition must be **only the body of the function**.\n  * For \"simple\" functions where the `return` is found at the beginning of the body of the function and the **exact** word *return* is not present, `return` can be omitted.\n* If the function has invalid Javascript code, the function will be ignored, i.e. it will silently fail.\n\nFunction will receive 3 parameters, to be used as desired:\n\n* `text`: a `string` with the value of the invalid text found.\n* `captured`: an `array` of strings with the values of the captured groups for the regex.\n* `$`: an `array` of strings, with the value of the invalid text found plus the values of the captured groups for the regex.\n  * `$[0]` = `text`: a `string` with the value of the invalid text found.\n  * `$[1..]` = `captured`: an `array` of strings with the values of the captured groups for the regex.\n    * `$[1]` = `captured[0]` and so on.\n  * It allows smaller definitions.\n\n**e.g. Using parameter `text`**\n\n`\"return text.trim()\"` => only the body of the function + returns a `string` value based on `text`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return text.trim()\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[0].trim()\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```js\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```js\nconst exception = \"error19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"text.trim()\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[0].trim()\"\n  }\n}\n```\n\n**e.g. Using parameter `captured`**\n\n`\"return captured[0]\"` => only the body of the function + returns a `string` value based on `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return captured[0]\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[1]\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```js\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```js\nconst exception = \"19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"captured[0]\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[1]\"\n  }\n}\n```\n\n**e.g. Using parameters `text` and `captured`**\n\n`\"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"` => only the body of the function + returns a `string` value based on `text` and `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return $[0] + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return `${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```js\nconst sum = \"4+5\"\n```\n\nwhen linting with fix, the result will be:\n\n```js\nconst sum = \"4+5 = 4 + 5 = 9\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"`${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\n**e.g. `return` required**\n\ne.g. `const result = text === 'superb' ? 'Superb' : text; return result` => only the body of the function + returns a `string` value based on `text`.\n\nSince the `return` is not found at the beginning of the body of the function, `return` cannot be omitted, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"const result = text === 'superb' ? 'Superb' : text; return result\"\n  }\n}\n```\n\n> Some cases may use Comma operator, e.g. `\"function\": \"result = text === 'superb' ? 'Superb' : text, result\"`\n\ne.g. `return text === 'return' ? 'Return' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the *exact* word *return* is present, this will **required** `return`, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"return text === 'return' ? 'Return' : text\"\n  }\n}\n```\n\nFollowing case does not required `return`:\n\ne.g. `return text === 'Return' ? 'RETURN' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the **exact** word *return* is not present, this will allow the following rule definition to be:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"text === 'Return' ? 'RETURN' : text\"\n  }\n}\n```\n\n###### Debugging of the Replacement Function for *invalid* found pattern\n\n* It is possible to add `console` statements to print some information in the Replacement Function.\n\n```json\n{\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"const extract = captured[0]; console.log(extract); return extract\"\n  }\n}\n```\n\n### Mixing\n\n#### Mixing pattern types\n\nIt is possible to use both type of definitions, 'Short pattern definition' with 'Detailed pattern definition', in the array of patterns.\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegex2\",\n        {\n          \"regex\": \"invalidRegex3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\n* `invalidRegex1` and `invalidRegex2` are 'Short pattern definition'.\n* `invalidRegex3` and `invalidRegexN` are 'Detailed pattern definition'.\n\n#### Mixing rules\n\n##### Mixing error levels\n\nRules names have synonyms:\n\n`regex/invalid` = `regex/invalid-warn` = `regex/invalid-error` = `regex/another-invalid` = `regex/other-invalid`.\n\n`regex/required` = `regex/required-warn` = `regex/required-error` = `regex/another-required` = `regex/other-required`.\n\n* Synonyms are just that, synonyms, do not imply any level of error, but some are provided to increase readability, e.g. `regex/invalid-warn` does not imply `warn` level.\n* This will allow to mix different error levels.\n\nIt is possible to set different error level: `error`, `warn` and `off`. For this use a synonym for the regex rule name:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\",\n      [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalid-error\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n    \"regex/invalid-warn\": [\n      \"warn\", [\n        \"invalidRegexB1\",\n        \"invalidRegexB2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ],\n    ],\n    \"regex/other-invalid\": [\n      \"off\", [\n        \"invalidRegexC1\",\n        \"invalidRegexC2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexC1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexCN\"\n          }\n        }\n      ],\n    ],\n    \"regex/required-warn\": [\n      \"warn\",\n      [\n        \"requiredRegexA1\",\n        \"requiredRegexAN\"\n      ]\n    ]\n  }\n}\n```\n\n* Rules with invalid patterns and `error` level: `regex/invalid` and `regex/invalid-error`.\n* Rules with invalid patterns and `off` level: `regex/other-invalid`.\n* Rules with required patterns and `error` level: `regex/required`.\n* Rules with required patterns and `warn` level: `regex/required-warn`.\n\n##### Custom set of regex rules\n\nCreating and Using a Custom Set of regex rules **requires using `js` files**.\n\n###### Named Regex Rules approach\n\nRule name can be anything that includes `invalid`, `disuse`, `avoid`, `required` or `use`, ignoring letter case, and with the restrictions of predefined names (`invalid`, `disuse`, `avoid`, `invalid-warn`, `invalid-error`, `another-invalid`, `other-invalid`, `required`, `use`, `required-warn`, `required-error`, `another-required` and `other-required`), this will allow to mix different error levels or create custom regex rules package.\n\n* `regex/*invalid*`, `regex/*disuse*`  or `regex/*avoid*` for invalid patterns.\n* `regex/*required*` or `regex/*use*` for required patterns.\n\n![Mixed Rules](readme/mixed-rules.svg)\n\n> In the name `invalid`, `disuse` and `avoid` will take precedence over `required` and `use`, e.g. If custom regex rule name has both `avoid` and `use` in the name, then the respective regex patterns will be consider invalid patterns.\n\n**`addRegexRuleName` must be used to add the custom regex rule name to the set of `eslint-plugin-regex` rules.**\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('*invalid*')\naddRegexRuleName('*required*')\n```\n\nAn advantage of using Named Regex Rules is that shown error will be even more specific, e.g.:\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('required-custom-896')\n```\n\nthen, if an error happens, the output will be something similar to:\n\n```sh\n/path/to/some.js\n  1:1  error  Required regular expression /requiredRegex/gm not found in file  regex/required-custom-896\n```\n\ninstead of\n\n```sh\n/path/to/some.js\n  1:1  error  Required regular expression /requiredRegex/gm not found in file  regex/required\n```\n\n***Local Custom Regex rules***\n\nCreate a local `.eslintrc.js`:\n\n1 . Add rule name using `addRegexRuleName`.  \n2 . Define `eslint-plugin-regex` custom regex rule.\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('invalid-custom-890')\n\nmodule.exports = {\n  plugins: [ 'regex' ],\n  rules: {\n    'regex/invalid-custom-890': [\n      'error', [\n        {\n          regex: 'invalidRegexBN',\n          files: {\n            ignore: 'ignoreFilesRegexCN'\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\n***Custom Regex rules package***\n\nCreate a custom ESLint package and add the custom regex rules with a **\"unique\"** name for each regex rule defined in the package, so it can be use with other package of regex rules or local regex rules.\n\nCustom package `index.js`:\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('invalid-custom-890')\n\nmodule.exports = {\n  configs: {\n    'someRegexRule1': {\n      plugins: [ 'regex' ],\n      rules: {\n        'regex/invalid-custom-890': [\n          'error', [\n            {\n              regex: 'invalidRegexBN',\n              files: {\n                ignore: 'ignoreFilesRegexCN'\n              }\n            }\n          ]\n        ]\n      }\n    }\n  }\n}\n```\n\n* This custom package defines 1 rule named `regex/invalid-custom-890` with only 1 invalid pattern with `error` as a default error level.\n\n> For more information on how to create a custom ESLint package check [ESLint official documentation: Working with Plugins](https://eslint.org/docs/developer-guide/working-with-plugins)\n\nthen use it,\n\nSome project `.eslintrc.json`:\n\n```json\n  { \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\",\n```\n\nto change the default error level set by the package:\n\n```json\n  {\n    \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n    \"rules\": {\n      \"regex/invalid-custom-890\": \"warn\"\n\n```\n\nmixing with other regex rules:\n\n```json\n{\n  \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n  \"rules\": {\n    \"regex/invalid-custom-890\": \"warn\",\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalid-error\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n```\n\n###### Import/Export approach\n\nCreate a custom npm package using either with `json` or `js` files and add the custom regex rules.\n\nCustom package `index.js`:\n\nwith complete rule definition:\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n  files: {\n    ignore: 'ignoreFilesRegexCN'\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n}\n```\n\nor with only regex definition:\n\n```javascript\nmodule.exports = 'invalidRegexBN'\n```\n\nor with multiple complete rule definition:\n\n```javascript\nmodule.exports = {\n ruleName1: {\n    regex: 'invalidRegex1',\n    files: {\n      ignore: 'ignoreFilesRegex1'\n    }\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n    files: {\n      ignore: 'ignoreFilesRegexN'\n    }\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  ruleName1: {\n    regex: 'invalidRegex1',\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n  }\n}\n```\n\nor with multiple only regex definition:\n\n```javascript\nmodule.exports = {\n    ruleName1: 'invalidRegex1',\n    ruleNameN: 'invalidRegexN'\n}\n```\n\nor using `json` files:\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegexCN\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n}\n```\n\nor\n\n```json\n{\n \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegex1\"\n    }\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegexN\"\n    }\n  }\n}\n```\n\nor\n\n```json\n{\n  \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n  }\n}\n```\n\nor\n\n```json\n{\n    \"ruleName1\": \"invalidRegex1\",\n    \"ruleNameN\": \"invalidRegexN\"\n}\n```\n\n> Different approaches can be defined, these are only a glance.\n> For more information on how to create a custom npm package check [Contributing packages to the registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry)\n\nThen use the custom package:\n\nSome project `.eslintrc.js`:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      \"regex/invalid\": [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ],\n```\n\nor using synonyms to mix error levels:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      'regex/invalid-error': [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1\n        ]\n      ],\n      'regex/invalid-warn': [\n        'warn', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ]\n```\n\n#### String to Regular expression conversion\n\nInternally, each string from the array will be converted into a Regular Expression with `global` and `multiline` options, e.g.:\n\n`\"someRegex\"` will be transformed into `/someRegex/gm`\n\n> Remember that backslash needs to be double in strings of a json file, e.g. To get the following regex `/\\bhttp:/` define the following string `\"\\\\bhttp:\"`.\n\n#### Error report\n\nThe 'Short pattern definition' errors are reported with the following structure:\n\nGiven `someRegex`, the following message will be shown on error:\n\n```\nInvalid regular expression /someRegex/gm found\n```\n\nor\n\n```\nRequired regular expression /someRegex/gm not found in file\n```\n\nThe 'Detailed pattern definition' errors are reported with the following rules:\n\nA . If `message` is present then that **exact message is reported**.  \nB . If `id` is present then:\n\nGiven `\"id\": \"someRegexId\"`, the following message will be shown on error:\n\n```\nInvalid regular expression 'someRegexId' found\n```\n\nor\n\n```\nRequired regular expression 'someRegexId' not found in file\n```\n\nC . If neither `message` nor `id` is present then the 'Short pattern definition' error message is shown.\n\n> * `message` takes precedence over `id`.  \n> * Although `id` is a quick solution (and useful when creating and testing a rule), using `message` will give more information to the team about the issue.\n\n### `regex/invalid` vs `regex/required`\n\nBoth rule were design with *binary* approach:\n\n* `regex/invalid`: pattern **is not present** => any presence of the *specific* pattern in a file is invalid.\n* `regex/required`: pattern **is present** => only 1 presence of the *specific* pattern in a file is required.\n\nArray of patterns represent different logical operation for each rule:\n\n* `regex/invalid`: **OR** => the presence in a file of *any* of the patterns defined in the *array* is invalid.\n* `regex/required`: **AND** => the presence in file of *all* of the patterns defined in the *array* is required.\n\n### Examples\n\nCheck:\n\n* [invalid-regex Basic rule tests](tests/lib/rules/invalid-regex-rule.e2e-test.js)\n* [invalid-regex Detailed rule tests](tests/lib/rules/invalid-regex-detailed-rule.e2e-test.js)\n* [required-regex Basic rule tests](tests/lib/rules/required-regex-rule.e2e-test.js)\n* [required-regex Detailed rule tests](tests/lib/rules/required-regex-detailed-rule.e2e-test.js)\n* [The set of Regex Rules of `eslint-plugin-base-style-config`](https://github.com/gmullerb/base-style-config/tree/master/js#regex-rules)\n\n__________________\n\n## Prerequisites\n\n* [`\"eslint\": \">=4.0.0\"`](https://www.npmjs.com/package/eslint).\n\n__________________\n\n## Extending/Developing\n\n[Developing](js/readme/developing.md)\n\n## Contributing\n\n* **Use it**.\n* **Share it**.\n* [Give it a Star](https://github.com/gmullerb/eslint-plugin-regex).\n* [Propose changes or improvements](https://github.com/gmullerb/eslint-plugin-regex/issues).\n* [Report bugs](https://github.com/gmullerb/eslint-plugin-regex/issues).\n\n## Documentation\n\n* [`CHANGELOG.md`](CHANGELOG.md): contains the information about changes in each version, chronologically ordered ([Keep a Changelog](http://keepachangelog.com)).\n\n## License\n\n[MIT License](LICENSE.txt)\n\n__________________\n\n## Remember\n\n* Use code style verification tools => Encourages Best Practices, Efficiency, Readability and Learnability.\n* Code Review everything => Encourages Functional suitability, Performance Efficiency and Teamwork.\n* If viable, Start testing early => Encourages Reliability and Maintainability.\n\n## Additional words\n\nDon't forget:\n\n* **Love what you do**.\n* **Learn everyday**.\n* **Learn yourself**.\n* **Share your knowledge**.\n* **Think different!**.\n* **Learn from the past, dream on the future, live and enjoy the present to the max!**.\n* **Enjoy and Value the Quest** (It's where you learn and grow).\n\nAt life:\n\n* Let's act, not complain.\n* Be flexible.\n\nAt work:\n\n* Let's give solutions, not questions.\n* Aim to simplicity not intellectualism.\n",
      "readmeFilename": "README.md",
      "gitHead": "85b32ac14c0b597a76c50530d1ba20a794a5f4a9",
      "_id": "eslint-plugin-regex@1.9.0-chi",
      "_nodeVersion": "16.14.0",
      "_npmVersion": "8.3.1",
      "dist": {
        "integrity": "sha512-WNRcS/SjIbpA8twDBHBAzse+I3obl3ttnW7ZAljxTfwEzfcBMMDL3q+5LrcjBpcrXXoRaK05EO0rOcKKMG7Jzw==",
        "shasum": "6d37b5511ec0af1b0f5c0d7ef9bbe364fc33b2fb",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.9.0-chi.tgz",
        "fileCount": 13,
        "unpackedSize": 127010,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIBXi1uju4aAaVxV24cnDggEyWHutyxxxRtwN9ado97U5AiEA3wdGbEf/Mgja3Cy2aKUpwKq+dA5xouhlEPBkKDH/3dw="
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTvFGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocOxAAgoGiZBVjPWDtqhRrYmZLi/JDb0vgAzaOeyYpDhmw7QygPWlo\r\nxMQbyTRxhoce+h8vbte4QjM4h1CpcBUDqejP5HLvhcEGNkpqQYuJdUJuXJFi\r\n2ODQbY99q8O2wj4lH0EExfUTRkvcSkJSGYjDqurSjJbQdJDV3cwg1CHb5Mur\r\nBy3CVCU/IKMnRBE0WW9Vo4z01ocZYOAmCSmXGTasAMUVVHS+kNZE7UahBI6O\r\nr0AHt9PkDwuKr2FkjqGfzMn5EFLwVanN9J0dAxPGhj970BMELwnYsbocvuut\r\ng6PRV9JYwB9giTHzVFBS7ARTk+fuA7MVZ7g2wNin/bkd2Fynepgx+NZ3idSS\r\ndle0q5Dnxuzy/oFg4Ny/JH2cYW0z9p/AZ0Y0B5+UeF0W/1o6Dip7ArgYCDYe\r\nTP3QRQqEdX1/PXKz+tjnJrcRgAuxSC4yb0C7XuZDbzl/nT94+y069emiIOkM\r\n/sRc43IdaFStwxGXgyHJ770l7Uc+w4pZx4e+5K3c1Zarcihd2tgQO+Siw7T6\r\nCcqWoa6FkYWHCNmfMhSz1yoRrk0BGCFkK7zbGZFHj5wg0qXfcPHbP3/kuEuq\r\nrtrLoepmXpLve1dNHAsydhA40Tf0f9UWWG3iKVS9yxrLzPqKIW/Q8hkrBbpm\r\nmAn2EEPqbpa2PYiepqAoGDO6nhc7qbJYmWw=\r\n=xZBv\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.9.0-chi_1649340742609_0.4449387564703675"
      },
      "_hasShrinkwrap": false
    },
    "1.9.0-delta": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.9.0-delta",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://eslint-plugin-regex.github.io",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint-plugin-regex",
        "eslint",
        "regex-rule",
        "regex",
        "regexp",
        "eslint-regex",
        "eslint-rule",
        "eslint-regex-rule",
        "rule",
        "expression",
        "regular-expression",
        "eslint-regular-expression",
        "eslint-regular-expression-rule",
        "eslintrule",
        "regular-expression-rule",
        "eslintplugin",
        "eslint-plugin",
        "plugin",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "syntax",
        "lint",
        "linter",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && eslint --config .eslintrc-any.json \"**/[\\.a-zA-Z]*.+(js|jsx|ts|tsx|json|yml|xml|sh|txt|md|svg|properties|gradle|java|cpp|c|html|css|groovy)\" \"**/.+(|gitignore|npmignore)\" --no-eslintrc --ignore-pattern \"build\" --ignore-pattern \"tests/lib/rules/case-*.js\"",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\" --ignore-pattern \"tests/lib/rules/case-*.js\"",
        "test.only": "node tests/tests.js && node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "engines": {
        "node": ">=6.0.0"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "any-eslint-parser": "^1.0.1",
        "eslint": "^8.13.0",
        "eslint-plugin-base-style-config": "^2.8.1",
        "eslint-plugin-import": "^2.25.4",
        "jasmine": "^4.0.2",
        "nyc": "^15.1.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "readme": "<p align=\"center\">\n  <br/>\n  <a href=\"https://eslint-plugin-regex.github.io/\"><img src=\"https://assets.gitlab-static.net/uploads/-/system/project/avatar/16770425/eslint-plugin-regex.png\" alt=\" \"/></a>\n</p>\n\n<h1 align=\"center\">ESLint rules using Regular Expressions</h1>\n\n[![eslint-plugin-regex](https://badgen.net/badge/homepage/eslint-plugin-regex/blue)](https://eslint-plugin-regex.github.io/)\n[![eslint-plugin-regex](https://badgen.net/badge/npm%20pack/eslint-plugin-regex/blue)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![ ](https://badgen.net/npm/v/eslint-plugin-regex)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![ ](https://badgen.net/npm/node/eslint-plugin-regex)](https://www.npmjs.com/package/eslint-plugin-regex)\n[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE.txt)\n[![ ](https://gitlab.com/gmullerb/eslint-plugin-regex/badges/master/coverage.svg)](https://gmullerb.gitlab.io/eslint-plugin-regex/coverage/index.html)\n[![Github repo](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/gmullerb/eslint-plugin-regex)\n[![Gitlab repo](https://badgen.net/badge/icon/gitlab?icon=gitlab&label)](https://gitlab.com/gmullerb/eslint-plugin-regex)\n\n__________________\n\n## Quick Start\n\n1 . Add dependencies:\n\n`package.json`:\n\n```json\n  \"engines\" : {\n    \"node\" : \">=6.0.0\"\n  },\n  \"devDependencies\": {\n    \"eslint\": \">=4.0.0\",\n    \"eslint-plugin-regex\": \"1.9.0\",\n```\n\n2 . Configure eslint:\n\nShort configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ],\n      \"ignoreFilesRegex\"\n    ]\n  }\n}\n```\n\nFiles will be checked for the absence of `invalidRegex1` and `invalidRegexN`, and for the presence of `requiredRegex1` and `requiredRegexN`, and files with name matching `ignoreFilesRegex` will not be checked.\n\nDetailed configuration:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [{\n          \"regex\": \"invalidRegex1\",\n          \"replacement\": \"newValue\"\n        }, {\n          \"id\": \"regexIdN\",\n          \"message\": \"errorMessageN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ],\n    \"regex/required\": [\n      \"error\", [{\n          \"id\": \"regexId1\",\n          \"regex\": \"requiredRegex1\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        }, {\n          \"regex\": \"requiredRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexA\",\n            \"inspect\": \"inspectFilesRegexZ\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\nFiles will be checked for:\n\n* The absence of `invalidRegex1` but if found it will be replaced with `newValue`.\n* The absence of `invalidRegexN` only in files with name not matching `ignoreFilesRegexN`, but if found `errorMessageN` will be shown.\n* The presence of `requiredRegex1` only in files with name matching `inspectFilesRegex1`, but if not found `errorMessage1` will be shown.\n* The presence of `requiredRegexN` only in files with name matching `inspectFilesRegexA` and not matching `ignoreFilesRegexZ`.\n\n__________________\n\n## Goals\n\nThe idea is to allow the creation of different eslint rules based on Regular Expressions in order to have some \"freedom\" to create quick ESLint custom rules.\n\n## Rules\n\nName                                                  | Fixable | Description\n----------------------------------------------------- | ------- | -----------\n[`regex/invalid`](docs/rules/invalid-regex-rule.md)   | Yes     | checks that specified patterns are not found\n[`regex/required`](docs/rules/required-regex-rule.md) | No      | checks that specified patterns are found\n\nEach rule defines a set of patterns:\n\n![Rules](readme/rules.svg)\n\n### 📏 `regex/invalid`\n\nThis rule checks that specified patterns are not found in files, i.e. **Invalid patterns**.\n\n✏ Example of **incorrect** code for this rule:\n\n```javascript\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nThe error message will reflect the exact location, e.g.:\n\n```bash\n/path/to/some.js\n 34:25  error  Invalid regular expression /\"/gm found  regex/invalid\n```\n\n✏ Example of **correct** code for this rule:\n\n```javascript\n/* eslint regex/invalid: ['error', ['\"']] */\n\nconst text = 'Hello \\'My Friend\\''\n```\n\n### 📏 `regex/required`\n\nThis rule looks for specific patterns that must be present in each file, i.e. **Required patterns**.\n\n✏ Example of **incorrect** code for this rule:\n\n```javascript\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\nconst text = 'Hello \"My Friend\"'\n```\n\nThe error message will point to the beginning of the file, e.g.:\n\n```sh\n/path/to/some.js\n 1:1  error  Required regular expression /^\\/\\/ Copyright My Friend/gm not found in file  regex/required\n```\n\n✏ Example of **correct** code for this rule:\n\n```javascript\n/* eslint regex/required: [\"error\", [\"^// Copyright My Friend\"]] */\n\n// Copyright My Friend\nconst text = 'Hello \"My Friend\"'\n```\n\n### Options\n\nBoth rule has two options:\n\n* **array** of patterns definitions to analyze. [REQUIRED]\n  * Each pattern definition can be 'Short' or 'Detailed'.\n* a **string** representing the regular expression for ignoring files for all patterns. [OPTIONAL]\n\n```json\n[\n  \"error\",\n  [\n    \"regex1\",\n    \"regexN\"\n  ],\n  \"ignoreFilesRegex\"\n]\n```\n\n#### The `string` representing the regular expression\n\nRemember, Slashes (`/`) are not required in the string that defines the regex,\n\ne.g. To get the following regex `/\\bhttp:/`:\n\n* when using `.eslintrc.js`, define the following string `\"\\bhttp:\"`, or\n* when using `.eslintrc.json`, define `\"\\\\bhttp:\"` (backslash needs to be double in a json file)\n\ne.g. To get the following regex `/.*test\\.js/`:\n\n* when using `.eslintrc.js`, define the following string `\".*test\\.js\"`, or\n* when using `.eslintrc.json`, define `\".*test\\\\.js\"` (backslash needs to be double in a json file)\n\n#### Short pattern definition\n\nEach pattern is specified by just a **`string`** representing the regular expression, i.e. `\"regex\"`\n\n```json\n{\n  \"regex/invalid\": [\n    \"error\",\n    [\n      \"invalidRegex1\",\n      \"invalidRegexN\"\n    ]\n  ],\n  \"regex/required\": [\n    \"error\",\n    [\n      \"requiredRegex1\",\n      \"requiredRegexN\"\n    ]\n  ]\n}\n```\n\n#### Detailed pattern definition\n\nIt is specified by an `object`, with the following fields:\n\n* `regex`: A **required** `string` for `regex/required` and `regex/invalid` representing the **Regular expression to look for**. [REQUIRED]\n* `replacement` for `regex/invalid` [1]: [OPTIONAL]\n  * An optional `string` used to replace the **invalid** found pattern, or\n  * An optional `object` that establish how the **invalid** found pattern will be replaced:\n    * `function`: used to replace the **invalid** found pattern.\n      * It will receive 3 parameters: `text`, `captured` and `$`, that can be used as desired.\n      * It must return a `string` value, if not, return value will be ignored.\n      * Its definition must be only the body of the function.\n  * One must be defined, either the `string` or `function`.\n* `id`: An optional `string` representing the **Pattern Id**. [OPTIONAL]\n* `message`: An optional `string` specifying the **Message to be shown when an error happens** (invalid `regex` is found or required `regex` is not found). [OPTIONAL]\n* `files`: An optional `object` specifying which files to analyze: [OPTIONAL]\n  * `ignore`: A `string` representing **Regular expression of the files to be ignored** when validating this specific pattern.\n  * `inspect`:  A `string` representing **Regular expression of the files to be inspected** when validating this specific pattern.\n\n```json\n{\n  \"id\": \"regexId\",\n  \"regex\": \"regex\",\n  \"replacement\": \"replacementString\",\n  \"message\": \"errorMessage\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegex\",\n    \"inspect\": \"inspectFilesRegex\"\n  }\n}\n```\n\n> * `regex` is the **only** Required field.\n> * When `ignore` and `inspect` are present, `ignore` takes precedence.\n> * Global ignore file pattern, takes precedence over `files` patterns.\n>\n> [1] In order to fix issues `eslint` must be run with `--fix` option.\n\nUsing `message` is pretty useful since it will give a better understanding to the developer when an error happens:\n\ne.g. Given the following definition:\n\n```json\n{\n  \"regex\": \"someRegex\",\n  \"message\": \"The Useful Error MessagE\"\n}\n```\n\nthen shown error will be similar to:\n\n```sh\n/path/to/some.js\n 1:1  error  The Useful Error MessagE  regex/required\n```\n\nor\n\n```bash\n/path/to/some.js\n 34:25  error  The Useful Error MessagE  regex/invalid\n```\n\ninstead of\n\n```sh\n/path/to/some.js\n 1:1  error  Required regular expression /someRegex/gm not found in file  regex/required\n```\n\nor\n\n```bash\n/path/to/some.js\n 34:25  error  Invalid regular expression /someRegex/gm found  regex/invalid\n```\n\n##### Definition of the Function used to replace the *invalid* found pattern\n\nDefinition of the function must be done as a `string` in 1 line, and the following rules apply:\n\n* It must return a `string` value, if not, return value will be ignored, i.e. it will silently fail.\n* Its definition must be **only the body of the function**.\n  * For \"simple\" functions where the `return` is found at the beginning of the body of the function and the **exact** word *return* is not present, `return` can be omitted.\n* If the function has invalid Javascript code, the function will be ignored, i.e. it will silently fail.\n\nFunction will receive 3 parameters, to be used as desired:\n\n* `text`: a `string` with the value of the invalid text found.\n* `captured`: an `array` of strings with the values of the captured groups for the regex.\n* `$`: an `array` of strings, with the value of the invalid text found plus the values of the captured groups for the regex, i.e.\n  * `$[0]` = `text`: a `string` with the value of the invalid text found.\n  * `$[1..]` = `captured`: an `array` of strings with the values of the captured groups for the regex.\n    * `$[1]` = `captured[0]` and so on.\n  * It allows smaller definitions.\n\n**Using parameter `text`**\n\ne.g.\n\n```javascript\n  function(text, captured, $) {\n    return text.trim()\n  }\n```\n\n`\"return text.trim()\"` => only the body of the function + returns a `string` value based on `text`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return text.trim()\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[0].trim()\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```javascript\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```javascript\nconst exception = \"error19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"text.trim()\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror\\\\w*\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[0].trim()\"\n  }\n}\n```\n\n**Using parameter `captured`**\n\ne.g.\n\n`\"return captured[0]\"` => only the body of the function + returns a `string` value based on `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return captured[0]\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"return $[1]\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```javascript\nconst exception = \" error19 \"\n```\n\nwhen linting with fix, the result will be:\n\n```javascript\nconst exception = \"19\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"captured[0]\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"$[1]\"\n  }\n}\n```\n\n**Using parameters `text` and `captured`**\n\ne.g.\n\n`\"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"` => only the body of the function + returns a `string` value based on `text` and `captured`\n\nHaving the following rule in `.eslintrc.json`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + captured[0]  + ' + ' + captured[1] + ' = ' + (parseInt(captured[0]) + parseInt(captured[1]))\"\n  }\n}\n```\n\nor using `$`:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return $[0] + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"return `${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\nthen, given:\n\n`example.js`\n\n```javascript\nconst sum = \"4+5\"\n```\n\nwhen linting with fix, the result will be:\n\n```javascript\nconst sum = \"4+5 = 4 + 5 = 9\"\n```\n\nAs the body of the function is \"simple\", i.e. the `return` is found at the beginning of the body of the function, and besides, the word *return* is not present, then the definition could be done as:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"text + ' = ' + $[1]  + ' + ' + $[2] + ' = ' + (parseInt($[1]) + parseInt($[2]))\"\n  }\n}\n```\n\nor :\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"(\\\\d+)\\\\+(\\\\d+)\",\n  \"replacement\": {\n    \"function\": \"`${text} = ${captured[0]} + ${captured[1]} = ${parseInt($[1]) + parseInt($[2])}`\"\n  }\n}\n```\n\n**When `return` keyword is required**\n\ne.g.\n\ne.g. `const result = text === 'superb' ? 'Superb' : text; return result` => only the body of the function + returns a `string` value based on `text`.\n\nSince the `return` is not found at the beginning of the body of the function, `return` cannot be omitted, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"const result = text === 'superb' ? 'Superb' : text; return result\"\n  }\n}\n```\n\n> Some cases may use Comma operator, e.g. `\"function\": \"result = text === 'superb' ? 'Superb' : text, result\"`\n\ne.g. `return text === 'return' ? 'Return' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the *exact* word *return* is present, this will **required** `return`, then rule definition will be as usual:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"return text === 'return' ? 'Return' : text\"\n  }\n}\n```\n\nFollowing case does not required `return`:\n\ne.g. `return text === 'Return' ? 'RETURN' : text` => only the body of the function + returns a `string` value based on `text`.\n\nSince the **exact** word *return* is not present, this will allow the following rule definition to be:\n\n```json\n{\n  \"id\": \"regexIdN\",\n  \"regex\": \"\\\\w+\",\n  \"replacement\": {\n    \"function\": \"text === 'Return' ? 'RETURN' : text\"\n  }\n}\n```\n\n###### Debugging of the Replacement Function for *invalid* found pattern\n\n* It is possible to add `console` statements to print some information in the Replacement Function.\n\n```json\n{\n  \"regex\": \"\\\\serror(\\\\w*)\\\\s\",\n  \"replacement\": {\n    \"function\": \"const extract = captured[0]; console.log(extract); return extract\"\n  }\n}\n```\n\n### Mixing\n\n#### Mixing pattern types\n\nIt is possible to use both type of definitions, 'Short pattern definition' with 'Detailed pattern definition', in the array of patterns.\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\", [\n        \"invalidRegex1\",\n        \"invalidRegex2\",\n        {\n          \"regex\": \"invalidRegex3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\n* `invalidRegex1` and `invalidRegex2` are 'Short pattern definition'.\n* `invalidRegex3` and `invalidRegexN` are 'Detailed pattern definition'.\n\n#### Mixing rules\n\n##### Mixing error levels\n\nRules names have synonyms:\n\n`regex/invalid` = `regex/invalid-warn` = `regex/invalid-error` = `regex/another-invalid` = `regex/other-invalid`.\n\n`regex/required` = `regex/required-warn` = `regex/required-error` = `regex/another-required` = `regex/other-required`.\n\n* Synonyms are just that, synonyms, do not imply any level of error, but some are provided to increase readability, e.g. `regex/invalid-warn` does not imply `warn` level.\n* This will allow to mix different error levels.\n\nIt is possible to set different error level: `error`, `warn` and `off`. For this use a synonym for the regex rule name:\n\n`.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\n    \"regex\"\n  ],\n  \"rules\": {\n    \"regex/invalid\": [\n      \"error\",\n      [\n        \"invalidRegex1\",\n        \"invalidRegexN\"\n      ]\n    ],\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalid-error\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n    \"regex/invalid-warn\": [\n      \"warn\", [\n        \"invalidRegexB1\",\n        \"invalidRegexB2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegex1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexN\"\n          }\n        }\n      ],\n    ],\n    \"regex/other-invalid\": [\n      \"off\", [\n        \"invalidRegexC1\",\n        \"invalidRegexC2\",\n        {\n          \"regex\": \"invalidRegexB3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexC1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexBN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexCN\"\n          }\n        }\n      ],\n    ],\n    \"regex/required-warn\": [\n      \"warn\",\n      [\n        \"requiredRegexA1\",\n        \"requiredRegexAN\"\n      ]\n    ]\n  }\n}\n```\n\n* Rules with invalid patterns and `error` level: `regex/invalid` and `regex/invalid-error`.\n* Rules with invalid patterns and `off` level: `regex/other-invalid`.\n* Rules with required patterns and `error` level: `regex/required`.\n* Rules with required patterns and `warn` level: `regex/required-warn`.\n\n##### Custom set of regex rules\n\nCreating and Using a Custom Set of regex rules **requires using `js` files**.\n\n###### Named Regex Rules approach\n\nRule name can be anything that includes `invalid`, `disuse`, `avoid`, `required` or `use`, ignoring letter case, and with the restrictions of predefined names (`invalid`, `disuse`, `avoid`, `invalid-warn`, `invalid-error`, `another-invalid`, `other-invalid`, `required`, `use`, `required-warn`, `required-error`, `another-required` and `other-required`), this will allow to mix different error levels or create custom regex rules package.\n\n* `regex/*invalid*`, `regex/*disuse*`  or `regex/*avoid*` for invalid patterns.\n* `regex/*required*` or `regex/*use*` for required patterns.\n\n![Mixed Rules](readme/mixed-rules.svg)\n\n> In the name `invalid`, `disuse` and `avoid` will take precedence over `required` and `use`, e.g. If custom regex rule name has both `avoid` and `use` in the name, then the respective regex patterns will be consider invalid patterns.\n\n**`addRegexRuleName` must be used to add the custom regex rule name to the set of `eslint-plugin-regex` rules.**\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('*invalid*')\naddRegexRuleName('*required*')\n```\n\nAn advantage of using Named Regex Rules is that shown error will be even more specific, e.g.:\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('required-custom-896')\n```\n\nthen, if an error happens, the output will be something similar to:\n\n```sh\n/path/to/some.js\n  1:1  error  Required regular expression /requiredRegex/gm not found in file  regex/required-custom-896\n```\n\ninstead of\n\n```sh\n/path/to/some.js\n  1:1  error  Required regular expression /requiredRegex/gm not found in file  regex/required\n```\n\n***Local Custom Regex rules***\n\nCreate a local `.eslintrc.js`:\n\n1 . Add rule name using `addRegexRuleName`.  \n2 . Define `eslint-plugin-regex` custom regex rule.\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('invalid-custom-890')\n\nmodule.exports = {\n  plugins: [ 'regex' ],\n  rules: {\n    'regex/invalid-custom-890': [\n      'error', [\n        {\n          regex: 'invalidRegexBN',\n          files: {\n            ignore: 'ignoreFilesRegexCN'\n          }\n        }\n      ]\n    ]\n  }\n}\n```\n\n***Custom Regex rules package***\n\nCreate a custom ESLint package and add the custom regex rules with a **\"unique\"** name for each regex rule defined in the package, so it can be use with other package of regex rules or local regex rules.\n\nCustom package `index.js`:\n\n```javascript\nconst { addRegexRuleName } = require('eslint-plugin-regex')\n\naddRegexRuleName('invalid-custom-890')\n\nmodule.exports = {\n  configs: {\n    'someRegexRule1': {\n      plugins: [ 'regex' ],\n      rules: {\n        'regex/invalid-custom-890': [\n          'error', [\n            {\n              regex: 'invalidRegexBN',\n              files: {\n                ignore: 'ignoreFilesRegexCN'\n              }\n            }\n          ]\n        ]\n      }\n    }\n  }\n}\n```\n\n* This custom package defines 1 rule named `regex/invalid-custom-890` with only 1 invalid pattern with `error` as a default error level.\n\n> An online example can be checked at [`eslint-plugin-base-style-config`](https://github.com/gmullerb/base-style-config/tree/master/js#regex-rules).  \n> For more information on how to create a custom ESLint package check [ESLint official documentation: Working with Plugins](https://eslint.org/docs/developer-guide/working-with-plugins)\n\nthen use it,\n\nSome project `.eslintrc.json`:\n\n```json\n  { \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\",\n```\n\nto change the default error level set by the package:\n\n```json\n  {\n    \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n    \"rules\": {\n      \"regex/invalid-custom-890\": \"warn\"\n\n```\n\nmixing with other regex rules:\n\n```json\n{\n  \"extends\": [ \"plugin:the-eslint-plugin/someRegexRule1\" ],\n  \"rules\": {\n    \"regex/invalid-custom-890\": \"warn\",\n    \"regex/required\": [\n      \"error\",\n      [\n        \"requiredRegex1\",\n        \"requiredRegexN\"\n      ]\n    ],\n    \"regex/invalid-error\": [\n      \"error\", [\n        \"invalidRegexA1\",\n        \"invalidRegexA2\",\n        {\n          \"regex\": \"invalidRegexA3\",\n          \"message\": \"errorMessage1\",\n          \"files\": {\n            \"inspect\": \"inspectFilesRegexA1\"\n          }\n        },\n        {\n          \"id\": \"regexIdN\",\n          \"regex\": \"invalidRegexN\",\n          \"files\": {\n            \"ignore\": \"ignoreFilesRegexAN\"\n          }\n        }\n      ],\n    ],\n```\n\n###### Import/Export approach\n\nCreate a custom npm package using either with `json` or `js` files and add the custom regex rules.\n\nCustom package `index.js`:\n\nwith complete rule definition:\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n  files: {\n    ignore: 'ignoreFilesRegexCN'\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  regex: 'invalidRegexBN',\n}\n```\n\nor with only regex definition:\n\n```javascript\nmodule.exports = 'invalidRegexBN'\n```\n\nor with multiple complete rule definition:\n\n```javascript\nmodule.exports = {\n ruleName1: {\n    regex: 'invalidRegex1',\n    files: {\n      ignore: 'ignoreFilesRegex1'\n    }\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n    files: {\n      ignore: 'ignoreFilesRegexN'\n    }\n  }\n}\n```\n\nor\n\n```javascript\nmodule.exports = {\n  ruleName1: {\n    regex: 'invalidRegex1',\n  },\n  ruleNameN: {\n    regex: 'invalidRegexN',\n  }\n}\n```\n\nor with multiple only regex definition:\n\n```javascript\nmodule.exports = {\n    ruleName1: 'invalidRegex1',\n    ruleNameN: 'invalidRegexN'\n}\n```\n\nor using `json` files:\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n  \"files\": {\n    \"ignore\": \"ignoreFilesRegexCN\"\n  }\n}\n```\n\nor\n\n```json\n{\n  \"regex\": \"invalidRegexBN\",\n}\n```\n\nor\n\n```json\n{\n \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegex1\"\n    }\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n    \"files\": {\n      \"ignore\": \"ignoreFilesRegexN\"\n    }\n  }\n}\n```\n\nor\n\n```json\n{\n  \"ruleName1\": {\n    \"regex\": \"invalidRegex1\",\n  },\n  \"ruleNameN\": {\n    \"regex\": \"invalidRegexN\",\n  }\n}\n```\n\nor\n\n```json\n{\n    \"ruleName1\": \"invalidRegex1\",\n    \"ruleNameN\": \"invalidRegexN\"\n}\n```\n\n> Different approaches can be defined, these are only a glance.\n> For more information on how to create a custom npm package check [Contributing packages to the registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry)\n\nThen use the custom package:\n\nSome project `.eslintrc.js`:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      \"regex/invalid\": [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ],\n```\n\nor using synonyms to mix error levels:\n\n```javascript\n  import * as SomeESLintSetOfRegexRulesPackage1 from 'the-custom-package1'\n  import * as SomeESLintSetOfRegexRulesPackage2 from 'the-custom-package2'\n\n  module.exports = {\n    plugins: [\"regex\"],\n    rules: {\n      'regex/invalid-error': [\n        'error', [\n          SomeESLintSetOfRegexRulesPackage1.ruleNameN,\n          SomeESLintSetOfRegexRulesPackage2.ruleName1\n        ]\n      ],\n      'regex/invalid-warn': [\n        'warn', [\n          SomeESLintSetOfRegexRulesPackage1.ruleName1,\n          SomeESLintSetOfRegexRulesPackage2.ruleNameN\n        ]\n      ]\n```\n\n#### String to Regular expression conversion\n\nInternally, each string from the array will be converted into a Regular Expression with `global` and `multiline` options, e.g.:\n\n`\"someRegex\"` will be transformed into `/someRegex/gm`\n\n> Remember that backslash needs to be double in strings of a json file, e.g. To get the following regex `/\\bhttp:/` define the following string `\"\\\\bhttp:\"`.\n\n#### Error report\n\nThe 'Short pattern definition' errors are reported with the following structure:\n\nGiven `someRegex`, the following message will be shown on error:\n\n```\nInvalid regular expression /someRegex/gm found\n```\n\nor\n\n```\nRequired regular expression /someRegex/gm not found in file\n```\n\nThe 'Detailed pattern definition' errors are reported with the following rules:\n\nA . If `message` is present then that **exact message is reported**.  \nB . If `id` is present then:\n\nGiven `\"id\": \"someRegexId\"`, the following message will be shown on error:\n\n```\nInvalid regular expression 'someRegexId' found\n```\n\nor\n\n```\nRequired regular expression 'someRegexId' not found in file\n```\n\nC . If neither `message` nor `id` is present then the 'Short pattern definition' error message is shown.\n\n> * `message` takes precedence over `id`.  \n> * Although `id` is a quick solution (and useful when creating and testing a rule), using `message` will give more information to the team about the issue.\n\n### `regex/invalid` vs `regex/required`\n\nBoth rule were design with *binary* approach:\n\n* `regex/invalid`: pattern **is not present** => any presence of the *specific* pattern in a file is invalid.\n* `regex/required`: pattern **is present** => only 1 presence of the *specific* pattern in a file is required.\n\nArray of patterns represent different logical operation for each rule:\n\n* `regex/invalid`: **OR** => the presence in a file of *any* of the patterns defined in the *array* is invalid.\n* `regex/required`: **AND** => the presence in file of *all* of the patterns defined in the *array* is required.\n\n### Examples\n\nCheck:\n\n* [invalid-regex Basic rule tests](tests/lib/rules/invalid-regex-rule.e2e-test.js)\n* [invalid-regex Detailed rule tests](tests/lib/rules/invalid-regex-detailed-rule.e2e-test.js)\n* [required-regex Basic rule tests](tests/lib/rules/required-regex-rule.e2e-test.js)\n* [required-regex Detailed rule tests](tests/lib/rules/required-regex-detailed-rule.e2e-test.js)\n* [The set of Regex Rules of `eslint-plugin-base-style-config`](https://github.com/gmullerb/base-style-config/tree/master/js#regex-rules)\n\n__________________\n\n## Prerequisites\n\n* [`\"eslint\": \">=4.0.0\"`](https://www.npmjs.com/package/eslint).\n\n__________________\n\n## Evolution\n\n[`CHANGELOG.md`](CHANGELOG.md): contains the information about changes in each version, chronologically ordered ([Keep a Changelog](http://keepachangelog.com)).\n\n## Extending/Developing\n\n[Developing](js/readme/developing.md)\n\n## Contributing\n\n* **Use it**.\n* **Share it**.\n* [Give it a Star](https://github.com/gmullerb/eslint-plugin-regex).\n* [Propose changes or improvements](https://github.com/gmullerb/eslint-plugin-regex/issues).\n* [Report bugs](https://github.com/gmullerb/eslint-plugin-regex/issues).\n\n## License\n\n[MIT License](LICENSE.txt)\n\n__________________\n\n## Remember\n\n* Use code style verification tools => Encourages Best Practices, Efficiency, Readability and Learnability.\n* Code Review everything => Encourages Functional suitability, Performance Efficiency and Teamwork.\n* If viable, Start testing early => Encourages Reliability and Maintainability.\n\n## Additional words\n\nDon't forget:\n\n* **Love what you do**.\n* **Learn everyday**.\n* **Learn yourself**.\n* **Share your knowledge**.\n* **Think different!**.\n* **Learn from the past, dream on the future, live and enjoy the present to the max!**.\n* **Enjoy and Value the Quest** (It's where you learn and grow).\n\nAt life:\n\n* Let's act, not complain.\n* Be flexible.\n\nAt work:\n\n* Let's give solutions, not questions.\n* Aim to simplicity not intellectualism.\n",
      "readmeFilename": "README.md",
      "gitHead": "022cc7cfa68a563ff616c3306b1ba6b38ca2631f",
      "_id": "eslint-plugin-regex@1.9.0-delta",
      "_nodeVersion": "16.14.0",
      "_npmVersion": "8.3.1",
      "dist": {
        "integrity": "sha512-ny7uAjRppqQSpHb4lbYO+jCRGVfrozP+IsaJvxyzQ4Ji2JlHHCiDyDgoSwuLSTapn/TDxHYgk1oz3dI5oP3nxA==",
        "shasum": "36aa9e3c5c138a5c6972a2bbb72d92988af93585",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.9.0-delta.tgz",
        "fileCount": 13,
        "unpackedSize": 127368,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCf7fQvaVDAZ2Lk4r1KErY9ZIyd4hmtfDbpOHJUmEO57AIhAMEOmOy1fZZREXIv18YhcEJ6554Itfv2ustgKxE8Jyy8"
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWuLUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiXRAAmeUL9Tiakolfwd17evtssCRxy/zUPrvB9kgvnlqdBApkZrwy\r\nzOZttDeSVV2haL233MSWff8wUVz6NNjipzIaH4cvF25M7+dldV1+3G4/X1ld\r\nC4KfrXC7eEWEhl4wGWbe1Ku3LORQPssbd5mT/UaJUq3CS6j4BIsZ3W0wobnw\r\nyas3btkT+mt584wBvSOXtVR6QYo7vGWN5FfwapMuGW9Tmfbmst62dFHjajHu\r\nFKhPFaFRRNVRT3YjTCAHMVtlQue1nzT3LSwj5TCdd/Z3sUrrggy8ZwKFx+q/\r\nFwTkKE2t9VWbTlndAzuywcidvRYkP2VVtKMG8eEUsw9V2CKGJ8Bll5Cmqbuq\r\nQVOueIaMDboeBPKmyoABeIQXu6XGDFmFvbO1u9coabefWNQ8WH3epDvdeVCU\r\nOsFOHq2SnlTGt+x/RT83Cz/7vpy56+s1VgWjBMJWI035utRJO6cngSCgB86U\r\nAthb3/QlPTtJneMly4UKwxjXy8/MPAfHFGCU6Uvnvh0+7q/NTLcJEHlls3js\r\nw/vfspXVXhVxUWfpIwaaqDq1CDpKr/Crl32SCQn9vkeLZao2YFNXVj9ln+3n\r\n2JuyMezHq7xbswe9vfWbQZfUX2yLpeYvChXPtzM/zA5Z8BZollR+k2SXop+V\r\nou9nSjM83iLnlmUl9Zhi0fpCg5bqM+31SKM=\r\n=8jIo\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.9.0-delta_1650123476763_0.8407107739440629"
      },
      "_hasShrinkwrap": false
    },
    "1.9.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.9.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://eslint-plugin-regex.github.io",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint-plugin-regex",
        "eslint",
        "regex-rule",
        "regex",
        "regexp",
        "eslint-regex",
        "eslint-rule",
        "eslint-regex-rule",
        "rule",
        "expression",
        "regular-expression",
        "eslint-regular-expression",
        "eslint-regular-expression-rule",
        "eslintrule",
        "regular-expression-rule",
        "eslintplugin",
        "eslint-plugin",
        "plugin",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "syntax",
        "lint",
        "linter",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && eslint --config .eslintrc-any.json \"**/[\\.a-zA-Z]*.+(js|jsx|ts|tsx|json|yml|xml|sh|txt|md|svg|properties|gradle|java|cpp|c|html|css|groovy)\" \"**/.+(|gitignore|npmignore)\" --no-eslintrc --ignore-pattern \"build\" --ignore-pattern \"tests/lib/rules/case-*.js\"",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\" --ignore-pattern \"tests/lib/rules/case-*.js\"",
        "test.only": "node tests/tests.js && node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "engines": {
        "node": ">=6.0.0"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "any-eslint-parser": "^1.0.1",
        "eslint": "^8.13.0",
        "eslint-plugin-base-style-config": "^2.8.1",
        "eslint-plugin-import": "^2.25.4",
        "jasmine": "^4.0.2",
        "nyc": "^15.1.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "c11da25778389a52e433cbc7b914cf8d9e636467",
      "_id": "eslint-plugin-regex@1.9.0",
      "_nodeVersion": "16.14.0",
      "_npmVersion": "8.3.1",
      "dist": {
        "integrity": "sha512-T7/Rn6qp/Wp9VlLraimUvGW81wkJ661wFicHyHrm4iSJfl33yyUFJEwknYjFjrUTXAsYA6wCCvPpBss/gOlVNA==",
        "shasum": "4eb4f903edeeec3d641a7fcc10ad4d5209cb783d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.9.0.tgz",
        "fileCount": 13,
        "unpackedSize": 127338,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCKxK3MnxGDuNiI1ULoH1aeO8kRiPSJg3UDsniTvtL0sAIhAOhfmJIom28nTLHrFGlH321ipTJ0EVEwzsRp7zjehhaV"
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXDA5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoE4w/+NW78z0/uQaz+Cv+cdc6Pwj+RW7tEkzds0eUJP/eVNTJPu3hA\r\nUHDDNPEYrspatidSDVcGq48ggSe5twT53z57DGwRoeCKyCJ2VTF/hO4Jo83n\r\nXiYhJiFqDP3TjnFR/8ezKz/pUuIIHlMqXDs5QheGeVvF2xW0JS1nR7Ea1UBk\r\nNmbcGalzmfiqcyL/n5Tic1yXKNbZDN/IuOeWuFOJ5qwnPdTDAOxsRQwwYKGs\r\nlYwH4xpvS0XZqAZEvalGBY8akell0oagGjvPoiG8mRDaWkUfdPNEGgK0rueP\r\nSt8dAJEy9FLOxATBF2TwUJqDsKEd13nRn28vZQkbklvny1NnwXlaBX5cKobp\r\nwK0iQ6nO6gnVund+06kWRk/AwI6wsf7haI3TVup1tPg4uDRHKYHsU16169da\r\nP0GAVoNmhJIsK99sofAmFnY4rZIi6qDcZJ+MdWBZUckDHzo6AmPtq9uwO1qa\r\nqduqMJt4xtvKF7lpPY+G6pWOf8kfFAFYmKH88c035h8F/AFfi3jXT6tvEWax\r\n3FJby9wUsgisYkCX2dg6ZZlyDrQirKN4vNdhU37mpvLPds7j07R7ssa8hpgV\r\n88Ae4dGjPBEyrggU8f9q2ay7pZ2884KGLvJL3WHVhAMaemNBymIUWzUHyHiy\r\nju9SbP3qcjBkxjK3XCT2riE0BXzIaHRJTLA=\r\n=8lEk\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.9.0_1650208825416_0.3325334758023859"
      },
      "_hasShrinkwrap": false
    },
    "1.9.1": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.9.1",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://eslint-plugin-regex.github.io",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint-plugin-regex",
        "eslint",
        "regex-rule",
        "regex",
        "regexp",
        "eslint-regex",
        "eslint-rule",
        "eslint-regex-rule",
        "rule",
        "expression",
        "regular-expression",
        "eslint-regular-expression",
        "eslint-regular-expression-rule",
        "eslintrule",
        "regular-expression-rule",
        "eslintplugin",
        "eslint-plugin",
        "plugin",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "syntax",
        "lint",
        "linter",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "echo ==== Lint Common ==== && eslint --config .eslintrc-any.json \"**/[\\.a-zA-Z]*.+(js|jsx|ts|tsx|json|yml|xml|sh|txt|md|svg|properties|gradle|java|cpp|c|html|css|groovy)\" \"**/.+(|gitignore|npmignore)\" --no-eslintrc --ignore-pattern \"build\" --ignore-pattern \"tests/lib/rules/case-*.js\"",
        "lint.source": "echo ==== Lint Source Code ==== && eslint --color \"**/*.js\" --ignore-pattern \"tests/lib/rules/case-*.js\"",
        "test.only": "node tests/tests.js && node tests/lib/rules/e2e-tests.js",
        "test": "echo ==== Test With Coverage ==== && mkdir -p build && nyc npm run test.only",
        "prepack": "echo ==== Build Package ====",
        "check": "npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check"
      },
      "engines": {
        "node": ">=6.0.0"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "any-eslint-parser": "^1.0.1",
        "eslint": "^8.13.0",
        "eslint-plugin-base-style-config": "^2.8.1",
        "eslint-plugin-import": "^2.25.4",
        "jasmine": "^4.0.2",
        "nyc": "^15.1.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "edd9713f011eaf7ecd310bf93c84cd9d0bfaadd8",
      "_id": "eslint-plugin-regex@1.9.1",
      "_nodeVersion": "17.9.0",
      "_npmVersion": "8.5.5",
      "dist": {
        "integrity": "sha512-JXmhAMtlcR+O309LZ5LW0tu/z59e1mZSBvdEdFCiDOaoNEWyusGxCYX3uEtIuYCMCWSSPXATaB1pLh3GqJXYUg==",
        "shasum": "4e3daeea54b6f743675b6af555b4c2b33be2c5eb",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.9.1.tgz",
        "fileCount": 13,
        "unpackedSize": 127785,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHJ1sYxrjvdKSznpI2w9oCFOsYw3gvilCV2ZIPHFVz5LAiEAzm4ZHzQyOga87ai1JClH0MTuVXPr09wGw4uWKAVw2vI="
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizK62ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqptg/+IUEzJ8ylFAQyPqEdgpZdGemsrn6Zzm0HBkLyu1aU9NO+oqyk\r\ns+c5yXaYI0hW/4gI0PA9UOPjm7dBIJ0KYj8XT+Vnb6qj49r66wtPP88rVu0W\r\nfnq6DKSYaQ5d5qBJsWgdz8xwLA93OdcWK5m4kuJqF3MmHdCY2/TjyZ+hMmX0\r\nsWKAAPsHm9FZCkkdLpSM3UpYkAdNbYvw774rm+fBgdgE25o6oTLLGjFiU899\r\ns9LIuh3KdSyj3wFWq9FgGfxC3j7EkqdE+1JDmkDpUEkay7l0faA0p4eP4n1N\r\nI0TQ2tti1i5qQbFPI9x9ksR0Kc7H87xGBqsjpWhU5ZWl9bhV38QPbIvVcu1C\r\ng9Ya0ALwRviHK00YoFkTXTIiBX7MiB3nq2qZwOkCGr3oDpTKfJqvsZRPe2Wx\r\ncOj5yhQpvlaNCbC9Yu9xAWpBbb/fpPbikeZzvf4mUo7RxkIKwcFcjj52eETd\r\n3wMyWknQEqDEXT83LBJrkcCG0g7dWNY2kVaOk6RYHpy4pDyoBwQQ6sl65KJ+\r\nG8wdo5VAJayedgJYVDhozfHYDQRUokBoQSV3ytoRwd4Q95rUTteOaOYzBCmq\r\nBiFW4Y9H9dkpjXxfqbq8bbOx1LWPZjSNMjDPB3WsZsohWOgzQob9tJaNZYqL\r\noArekfzQ6yXLxlLSMVmxY8tnr79Ozl/FJTM=\r\n=jRgT\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.9.1_1657581238290_0.6798883797083171"
      },
      "_hasShrinkwrap": false
    },
    "1.10.0-alpha": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.10.0-alpha",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://eslint-plugin-regex.github.io",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint-plugin-regex",
        "eslint",
        "regex-rule",
        "regex",
        "regexp",
        "eslint-regex",
        "eslint-rule",
        "eslint-regex-rule",
        "rule",
        "expression",
        "regular-expression",
        "eslint-regular-expression",
        "eslint-regular-expression-rule",
        "eslintrule",
        "regular-expression-rule",
        "eslintplugin",
        "eslint-plugin",
        "plugin",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "syntax",
        "lint",
        "linter",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "npm run title --title=\"Lint Common\" -s && eslint --config .eslintrc-any.json \"**/[\\.a-zA-Z]*.+(js|jsx|ts|tsx|json|yml|xml|sh|txt|md|svg|properties|gradle|java|cpp|c|html|css|groovy)\" \"**/.+(|gitignore|npmignore)\" --no-eslintrc --ignore-pattern \"build\" --ignore-pattern \"tests/lib/rules/case-*.*\"",
        "lint.source": "npm run title --title=\"Lint Source Code\" -s && eslint --color \"**/*.js\" --ignore-pattern \"tests/lib/rules/case-*.js\"",
        "test.only": "node tests/tests.js && node tests/lib/rules/e2e-tests.js",
        "test": "npm run title --title=\"Test With Coverage\" -s && mkdir -p build && nyc npm run test.only",
        "check": "npm run title --title=\"Install\" -s && npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "postcheck": "echo \"check OK\"",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check",
        "prepack": "npm run title --title=\"Build Package\" -s",
        "title": "echo ==== \"\\033[1;;33m\"$npm_config_title\"\\033[0m\" ===="
      },
      "engines": {
        "node": ">=6.0.0"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "any-eslint-parser": "^1.0.1",
        "eslint": "^8.13.0",
        "eslint-plugin-base-style-config": "^2.9.2",
        "eslint-plugin-import": "^2.25.4",
        "jasmine": "^4.0.2",
        "nyc": "^15.1.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "a7a2a7f436c88624bfb1f0b1a39598e3bb27856c",
      "_id": "eslint-plugin-regex@1.10.0-alpha",
      "_nodeVersion": "17.9.0",
      "_npmVersion": "8.5.5",
      "dist": {
        "integrity": "sha512-ojkuf7YMeVN8pyIU4Dic/SOvsKzc6mynXpSNftVUKdNzXTZgnQ4AFFSeb+f3Og7T6cLyOotwnU79J25x2etpiw==",
        "shasum": "0e40e9904b2a10400399d5dd31c44b3db2725dce",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.10.0-alpha.tgz",
        "fileCount": 11,
        "unpackedSize": 52898,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCIb3QNOBR+yS8dWEwwwyLroYJwXfbj03TWpnEuLiII+QIhAM5nTPbZgXGMMZH0r7rgsi62tLlQ2pzxO24x8BQGSPul"
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+QvKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJIw//XhLe8PpfaUfZdW1uEacjbhYHKMI0XbxMHH75W8MIdrKDiI+v\r\nuh/PtVLVZqcWryEM2DwYa1OSrSpaU5ppVuitMuipBtGqE1orjVbJwel5LeVn\r\n1acldYEdA0KDF/uer9HOj+l/Vw/h+8IhiYoMw6W9eLw2HhcOeA5ma7CzdPVl\r\nywzB/6JkJX5Uo1PCiJFpX4Aro+AEwzVXxrXw/CEcQwNQtE9MVoW8ftVaZ7KN\r\npQKFH6pW7KnOeMa1nonsqFgw/2oMs9XoOha8KPaQQ862JImrkvDEQ5qJvD/r\r\n1RoZNmMjjiUxSyfl7YnxKJWb778azBmMwPYm94YLW81jupu45XtVTu1rgmfV\r\nHdMBLv3hQXCl/Rd8Gtmt+L4ujDaHr6Xa4fCTs05+79x9W1VBYacRQApuIszL\r\n9vhPFwBlcgcou+6S3zmofDoVFGrpGAMgv62zSdyVOLZtPcHpjZdwlWpHxohp\r\nMm7EDxWgk3OkYAUjyGtLwrdKTjKAIHe20zgxR+FZsOxbEVPXhH4oL6a6d30B\r\nR0v91TjQC5K4FtbwLu/eVR7++9OEzdLjgQIBWkn6U9/oDyMmzEFdO2pdHVpL\r\n3dBBWixPk1LRsiUfoZibvOs1Xxg5kReP9eziYlTw1ampbIWnJgoRWYruIwkY\r\nNVErszWMDupXE/uReRs9ocAsZRczynnUcgg=\r\n=NkAK\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.10.0-alpha_1660488649983_0.4887233915466891"
      },
      "_hasShrinkwrap": false
    },
    "1.10.0": {
      "name": "eslint-plugin-regex",
      "description": "ESLint rules using Regular Expression",
      "version": "1.10.0",
      "license": "MIT",
      "author": {
        "name": "Gonzalo Müller Bravo"
      },
      "main": "lib/index.js",
      "homepage": "https://eslint-plugin-regex.github.io",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/gmullerb/eslint-plugin-regex.git"
      },
      "bugs": {
        "url": "https://github.com/gmullerb/eslint-plugin-regex/issues"
      },
      "keywords": [
        "eslint-plugin-regex",
        "eslint",
        "regex-rule",
        "regex",
        "regexp",
        "eslint-regex",
        "eslint-rule",
        "eslint-regex-rule",
        "rule",
        "expression",
        "regular-expression",
        "eslint-regular-expression",
        "eslint-regular-expression-rule",
        "eslintrule",
        "regular-expression-rule",
        "eslintplugin",
        "eslint-plugin",
        "plugin",
        "coding style",
        "coding standards",
        "code checker",
        "code linter",
        "code quality",
        "code standards",
        "code style",
        "syntax",
        "lint",
        "linter",
        "jshint",
        "js-hint",
        "jslint",
        "js-lint",
        "js lint",
        "js quality",
        "js rules",
        "js rules",
        "js standards",
        "js style",
        "style guide",
        "style checker",
        "style linter",
        "standard",
        "standard style",
        "style"
      ],
      "scripts": {
        "lint": "npm run lint.common && npm run lint.source",
        "lint.common": "npm run title --title=\"Lint Common\" -s && eslint --config .eslintrc-any.json \"**/[\\.a-zA-Z]*.+(js|jsx|ts|tsx|json|yml|xml|sh|txt|md|svg|properties|gradle|java|cpp|c|html|css|groovy)\" \"**/.+(|gitignore|npmignore)\" --no-eslintrc --ignore-pattern \"build\" --ignore-pattern \"tests/lib/rules/case-*.*\"",
        "lint.source": "npm run title --title=\"Lint Source Code\" -s && eslint --color \"**/*.js\" --ignore-pattern \"tests/lib/rules/case-*.js\"",
        "test.only": "node tests/tests.js && node tests/lib/rules/e2e-tests.js",
        "test": "npm run title --title=\"Test With Coverage\" -s && mkdir -p build && nyc npm run test.only",
        "check": "npm run title --title=\"Install\" -s && npm install && npm run lint && npm test && mkdir -p build && cd build && npm pack ../",
        "postcheck": "echo \"check OK\"",
        "check.all": "npm run check && npm audit",
        "prepublishOnly": "npm run check",
        "prepack": "npm run title --title=\"Build Package\" -s",
        "title": "echo ==== \"\\033[1;;33m\"$npm_config_title\"\\033[0m\" ===="
      },
      "engines": {
        "node": ">=6.0.0"
      },
      "peerDependencies": {
        "eslint": ">=4.0.0"
      },
      "devDependencies": {
        "any-eslint-parser": "^1.0.1",
        "eslint": "^8.13.0",
        "eslint-plugin-base-style-config": "^2.9.2",
        "eslint-plugin-import": "^2.25.4",
        "jasmine": "^4.0.2",
        "nyc": "^15.1.0"
      },
      "nyc": {
        "check-coverage": true,
        "branches": 85,
        "functions": 50,
        "statements": 25,
        "reporter": [
          "lcov",
          "cobertura",
          "text",
          "text-summary"
        ],
        "report-dir": "build/coverage",
        "temp-dir": "build/coverage"
      },
      "gitHead": "9373b88009f823bf5024fd868f1ccf2836c0a022",
      "_id": "eslint-plugin-regex@1.10.0",
      "_nodeVersion": "17.9.0",
      "_npmVersion": "8.5.5",
      "dist": {
        "integrity": "sha512-C8/qYKkkbIb0epxKzaz4aw7oVAOmm19fJpR/moUrUToq/vc4xW4sEKMlTQqH6EtNGpvLjYsbbZRlWNWwQGeTSA==",
        "shasum": "d182cedbeb89eb03cd8e53f750f6f92e14fa6f9c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eslint-plugin-regex/-/eslint-plugin-regex-1.10.0.tgz",
        "fileCount": 11,
        "unpackedSize": 53010,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIGR6rLubYGXAZK2vXDi2C5DcsQwHsBhD//2ZnFIKxGucAiEA35hXRsuEsZ5h0cZxLR12r97HCWdjW4SqY8YPDluFwEE="
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+nAsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnGRAAg087GJD5t81mlH2mkUb2ahYrB/IwZRslgY68Hy2dcHjzAcGi\r\ndWCFxazrD87gMBFqAZ1haHgvtWEoLV8Q74JX1Sl9TQBaOvEG7yqfCfPSbUBA\r\n22rOJrC/5mWucri/GruwCj78IStgpd+6WUKkyMMeUIObsDv6gKhzDmpREROR\r\nA2FLRX7UxNmHjYgaPQs4sohxgcbLP91wKVGOBU6Zzl6+bjybfbWjpOHRxrCN\r\nKbmzBE/d6FsJhIuhCXIX4cOWeuFz69zvQQ5RdEUI0Wg5DKU8nLgK0ypkNQ/9\r\n8BPYPYsjPsT9IMQ+Oe9qZnC9vS0aAI1rcjbGKiXNTNra3hyWDKvQ6EA8YMco\r\nj1kq/2yDYorUvZQS5kY0Wy5N5v2Oo8P4W6PShn1Y04wKqndvLLPQb2+j8oLY\r\n98mksUKPLs4d4i2a+a6t88xWBtct/PsWJ75rdQfWzNHOJ0oKA4HBiOYUzTlr\r\nRNoT3LKaE/0uFKIDQheV24dZKWQkUiF99/7GBt6BFEurHRsOa5O2Nnmx9QwZ\r\nfqYGk6IAgvqx19Axg2ExZplUmXhVX90/22vLr9CBClZacjifdirrkmu5TqfC\r\nnC8oqCmr4gQy1o9m5MRcJMbgrHWuAtBtpsDRZxEh779ckXd9X7LKWO7cmSVm\r\nGo02i+XWYegm7dE+hb4OKz+qNyEKhSOL6+A=\r\n=yYc+\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "gmullerb",
        "email": "gmullerb@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "gmullerb",
          "email": "gmullerb@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eslint-plugin-regex_1.10.0_1660579884693_0.8919434211465536"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "eslint-plugin-regex",
  "time": {
    "created": "2020-02-08T00:12:13.358Z",
    "1.0.0-alpha": "2020-02-08T00:12:13.470Z",
    "modified": "2026-05-21T21:43:22.026Z",
    "1.0.0-beta": "2020-02-08T13:49:27.688Z",
    "1.0.0-chi": "2020-02-08T14:03:52.636Z",
    "1.0.0": "2020-02-08T14:16:59.240Z",
    "1.1.0-beta": "2020-04-10T12:23:33.135Z",
    "1.1.0": "2020-04-10T13:41:26.779Z",
    "1.2.0": "2020-08-17T19:19:36.124Z",
    "1.2.1": "2020-08-22T12:38:35.874Z",
    "1.3.0": "2021-01-31T13:35:59.620Z",
    "1.4.0": "2021-02-13T10:47:19.614Z",
    "1.5.0": "2021-02-21T13:32:17.064Z",
    "1.6.0": "2021-02-28T13:03:36.047Z",
    "1.7.0": "2021-02-28T17:02:34.214Z",
    "1.8.0": "2021-08-31T15:54:41.507Z",
    "1.9.0-alpha": "2022-03-13T20:33:39.343Z",
    "1.9.0-beta": "2022-03-27T21:57:50.101Z",
    "1.9.0-chi": "2022-04-07T14:12:22.725Z",
    "1.9.0-delta": "2022-04-16T15:37:56.912Z",
    "1.9.0": "2022-04-17T15:20:25.641Z",
    "1.9.1": "2022-07-11T23:13:58.549Z",
    "1.10.0-alpha": "2022-08-14T14:50:50.155Z",
    "1.10.0": "2022-08-15T16:11:24.872Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://eslint-plugin-regex.github.io"
}