Skip to content

Commit 03b3651

Browse files
renovate[bot]renovate-botota-meshi
authored
Update dependency @ota-meshi/eslint-plugin to ^0.5.0 (#67)
* Update dependency @ota-meshi/eslint-plugin to ^0.5.0 * update Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: yosuke ota <[email protected]>
1 parent 94719a7 commit 03b3651

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"eslint": ">=6.0.0"
4747
},
4848
"devDependencies": {
49-
"@ota-meshi/eslint-plugin": "^0.4.0",
49+
"@ota-meshi/eslint-plugin": "^0.5.0",
5050
"@types/eslint": "^7.2.0",
5151
"@types/eslint-scope": "^3.7.0",
5252
"@types/estree": "~0.0.45",

tools/update-docs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ This rule was introduced in eslint-plugin-regexp ${this.since}
173173
public adjustCodeBlocks() {
174174
// Adjust the necessary blank lines before and after the code block so that GitHub can recognize `.md`.
175175
this.content = this.content.replace(
176-
/(<eslint-code-block([\s\S]*?)>)\n+```/gmu,
176+
/(<eslint-code-block[\s\S]*?>)\n+```/gmu,
177177
"$1\n\n```",
178178
)
179179
this.content = this.content.replace(
@@ -198,7 +198,7 @@ This rule was introduced in eslint-plugin-regexp ${this.since}
198198
.map((key) => `${key}: ${yamlValue((fileIntro as any)[key])}`)
199199
.join("\n")}\n---\n`
200200

201-
const fileIntroPattern = /^---\n(.*\n)+?---\n*/gu
201+
const fileIntroPattern = /^---\n(?:.*\n)+?---\n*/gu
202202

203203
if (fileIntroPattern.test(this.content)) {
204204
this.content = this.content.replace(

tools/update-readme.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ fs.writeFileSync(
4141
/<!--USAGE_SECTION_START-->[\s\S]*<!--USAGE_SECTION_END-->/u,
4242
"See [User Guide](./user-guide/README.md).",
4343
)
44-
.replace(
45-
/<!--DOCS_IGNORE_START-->([\s\S]*?)<!--DOCS_IGNORE_END-->/gu,
46-
"",
47-
)
44+
.replace(/<!--DOCS_IGNORE_START-->[\s\S]*?<!--DOCS_IGNORE_END-->/gu, "")
4845
.replace(
4946
/\(https:\/\/ota-meshi.github.io\/eslint-plugin-regexp/gu,
5047
"(.",

0 commit comments

Comments
 (0)