Get unlimited public & private packages + team-based management with npm Teams.Learn more »

eslint-plugin-optimize-regex

1.1.7 • Public • Published

eslint-plugin-optimize-regex

npm npm

Optimize regex literals

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-optimize-regex:

npm install eslint-plugin-optimize-regex --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-optimize-regex globally.

Usage

Add optimize-regex to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "optimize-regex"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "optimize-regex/optimize-regex": "warn"
    }
}

Rules

Inspiration

License

MIT © Ezinwa Okpoechi

Install

npm i eslint-plugin-optimize-regex

DownloadsWeekly Downloads

11,937

Version

1.1.7

License

MIT

Unpacked Size

6.94 kB

Total Files

11

Last publish

Collaborators

  • avatar