We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/
1 parent 174f6e0 commit c00b7adCopy full SHA for c00b7ad
.eslintplugin/index.ts
@@ -12,7 +12,8 @@ await Promise.all(
12
glob.sync(`${import.meta.dirname}/*.ts`)
13
.filter(file => !file.endsWith('index.ts') && !file.endsWith('utils.ts'))
14
.map(async file => {
15
- rules[path.basename(file, '.ts')] = (await import(file)).default;
+ const normalizedPath = file.split(path.sep).join('/');
16
+ rules[path.basename(file, '.ts')] = (await import(normalizedPath)).default;
17
})
18
);
19
0 commit comments