@itcase/lint 1.1.74 → 1.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/eslint/customPlugins/dataTestIdPlugin/constants.d.ts +33 -0
  2. package/dist/eslint/customPlugins/dataTestIdPlugin/example.d.ts +1 -0
  3. package/dist/eslint/customPlugins/dataTestIdPlugin/extra.d.ts +12 -0
  4. package/dist/eslint/customPlugins/dataTestIdPlugin/plugin.d.ts +40 -0
  5. package/dist/eslint/customPlugins/dataTestIdPlugin/rule.d.ts +5 -0
  6. package/dist/eslint/customPlugins/dataTestIdPlugin/rule.test.d.ts +1 -0
  7. package/dist/eslint/customPlugins/dataTestIdPlugin/ruleVisitors.d.ts +3 -0
  8. package/dist/eslint/customPlugins/dataTestIdPlugin/utils.d.ts +18 -0
  9. package/dist/eslint/index.d.ts +2 -0
  10. package/dist/eslint/mobx/index.d.ts +16 -0
  11. package/dist/eslint/mobx.js +20 -0
  12. package/dist/eslint/perfectionist/index.d.ts +11 -0
  13. package/dist/eslint/perfectionist/sort/customGroup.d.ts +105 -0
  14. package/dist/eslint/perfectionist/sort/props.d.ts +2 -0
  15. package/dist/eslint/perfectionist/sortClasses.d.ts +10 -0
  16. package/dist/eslint/perfectionist/sortEnums.d.ts +5 -0
  17. package/dist/eslint/perfectionist/sortExports.d.ts +15 -0
  18. package/dist/eslint/perfectionist/sortInterfaces.d.ts +10 -0
  19. package/dist/eslint/perfectionist/sortIntersectionTypes.d.ts +5 -0
  20. package/dist/eslint/perfectionist/sortJSXProps.d.ts +10 -0
  21. package/dist/eslint/perfectionist/sortMaps.d.ts +5 -0
  22. package/dist/eslint/perfectionist/sortNamedExports.d.ts +16 -0
  23. package/dist/eslint/perfectionist/sortObjectTypes.d.ts +10 -0
  24. package/dist/eslint/perfectionist/sortObjects.d.ts +23 -0
  25. package/dist/eslint/perfectionist/sortUnionTypes.d.ts +6 -0
  26. package/dist/eslint/perfectionist.js +30 -0
  27. package/dist/eslint/react-native.js +22 -0
  28. package/dist/eslint/storybook/index.d.ts +408 -0
  29. package/dist/eslint/storybook.js +10 -0
  30. package/dist/eslint/utils.d.ts +3 -0
  31. package/dist/eslint.js +342 -0
  32. package/dist/prettier/index.d.ts +15 -0
  33. package/dist/prettier/react-native/index.d.ts +9 -0
  34. package/dist/prettier/react-native.js +68 -0
  35. package/dist/prettier.js +34 -0
  36. package/dist/sortUnionTypes_rTLrktP3.js +619 -0
  37. package/dist/stylelint/index.d.ts +85 -0
  38. package/dist/stylelint.js +249 -0
  39. package/package.json +44 -18
  40. package/eslint/index.js +0 -108
  41. package/eslint/mobx/index.js +0 -18
  42. package/eslint/perfectionist/index.js +0 -11
  43. package/eslint/perfectionist/sort/customGroup.js +0 -118
  44. package/eslint/perfectionist/sort/props.js +0 -355
  45. package/eslint/perfectionist/sortClasses.js +0 -28
  46. package/eslint/perfectionist/sortEnums.js +0 -3
  47. package/eslint/perfectionist/sortExports.js +0 -17
  48. package/eslint/perfectionist/sortInterfaces.js +0 -38
  49. package/eslint/perfectionist/sortIntersectionTypes.js +0 -3
  50. package/eslint/perfectionist/sortJSXProps.js +0 -30
  51. package/eslint/perfectionist/sortMaps.js +0 -3
  52. package/eslint/perfectionist/sortNamedExports.js +0 -18
  53. package/eslint/perfectionist/sortObjectTypes.js +0 -32
  54. package/eslint/perfectionist/sortObjects.js +0 -44
  55. package/eslint/perfectionist/sortUnionTypes.js +0 -22
  56. package/eslint/react-native/index.js +0 -20
  57. package/eslint/storybook/index.js +0 -8
  58. package/eslint/utils.js +0 -25
  59. package/prettier/index.js +0 -32
  60. package/prettier/react-native/index.js +0 -66
  61. package/stylelint/index.js +0 -248
@@ -0,0 +1,408 @@
1
+ declare const _default: {
2
+ files: string[];
3
+ plugins: {
4
+ strorybook: {
5
+ configs: {
6
+ csf: {
7
+ plugins: string[];
8
+ overrides: ({
9
+ files: string[];
10
+ rules: {
11
+ readonly "react-hooks/rules-of-hooks": "off";
12
+ readonly "import/no-anonymous-default-export": "off";
13
+ readonly "storybook/csf-component": "warn";
14
+ readonly "storybook/default-exports": "error";
15
+ readonly "storybook/hierarchy-separator": "warn";
16
+ readonly "storybook/no-redundant-story-name": "warn";
17
+ readonly "storybook/story-exports": "error";
18
+ readonly "storybook/no-uninstalled-addons"?: undefined;
19
+ };
20
+ } | {
21
+ files: string[];
22
+ rules: {
23
+ readonly "storybook/no-uninstalled-addons": "error";
24
+ readonly "react-hooks/rules-of-hooks"?: undefined;
25
+ readonly "import/no-anonymous-default-export"?: undefined;
26
+ readonly "storybook/csf-component"?: undefined;
27
+ readonly "storybook/default-exports"?: undefined;
28
+ readonly "storybook/hierarchy-separator"?: undefined;
29
+ readonly "storybook/no-redundant-story-name"?: undefined;
30
+ readonly "storybook/story-exports"?: undefined;
31
+ };
32
+ })[];
33
+ };
34
+ "csf-strict": {
35
+ extends: string;
36
+ overrides: {
37
+ files: string[];
38
+ rules: {
39
+ readonly "react-hooks/rules-of-hooks": "off";
40
+ readonly "import/no-anonymous-default-export": "off";
41
+ readonly "storybook/no-stories-of": "error";
42
+ readonly "storybook/no-title-property-in-meta": "error";
43
+ };
44
+ }[];
45
+ };
46
+ "addon-interactions": {
47
+ plugins: string[];
48
+ overrides: ({
49
+ files: string[];
50
+ rules: {
51
+ readonly "react-hooks/rules-of-hooks": "off";
52
+ readonly "import/no-anonymous-default-export": "off";
53
+ readonly "storybook/await-interactions": "error";
54
+ readonly "storybook/context-in-play-function": "error";
55
+ readonly "storybook/use-storybook-expect": "error";
56
+ readonly "storybook/use-storybook-testing-library": "error";
57
+ readonly "storybook/no-uninstalled-addons"?: undefined;
58
+ };
59
+ } | {
60
+ files: string[];
61
+ rules: {
62
+ readonly "storybook/no-uninstalled-addons": "error";
63
+ readonly "react-hooks/rules-of-hooks"?: undefined;
64
+ readonly "import/no-anonymous-default-export"?: undefined;
65
+ readonly "storybook/await-interactions"?: undefined;
66
+ readonly "storybook/context-in-play-function"?: undefined;
67
+ readonly "storybook/use-storybook-expect"?: undefined;
68
+ readonly "storybook/use-storybook-testing-library"?: undefined;
69
+ };
70
+ })[];
71
+ };
72
+ recommended: {
73
+ plugins: string[];
74
+ overrides: ({
75
+ files: string[];
76
+ rules: {
77
+ readonly "react-hooks/rules-of-hooks": "off";
78
+ readonly "import/no-anonymous-default-export": "off";
79
+ readonly "storybook/await-interactions": "error";
80
+ readonly "storybook/context-in-play-function": "error";
81
+ readonly "storybook/default-exports": "error";
82
+ readonly "storybook/hierarchy-separator": "warn";
83
+ readonly "storybook/no-redundant-story-name": "warn";
84
+ readonly "storybook/no-renderer-packages": "error";
85
+ readonly "storybook/prefer-pascal-case": "warn";
86
+ readonly "storybook/story-exports": "error";
87
+ readonly "storybook/use-storybook-expect": "error";
88
+ readonly "storybook/use-storybook-testing-library": "error";
89
+ readonly "storybook/no-uninstalled-addons"?: undefined;
90
+ };
91
+ } | {
92
+ files: string[];
93
+ rules: {
94
+ readonly "storybook/no-uninstalled-addons": "error";
95
+ readonly "react-hooks/rules-of-hooks"?: undefined;
96
+ readonly "import/no-anonymous-default-export"?: undefined;
97
+ readonly "storybook/await-interactions"?: undefined;
98
+ readonly "storybook/context-in-play-function"?: undefined;
99
+ readonly "storybook/default-exports"?: undefined;
100
+ readonly "storybook/hierarchy-separator"?: undefined;
101
+ readonly "storybook/no-redundant-story-name"?: undefined;
102
+ readonly "storybook/no-renderer-packages"?: undefined;
103
+ readonly "storybook/prefer-pascal-case"?: undefined;
104
+ readonly "storybook/story-exports"?: undefined;
105
+ readonly "storybook/use-storybook-expect"?: undefined;
106
+ readonly "storybook/use-storybook-testing-library"?: undefined;
107
+ };
108
+ })[];
109
+ };
110
+ "flat/csf": ({
111
+ name: string;
112
+ plugins: {
113
+ readonly storybook: {
114
+ configs: any;
115
+ rules: {
116
+ "await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
117
+ "context-in-play-function": import("@typescript-eslint/utils/ts-eslint").RuleModule<"passContextToPlayFunction", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
118
+ "csf-component": import("@typescript-eslint/utils/ts-eslint").RuleModule<"missingComponentProperty", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
119
+ "default-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"fixSuggestion" | "shouldHaveDefaultExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
120
+ "hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
121
+ "meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
122
+ csfVersion: number;
123
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
124
+ "meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
125
+ "no-redundant-story-name": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeRedundantName" | "storyNameIsRedundant", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
126
+ "no-renderer-packages": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noRendererPackages", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
127
+ "no-stories-of": import("@typescript-eslint/utils/ts-eslint").RuleModule<"doNotUseStoriesOf", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
128
+ "no-title-property-in-meta": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeTitleInMeta" | "noTitleInMeta", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
129
+ "no-uninstalled-addons": import("@typescript-eslint/utils/ts-eslint").RuleModule<"addonIsNotInstalled", {
130
+ packageJsonLocation: string;
131
+ ignore: string[];
132
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
133
+ "prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
134
+ "story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
135
+ "use-storybook-expect": import("@typescript-eslint/utils/ts-eslint").RuleModule<string, {
136
+ storybookJestPath?: string;
137
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
138
+ "use-storybook-testing-library": import("@typescript-eslint/utils/ts-eslint").RuleModule<"updateImports" | "dontUseTestingLibraryDirectly", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
139
+ };
140
+ };
141
+ };
142
+ files?: undefined;
143
+ rules?: undefined;
144
+ } | {
145
+ name: string;
146
+ files: string[];
147
+ rules: {
148
+ readonly "react-hooks/rules-of-hooks": "off";
149
+ readonly "import/no-anonymous-default-export": "off";
150
+ readonly "storybook/csf-component": "warn";
151
+ readonly "storybook/default-exports": "error";
152
+ readonly "storybook/hierarchy-separator": "warn";
153
+ readonly "storybook/no-redundant-story-name": "warn";
154
+ readonly "storybook/story-exports": "error";
155
+ readonly "storybook/no-uninstalled-addons"?: undefined;
156
+ };
157
+ plugins?: undefined;
158
+ } | {
159
+ name: string;
160
+ files: string[];
161
+ rules: {
162
+ readonly "storybook/no-uninstalled-addons": "error";
163
+ readonly "react-hooks/rules-of-hooks"?: undefined;
164
+ readonly "import/no-anonymous-default-export"?: undefined;
165
+ readonly "storybook/csf-component"?: undefined;
166
+ readonly "storybook/default-exports"?: undefined;
167
+ readonly "storybook/hierarchy-separator"?: undefined;
168
+ readonly "storybook/no-redundant-story-name"?: undefined;
169
+ readonly "storybook/story-exports"?: undefined;
170
+ };
171
+ plugins?: undefined;
172
+ })[];
173
+ "flat/csf-strict": ({
174
+ name: string;
175
+ plugins: {
176
+ readonly storybook: {
177
+ configs: any;
178
+ rules: {
179
+ "await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
180
+ "context-in-play-function": import("@typescript-eslint/utils/ts-eslint").RuleModule<"passContextToPlayFunction", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
181
+ "csf-component": import("@typescript-eslint/utils/ts-eslint").RuleModule<"missingComponentProperty", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
182
+ "default-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"fixSuggestion" | "shouldHaveDefaultExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
183
+ "hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
184
+ "meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
185
+ csfVersion: number;
186
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
187
+ "meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
188
+ "no-redundant-story-name": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeRedundantName" | "storyNameIsRedundant", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
189
+ "no-renderer-packages": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noRendererPackages", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
190
+ "no-stories-of": import("@typescript-eslint/utils/ts-eslint").RuleModule<"doNotUseStoriesOf", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
191
+ "no-title-property-in-meta": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeTitleInMeta" | "noTitleInMeta", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
192
+ "no-uninstalled-addons": import("@typescript-eslint/utils/ts-eslint").RuleModule<"addonIsNotInstalled", {
193
+ packageJsonLocation: string;
194
+ ignore: string[];
195
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
196
+ "prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
197
+ "story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
198
+ "use-storybook-expect": import("@typescript-eslint/utils/ts-eslint").RuleModule<string, {
199
+ storybookJestPath?: string;
200
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
201
+ "use-storybook-testing-library": import("@typescript-eslint/utils/ts-eslint").RuleModule<"updateImports" | "dontUseTestingLibraryDirectly", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
202
+ };
203
+ };
204
+ };
205
+ files?: undefined;
206
+ rules?: undefined;
207
+ } | {
208
+ name: string;
209
+ files: string[];
210
+ rules: {
211
+ readonly "react-hooks/rules-of-hooks": "off";
212
+ readonly "import/no-anonymous-default-export": "off";
213
+ readonly "storybook/csf-component": "warn";
214
+ readonly "storybook/default-exports": "error";
215
+ readonly "storybook/hierarchy-separator": "warn";
216
+ readonly "storybook/no-redundant-story-name": "warn";
217
+ readonly "storybook/story-exports": "error";
218
+ readonly "storybook/no-uninstalled-addons"?: undefined;
219
+ };
220
+ plugins?: undefined;
221
+ } | {
222
+ name: string;
223
+ files: string[];
224
+ rules: {
225
+ readonly "storybook/no-uninstalled-addons": "error";
226
+ readonly "react-hooks/rules-of-hooks"?: undefined;
227
+ readonly "import/no-anonymous-default-export"?: undefined;
228
+ readonly "storybook/csf-component"?: undefined;
229
+ readonly "storybook/default-exports"?: undefined;
230
+ readonly "storybook/hierarchy-separator"?: undefined;
231
+ readonly "storybook/no-redundant-story-name"?: undefined;
232
+ readonly "storybook/story-exports"?: undefined;
233
+ };
234
+ plugins?: undefined;
235
+ } | {
236
+ name: string;
237
+ files: string[];
238
+ rules: {
239
+ readonly "react-hooks/rules-of-hooks": "off";
240
+ readonly "import/no-anonymous-default-export": "off";
241
+ readonly "storybook/no-stories-of": "error";
242
+ readonly "storybook/no-title-property-in-meta": "error";
243
+ };
244
+ })[];
245
+ "flat/addon-interactions": ({
246
+ name: string;
247
+ plugins: {
248
+ readonly storybook: {
249
+ configs: any;
250
+ rules: {
251
+ "await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
252
+ "context-in-play-function": import("@typescript-eslint/utils/ts-eslint").RuleModule<"passContextToPlayFunction", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
253
+ "csf-component": import("@typescript-eslint/utils/ts-eslint").RuleModule<"missingComponentProperty", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
254
+ "default-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"fixSuggestion" | "shouldHaveDefaultExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
255
+ "hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
256
+ "meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
257
+ csfVersion: number;
258
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
259
+ "meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
260
+ "no-redundant-story-name": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeRedundantName" | "storyNameIsRedundant", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
261
+ "no-renderer-packages": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noRendererPackages", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
262
+ "no-stories-of": import("@typescript-eslint/utils/ts-eslint").RuleModule<"doNotUseStoriesOf", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
263
+ "no-title-property-in-meta": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeTitleInMeta" | "noTitleInMeta", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
264
+ "no-uninstalled-addons": import("@typescript-eslint/utils/ts-eslint").RuleModule<"addonIsNotInstalled", {
265
+ packageJsonLocation: string;
266
+ ignore: string[];
267
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
268
+ "prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
269
+ "story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
270
+ "use-storybook-expect": import("@typescript-eslint/utils/ts-eslint").RuleModule<string, {
271
+ storybookJestPath?: string;
272
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
273
+ "use-storybook-testing-library": import("@typescript-eslint/utils/ts-eslint").RuleModule<"updateImports" | "dontUseTestingLibraryDirectly", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
274
+ };
275
+ };
276
+ };
277
+ files?: undefined;
278
+ rules?: undefined;
279
+ } | {
280
+ name: string;
281
+ files: string[];
282
+ rules: {
283
+ readonly "react-hooks/rules-of-hooks": "off";
284
+ readonly "import/no-anonymous-default-export": "off";
285
+ readonly "storybook/await-interactions": "error";
286
+ readonly "storybook/context-in-play-function": "error";
287
+ readonly "storybook/use-storybook-expect": "error";
288
+ readonly "storybook/use-storybook-testing-library": "error";
289
+ readonly "storybook/no-uninstalled-addons"?: undefined;
290
+ };
291
+ plugins?: undefined;
292
+ } | {
293
+ name: string;
294
+ files: string[];
295
+ rules: {
296
+ readonly "storybook/no-uninstalled-addons": "error";
297
+ readonly "react-hooks/rules-of-hooks"?: undefined;
298
+ readonly "import/no-anonymous-default-export"?: undefined;
299
+ readonly "storybook/await-interactions"?: undefined;
300
+ readonly "storybook/context-in-play-function"?: undefined;
301
+ readonly "storybook/use-storybook-expect"?: undefined;
302
+ readonly "storybook/use-storybook-testing-library"?: undefined;
303
+ };
304
+ plugins?: undefined;
305
+ })[];
306
+ "flat/recommended": ({
307
+ name: string;
308
+ plugins: {
309
+ readonly storybook: {
310
+ configs: any;
311
+ rules: {
312
+ "await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
313
+ "context-in-play-function": import("@typescript-eslint/utils/ts-eslint").RuleModule<"passContextToPlayFunction", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
314
+ "csf-component": import("@typescript-eslint/utils/ts-eslint").RuleModule<"missingComponentProperty", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
315
+ "default-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"fixSuggestion" | "shouldHaveDefaultExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
316
+ "hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
317
+ "meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
318
+ csfVersion: number;
319
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
320
+ "meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
321
+ "no-redundant-story-name": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeRedundantName" | "storyNameIsRedundant", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
322
+ "no-renderer-packages": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noRendererPackages", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
323
+ "no-stories-of": import("@typescript-eslint/utils/ts-eslint").RuleModule<"doNotUseStoriesOf", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
324
+ "no-title-property-in-meta": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeTitleInMeta" | "noTitleInMeta", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
325
+ "no-uninstalled-addons": import("@typescript-eslint/utils/ts-eslint").RuleModule<"addonIsNotInstalled", {
326
+ packageJsonLocation: string;
327
+ ignore: string[];
328
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
329
+ "prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
330
+ "story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
331
+ "use-storybook-expect": import("@typescript-eslint/utils/ts-eslint").RuleModule<string, {
332
+ storybookJestPath?: string;
333
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
334
+ "use-storybook-testing-library": import("@typescript-eslint/utils/ts-eslint").RuleModule<"updateImports" | "dontUseTestingLibraryDirectly", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
335
+ };
336
+ };
337
+ };
338
+ files?: undefined;
339
+ rules?: undefined;
340
+ } | {
341
+ name: string;
342
+ files: string[];
343
+ rules: {
344
+ readonly "react-hooks/rules-of-hooks": "off";
345
+ readonly "import/no-anonymous-default-export": "off";
346
+ readonly "storybook/await-interactions": "error";
347
+ readonly "storybook/context-in-play-function": "error";
348
+ readonly "storybook/default-exports": "error";
349
+ readonly "storybook/hierarchy-separator": "warn";
350
+ readonly "storybook/no-redundant-story-name": "warn";
351
+ readonly "storybook/no-renderer-packages": "error";
352
+ readonly "storybook/prefer-pascal-case": "warn";
353
+ readonly "storybook/story-exports": "error";
354
+ readonly "storybook/use-storybook-expect": "error";
355
+ readonly "storybook/use-storybook-testing-library": "error";
356
+ readonly "storybook/no-uninstalled-addons"?: undefined;
357
+ };
358
+ plugins?: undefined;
359
+ } | {
360
+ name: string;
361
+ files: string[];
362
+ rules: {
363
+ readonly "storybook/no-uninstalled-addons": "error";
364
+ readonly "react-hooks/rules-of-hooks"?: undefined;
365
+ readonly "import/no-anonymous-default-export"?: undefined;
366
+ readonly "storybook/await-interactions"?: undefined;
367
+ readonly "storybook/context-in-play-function"?: undefined;
368
+ readonly "storybook/default-exports"?: undefined;
369
+ readonly "storybook/hierarchy-separator"?: undefined;
370
+ readonly "storybook/no-redundant-story-name"?: undefined;
371
+ readonly "storybook/no-renderer-packages"?: undefined;
372
+ readonly "storybook/prefer-pascal-case"?: undefined;
373
+ readonly "storybook/story-exports"?: undefined;
374
+ readonly "storybook/use-storybook-expect"?: undefined;
375
+ readonly "storybook/use-storybook-testing-library"?: undefined;
376
+ };
377
+ plugins?: undefined;
378
+ })[];
379
+ };
380
+ rules: {
381
+ "await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
382
+ "context-in-play-function": import("@typescript-eslint/utils/ts-eslint").RuleModule<"passContextToPlayFunction", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
383
+ "csf-component": import("@typescript-eslint/utils/ts-eslint").RuleModule<"missingComponentProperty", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
384
+ "default-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"fixSuggestion" | "shouldHaveDefaultExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
385
+ "hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
386
+ "meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
387
+ csfVersion: number;
388
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
389
+ "meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
390
+ "no-redundant-story-name": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeRedundantName" | "storyNameIsRedundant", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
391
+ "no-renderer-packages": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noRendererPackages", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
392
+ "no-stories-of": import("@typescript-eslint/utils/ts-eslint").RuleModule<"doNotUseStoriesOf", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
393
+ "no-title-property-in-meta": import("@typescript-eslint/utils/ts-eslint").RuleModule<"removeTitleInMeta" | "noTitleInMeta", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
394
+ "no-uninstalled-addons": import("@typescript-eslint/utils/ts-eslint").RuleModule<"addonIsNotInstalled", {
395
+ packageJsonLocation: string;
396
+ ignore: string[];
397
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
398
+ "prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
399
+ "story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
400
+ "use-storybook-expect": import("@typescript-eslint/utils/ts-eslint").RuleModule<string, {
401
+ storybookJestPath?: string;
402
+ }[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
403
+ "use-storybook-testing-library": import("@typescript-eslint/utils/ts-eslint").RuleModule<"updateImports" | "dontUseTestingLibraryDirectly", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
404
+ };
405
+ };
406
+ };
407
+ }[];
408
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import eslintStorybook from 'eslint-plugin-storybook';
2
+
3
+ var index = [
4
+ {
5
+ files: ['**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)'],
6
+ plugins: { strorybook: eslintStorybook },
7
+ },
8
+ ];
9
+
10
+ export { index as default };
@@ -0,0 +1,3 @@
1
+ declare const wrapArrayWithCaretAndDollarAnchors: (arr: any) => any;
2
+ declare const wrapArrayWithCaretAndWildcard: (arr: any) => any;
3
+ export { wrapArrayWithCaretAndDollarAnchors, wrapArrayWithCaretAndWildcard };