uilint-eslint 0.1.16 → 0.1.17

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.
package/dist/index.d.ts CHANGED
@@ -2,6 +2,18 @@ import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts
2
2
  import { Linter } from 'eslint';
3
3
  import { ESLintUtils } from '@typescript-eslint/utils';
4
4
 
5
+ /**
6
+ * Component Parser
7
+ *
8
+ * Parses a single component's body to extract styling information
9
+ * and identify nested component usage.
10
+ */
11
+
12
+ /**
13
+ * Known UI library import patterns
14
+ */
15
+ type LibraryName = "shadcn" | "mui" | "chakra" | "antd";
16
+
5
17
  /**
6
18
  * Rule creation helper using @typescript-eslint/utils
7
19
  */
@@ -158,9 +170,9 @@ declare const rules: {
158
170
  } | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
159
171
  name: string;
160
172
  };
161
- "no-mixed-component-libraries": _typescript_eslint_utils_ts_eslint.RuleModule<"mixedLibraries" | "nonPreferredLibrary", [{
162
- libraries?: ("shadcn" | "mui")[];
163
- preferred?: "shadcn" | "mui";
173
+ "no-mixed-component-libraries": _typescript_eslint_utils_ts_eslint.RuleModule<"nonPreferredLibrary" | "transitiveNonPreferred", [{
174
+ preferred: LibraryName;
175
+ libraries?: LibraryName[];
164
176
  }], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
165
177
  name: string;
166
178
  };
@@ -213,9 +225,9 @@ declare const plugin: {
213
225
  } | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
214
226
  name: string;
215
227
  };
216
- "no-mixed-component-libraries": _typescript_eslint_utils_ts_eslint.RuleModule<"mixedLibraries" | "nonPreferredLibrary", [{
217
- libraries?: ("shadcn" | "mui")[];
218
- preferred?: "shadcn" | "mui";
228
+ "no-mixed-component-libraries": _typescript_eslint_utils_ts_eslint.RuleModule<"nonPreferredLibrary" | "transitiveNonPreferred", [{
229
+ preferred: LibraryName;
230
+ libraries?: LibraryName[];
219
231
  }], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
220
232
  name: string;
221
233
  };