Skip to content

Commit 6cc2b34

Browse files
Fix eslint issues in export-order-loaader
1 parent 5d1ba5e commit 6cc2b34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

code/builders/builder-webpack5/src/loaders/export-order-loader.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { parse } from 'es-module-lexer';
22
import MagicString from 'magic-string';
3-
import { LoaderContext } from 'webpack';
3+
import type { LoaderContext } from 'webpack';
44

55
export default async function loader(this: LoaderContext<any>, source: string) {
66
const callback = this.async();
77

88
try {
9+
// eslint-disable-next-line @typescript-eslint/naming-convention
910
const [_, exports] = parse(source);
1011

1112
if (exports.includes('__namedExportsOrder')) {
@@ -21,4 +22,4 @@ export default async function loader(this: LoaderContext<any>, source: string) {
2122
} catch (err) {
2223
return callback(err as any);
2324
}
24-
};
25+
}

0 commit comments

Comments
 (0)