Skip to content

Commit 9c54882

Browse files
committed
refactor: rename function
1 parent 2af51c2 commit 9c54882

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/update-lib-configs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ categories.forEach((category) => {
8888
})
8989

9090
// Format files.
91-
async function main() {
91+
async function format() {
9292
const linter = new eslint.ESLint({ fix: true })
9393
const report = await linter.lintFiles([ROOT])
9494
eslint.ESLint.outputFixes(report)
9595
}
9696

97-
main()
97+
format()

tools/update-lib-index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ module.exports = {
4343
fs.writeFileSync(filePath, content)
4444

4545
// Format files.
46-
async function main() {
46+
async function format() {
4747
const linter = new eslint.ESLint({ fix: true })
4848
const report = await linter.lintFiles([filePath])
4949
eslint.ESLint.outputFixes(report)
5050
}
5151

52-
main()
52+
format()

0 commit comments

Comments
 (0)