Skip to content

Commit c00b7ad

Browse files
committed
Always use /
1 parent 174f6e0 commit c00b7ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.eslintplugin/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ await Promise.all(
1212
glob.sync(`${import.meta.dirname}/*.ts`)
1313
.filter(file => !file.endsWith('index.ts') && !file.endsWith('utils.ts'))
1414
.map(async file => {
15-
rules[path.basename(file, '.ts')] = (await import(file)).default;
15+
const normalizedPath = file.split(path.sep).join('/');
16+
rules[path.basename(file, '.ts')] = (await import(normalizedPath)).default;
1617
})
1718
);
1819

0 commit comments

Comments
 (0)