Skip to content

Commit 19bbaad

Browse files
committed
fix: fix plugin usage with legacy configurations
1 parent 19c892c commit 19bbaad

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface PluginConfig {
2121

2222
let pluginName = 'de-morgan'
2323

24-
let rules: Record<string, Rule.RuleModule> = {
24+
export let rules: Record<string, Rule.RuleModule> = {
2525
'no-negated-conjunction': noNegatedConjunction,
2626
'no-negated-disjunction': noNegatedDisjunction,
2727
}
@@ -50,14 +50,16 @@ function createLegacyConfig(): Linter.LegacyConfig {
5050
}
5151
}
5252

53+
export let configs = {
54+
'recommended-legacy': createLegacyConfig(),
55+
recommended: createConfig(),
56+
}
57+
5358
export default {
54-
configs: {
55-
'recommended-legacy': createLegacyConfig(),
56-
recommended: createConfig(),
57-
},
5859
meta: {
5960
version: packageVersion,
6061
name: packageName,
6162
},
63+
configs,
6264
rules,
6365
} as PluginConfig

0 commit comments

Comments
 (0)