Skip to content

Commit 5e21554

Browse files
authored
chore: fix formatting generated files with ESLint (#47)
1 parent b3756b2 commit 5e21554

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/update-unicode-ids.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function restoreRanges(data: string): number[] {
112112
fix: true,
113113
baseConfig: { rules: { curly: "off" } },
114114
})
115-
const [result] = await engine.lintText(code, { filePath: "ids.ts" })
115+
const [result] = await engine.lintText(code, { filePath: FILE_PATH })
116116
code = result.output ?? code
117117

118118
logger.log("Writing '%s'...", FILE_PATH)

scripts/update-unicode-properties.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export function isValidLoneUnicodeProperty(version: number, value: string): bool
142142

143143
logger.log("Formatting code...")
144144
const engine = new ESLint({ fix: true })
145-
const [result] = await engine.lintText(code, { filePath: "properties.ts" })
145+
const [result] = await engine.lintText(code, { filePath: FILE_PATH })
146146
code = result.output ?? code
147147

148148
logger.log("Writing '%s'...", FILE_PATH)

0 commit comments

Comments
 (0)