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 76fc1d1 commit e3cc3a1Copy full SHA for e3cc3a1
.eslintplugin/index.ts
@@ -9,10 +9,10 @@ import path from 'path';
9
// Re-export all .ts files as rules
10
const rules: Record<string, LooseRuleDefinition> = {};
11
await Promise.all(
12
- glob.sync(`${import.meta.dirname}/*.ts`)
+ glob.sync('*.ts', { cwd: import.meta.dirname })
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;
+ rules[path.basename(file, '.ts')] = (await import('./' + file)).default;
16
})
17
);
18
0 commit comments