We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cb993e commit b2a400eCopy full SHA for b2a400e
packages/plugin-eslint/src/lib/meta/versions/legacy.ts
@@ -35,11 +35,13 @@ export async function loadRulesForLegacyConfig({
35
if (entry == null || isRuleOff(entry)) {
36
return null;
37
}
38
- const meta = rulesMeta[id];
39
- if (!meta) {
+ const ruleMeta = rulesMeta[id];
+ if (!ruleMeta) {
40
ui().logger.warning(`Metadata not found for ESLint rule ${id}`);
41
42
43
+ // ignoring meta.defaultOptions to match legacy config handling in calculateConfigForFile
44
+ const { defaultOptions: _, ...meta } = ruleMeta;
45
const options = optionsFromRuleEntry(entry);
46
return { id, meta, options };
47
})
0 commit comments