Skip to content

Commit

Permalink
chore: fix update script
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jun 8, 2024
1 parent 4b5f294 commit d9eea76
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/tests/fixtures
/tests-integrations/config-recommended
/docs/.vitepress/cache
/scripts/update-**.ts

# ignore files
/CHANGELOG.md
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function writeFile(filePath: string, content: string) {
) as Options
await fs.writeFile(
filePath,
format(linted, { filepath: filePath, ...prettierrc })
await format(linted, { filepath: filePath, ...prettierrc })
)
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/update-index-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ ${withCategories.map(toCategorySection).join('\n')}
// write docs index
await fs.writeFile(
filePath,
format(content, { filepath: filePath, ...prettierrc })
await format(content, { filepath: filePath, ...prettierrc })
)
}
6 changes: 3 additions & 3 deletions scripts/update-rule-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ class DocFile {
return this
}

write() {
async write() {
writeFileSync(
this.filePath,
format(this.content, {
await format(this.content, {
filepath: this.filePath,
...prettierrc
})
Expand Down Expand Up @@ -167,7 +167,7 @@ This rule was introduced in \`@intlify/eslint-plugin-vue-i18n\` ${this.since}
export async function update(): Promise<void> {
for (const rule of await getRules()) {
const doc = await new DocFile(rule).init()
doc
await doc
.updateFileIntro()
.updateHeader()
.updateCodeBlocks()
Expand Down

0 comments on commit d9eea76

Please sign in to comment.