File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ import stylistic from "#eslint-plugin-functional/configs/stylistic";
17
17
import { rules } from "#eslint-plugin-functional/rules" ;
18
18
import { __VERSION__ } from "#eslint-plugin-functional/utils/constants" ;
19
19
20
- const functional = {
21
- meta : {
22
- name : "eslint-plugin-functional" ,
23
- version : __VERSION__ ,
24
- } as const ,
20
+ const meta = {
21
+ name : "eslint-plugin-functional" ,
22
+ version : __VERSION__ ,
23
+ } as const ;
24
+
25
+ const functional : FlatConfig . Plugin = {
26
+ meta,
25
27
rules,
26
- } satisfies Omit < FlatConfig . Plugin , "configs" > ;
28
+ } ;
27
29
28
30
const configs = {
29
31
all : { plugins : { functional } , rules : all } ,
@@ -54,7 +56,11 @@ const configs = {
54
56
stylistic : { plugins : { functional } , rules : stylistic } ,
55
57
} satisfies Record < string , FlatConfig . Config > ;
56
58
57
- export default {
58
- ...functional ,
59
- configs,
60
- } as const ;
59
+ // eslint-disable-next-line functional/immutable-data, functional/no-expression-statements
60
+ functional . configs = configs ;
61
+
62
+ export default functional as FlatConfig . Plugin & {
63
+ meta : typeof meta ;
64
+ rules : typeof rules ;
65
+ configs : typeof configs ;
66
+ } ;
You can’t perform that action at this time.
0 commit comments