Skip to content

Commit f8b871a

Browse files
committed
chore: update readme
1 parent eef20b7 commit f8b871a

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This ESLint plugin provides linting rules relate to better ways to help you avoi
2323
- Find the wrong usage of regular expressions, and their hints.
2424
- Enforces a consistent style of regular expressions.
2525
- Find hints for writing optimized regular expressions.
26+
- 80 plugin rules for regular expression syntax and features.
2627

2728
You can check on the [Online DEMO](https://ota-meshi.github.io/eslint-plugin-regexp/playground/).
2829

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This ESLint plugin provides linting rules relate to better ways to help you avoi
2323
- Find the wrong usage of regular expressions, and their hints.
2424
- Enforces a consistent style of regular expressions.
2525
- Find hints for writing optimized regular expressions.
26+
- 80 plugin rules for regular expression syntax and features.
2627

2728
You can check on the [Online DEMO](./playground/index.md).
2829

tools/update-readme.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
import path from "path"
22
import fs from "fs"
3+
import { rules } from "./lib/load-rules"
34

45
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}plugin rules/u,
10+
`${rules.filter((rule) => !rule.meta.deprecated).length} plugin rules`,
11+
)
12+
13+
fs.writeFileSync(readmeFilePath, readme)
614

715
const docsReadmeFilePath = path.resolve(__dirname, "../docs/index.md")
816

0 commit comments

Comments
 (0)