File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ This ESLint plugin provides linting rules relate to better ways to help you avoi
23
23
- Find the wrong usage of regular expressions, and their hints.
24
24
- Enforces a consistent style of regular expressions.
25
25
- Find hints for writing optimized regular expressions.
26
+ - 80 plugin rules for regular expression syntax and features.
26
27
27
28
You can check on the [ Online DEMO] ( https://ota-meshi.github.io/eslint-plugin-regexp/playground/ ) .
28
29
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ This ESLint plugin provides linting rules relate to better ways to help you avoi
23
23
- Find the wrong usage of regular expressions, and their hints.
24
24
- Enforces a consistent style of regular expressions.
25
25
- Find hints for writing optimized regular expressions.
26
+ - 80 plugin rules for regular expression syntax and features.
26
27
27
28
You can check on the [ Online DEMO] ( ./playground/index.md ) .
28
29
Original file line number Diff line number Diff line change 1
1
import path from "path"
2
2
import fs from "fs"
3
+ import { rules } from "./lib/load-rules"
3
4
4
5
const readmeFilePath = path . resolve ( __dirname , "../README.md" )
5
- const readme = fs . readFileSync ( readmeFilePath , "utf8" )
6
+ const readme = fs
7
+ . readFileSync ( readmeFilePath , "utf8" )
8
+ . replace (
9
+ / \d { 1 , 4 } p l u g i n r u l e s / u,
10
+ `${ rules . filter ( ( rule ) => ! rule . meta . deprecated ) . length } plugin rules` ,
11
+ )
12
+
13
+ fs . writeFileSync ( readmeFilePath , readme )
6
14
7
15
const docsReadmeFilePath = path . resolve ( __dirname , "../docs/index.md" )
8
16
You can’t perform that action at this time.
0 commit comments