eslint-plugin-analyze-regex
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

eslint-plugin-analyze-regex

分析正则表达式并给出分析结果和建议

安装

OS X & Linux & Windows:

npm i -D eslint-plugin-analyze-regex --registry https://registry.npmjs.com/

用例

在 .eslintrc.js 中配置

"extends": [
  // YOUR ESLINT CONFIG
  ...,
  "plugin:analyze-regex/recommended"
],
"plugins": [
  "analyze-regex"
],
"rules": {
  // YOUR ESLINT RULES
  ...,
  "analyze-regex/check-vulnerable-regex": 2,
  "analyze-regex/check-optimized-regex": 1
}

效果预览

img

开发

安装依赖由 lerna 来接管,请在项目根目录执行 npm run boot

构建打包

npm run build

发布

发布由 lerna 来接管,请在项目根目录执行 npm run pub

版本变更记录

CHANGELOG

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-analyze-regex

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

7.81 kB

Total Files

6

Last publish

Collaborators

  • yuanhongboo