@@ -15,25 +15,33 @@ import recommended from "#eslint-plugin-functional/configs/recommended";
15
15
import strict from "#eslint-plugin-functional/configs/strict" ;
16
16
import stylistic from "#eslint-plugin-functional/configs/stylistic" ;
17
17
import { rules } from "#eslint-plugin-functional/rules" ;
18
+ import { ruleNameScope } from "#eslint-plugin-functional/utils/misc" ;
18
19
19
- const config : Linter . Plugin = {
20
+ export default {
20
21
rules,
21
22
configs : {
22
- all,
23
- lite,
24
- recommended,
25
- strict,
26
- off,
27
- "disable-type-checked" : disableTypeChecked ,
28
- "external-vanilla-recommended" : externalVanillaRecommended ,
29
- "external-typescript-recommended" : externalTypeScriptRecommended ,
30
- currying,
31
- "no-exceptions" : noExceptions ,
32
- "no-mutations" : noMutations ,
33
- "no-other-paradigms" : noOtherParadigms ,
34
- "no-statements" : noStatements ,
35
- stylistic,
23
+ all : { plugins : [ ruleNameScope ] , rules : all } ,
24
+ lite : { plugins : [ ruleNameScope ] , rules : lite } ,
25
+ recommended : { plugins : [ ruleNameScope ] , rules : recommended } ,
26
+ strict : { plugins : [ ruleNameScope ] , rules : strict } ,
27
+ off : { plugins : [ ruleNameScope ] , rules : off } ,
28
+ "disable-type-checked" : {
29
+ plugins : [ ruleNameScope ] ,
30
+ rules : disableTypeChecked ,
31
+ } ,
32
+ "external-vanilla-recommended" : {
33
+ plugins : [ ruleNameScope ] ,
34
+ rules : externalVanillaRecommended ,
35
+ } ,
36
+ "external-typescript-recommended" : {
37
+ plugins : [ ruleNameScope ] ,
38
+ rules : externalTypeScriptRecommended ,
39
+ } ,
40
+ currying : { plugins : [ ruleNameScope ] , rules : currying } ,
41
+ "no-exceptions" : { plugins : [ ruleNameScope ] , rules : noExceptions } ,
42
+ "no-mutations" : { plugins : [ ruleNameScope ] , rules : noMutations } ,
43
+ "no-other-paradigms" : { plugins : [ ruleNameScope ] , rules : noOtherParadigms } ,
44
+ "no-statements" : { plugins : [ ruleNameScope ] , rules : noStatements } ,
45
+ stylistic : { plugins : [ ruleNameScope ] , rules : stylistic } ,
36
46
} ,
37
- } ;
38
-
39
- export default config ;
47
+ } as Linter . Plugin ;
0 commit comments