Skip to content

Commit a4198bb

Browse files
committed
Also expose SourceCode in eslint shim
1 parent 447408f commit a4198bb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// @ts-nocheck
2-
import * as all from '../../../../node_modules/eslint/lib/linter/linter.js'
3-
const Linter = all.Linter
4-
export { Linter }
5-
export default { Linter }
2+
/* eslint-disable unicorn/prefer-export-from -- exporting as named and default is less duplication without `export…from` */
3+
4+
import { Linter } from '../../../../node_modules/eslint/lib/linter/linter.js'
5+
import SourceCode from '../../../../node_modules/eslint/lib/source-code/source-code.js'
6+
7+
export { Linter, SourceCode }
8+
export default { Linter, SourceCode }

0 commit comments

Comments
 (0)