0.0.1 • Published 3 years ago

eslint-plugin-analyze-regex v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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