File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ const eslintPluginPrettier = {
172172 if ( ! prettierFormat ) {
173173 // Prettier is expensive to load, so only load it if needed.
174174 prettierFormat = /** @type {PrettierFormat } */ (
175- require ( 'synckit' ) . createSyncFn ( require . resolve ( './worker' ) )
175+ require ( 'synckit' ) . createSyncFn ( require . resolve ( './worker.mjs ' ) )
176176 ) ;
177177 }
178178
Original file line number Diff line number Diff line change 3232 " eslint-plugin-prettier.js" ,
3333 " recommended.d.ts" ,
3434 " recommended.js" ,
35- " worker.js "
35+ " worker.mjs "
3636 ],
3737 "keywords" : [
3838 " eslint" ,
Original file line number Diff line number Diff line change 1111 * @import {ESLint} from 'eslint'
1212 */
1313
14- const { runAsWorker } = require ( 'synckit' ) ;
14+ import { runAsWorker } from 'synckit' ;
1515
1616/**
1717 * @type {typeof Prettier }
You can’t perform that action at this time.
0 commit comments