File tree 2 files changed +14
-6
lines changed
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ categories.forEach((category) => {
88
88
} )
89
89
90
90
// Format files.
91
- const linter = new eslint . CLIEngine ( { fix : true } )
92
- const report = linter . executeOnFiles ( [ ROOT ] )
93
- eslint . CLIEngine . outputFixes ( report )
91
+ async function main ( ) {
92
+ const linter = new eslint . ESLint ( { fix : true } )
93
+ const report = await linter . lintFiles ( [ ROOT ] )
94
+ eslint . ESLint . outputFixes ( report )
95
+ }
96
+
97
+ main ( )
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ module.exports = {
43
43
fs . writeFileSync ( filePath , content )
44
44
45
45
// Format files.
46
- const linter = new eslint . CLIEngine ( { fix : true } )
47
- const report = linter . executeOnFiles ( [ filePath ] )
48
- eslint . CLIEngine . outputFixes ( report )
46
+ async function main ( ) {
47
+ const linter = new eslint . ESLint ( { fix : true } )
48
+ const report = await linter . lintFiles ( [ filePath ] )
49
+ eslint . ESLint . outputFixes ( report )
50
+ }
51
+
52
+ main ( )
You can’t perform that action at this time.
0 commit comments