uilint-eslint 0.2.54 → 0.2.55
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 +16 -10
- package/dist/index.js +302 -284
- package/dist/index.js.map +1 -1
- package/dist/rules/prefer-tailwind.js +278 -0
- package/dist/rules/prefer-tailwind.js.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +18 -36
- package/src/rule-registry.ts +3 -2
- package/src/rules/prefer-tailwind.test.ts +500 -0
- package/src/rules/prefer-tailwind.ts +370 -0
- package/dist/rules/consistent-spacing.js +0 -243
- package/dist/rules/consistent-spacing.js.map +0 -1
- package/src/rules/consistent-spacing.ts +0 -244
package/dist/index.d.ts
CHANGED
|
@@ -675,11 +675,6 @@ declare const rules: {
|
|
|
675
675
|
"no-arbitrary-tailwind": _typescript_eslint_utils_ts_eslint.RuleModule<"noArbitraryValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
676
676
|
name: string;
|
|
677
677
|
};
|
|
678
|
-
"consistent-spacing": _typescript_eslint_utils_ts_eslint.RuleModule<"invalidSpacing", [{
|
|
679
|
-
scale?: number[];
|
|
680
|
-
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
681
|
-
name: string;
|
|
682
|
-
};
|
|
683
678
|
"consistent-dark-mode": _typescript_eslint_utils_ts_eslint.RuleModule<"inconsistentDarkMode" | "missingDarkMode", [({
|
|
684
679
|
warnOnMissingDarkMode?: boolean;
|
|
685
680
|
} | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -795,6 +790,14 @@ declare const rules: {
|
|
|
795
790
|
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
796
791
|
name: string;
|
|
797
792
|
};
|
|
793
|
+
"prefer-tailwind": _typescript_eslint_utils_ts_eslint.RuleModule<"preferTailwind", [({
|
|
794
|
+
styleRatioThreshold?: number;
|
|
795
|
+
minElementsForAnalysis?: number;
|
|
796
|
+
allowedStyleProperties?: string[];
|
|
797
|
+
ignoreComponents?: string[];
|
|
798
|
+
} | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
799
|
+
name: string;
|
|
800
|
+
};
|
|
798
801
|
};
|
|
799
802
|
/**
|
|
800
803
|
* Plugin metadata
|
|
@@ -815,11 +818,6 @@ declare const plugin: {
|
|
|
815
818
|
"no-arbitrary-tailwind": _typescript_eslint_utils_ts_eslint.RuleModule<"noArbitraryValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
816
819
|
name: string;
|
|
817
820
|
};
|
|
818
|
-
"consistent-spacing": _typescript_eslint_utils_ts_eslint.RuleModule<"invalidSpacing", [{
|
|
819
|
-
scale?: number[];
|
|
820
|
-
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
821
|
-
name: string;
|
|
822
|
-
};
|
|
823
821
|
"consistent-dark-mode": _typescript_eslint_utils_ts_eslint.RuleModule<"inconsistentDarkMode" | "missingDarkMode", [({
|
|
824
822
|
warnOnMissingDarkMode?: boolean;
|
|
825
823
|
} | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -935,6 +933,14 @@ declare const plugin: {
|
|
|
935
933
|
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
936
934
|
name: string;
|
|
937
935
|
};
|
|
936
|
+
"prefer-tailwind": _typescript_eslint_utils_ts_eslint.RuleModule<"preferTailwind", [({
|
|
937
|
+
styleRatioThreshold?: number;
|
|
938
|
+
minElementsForAnalysis?: number;
|
|
939
|
+
allowedStyleProperties?: string[];
|
|
940
|
+
ignoreComponents?: string[];
|
|
941
|
+
} | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
942
|
+
name: string;
|
|
943
|
+
};
|
|
938
944
|
};
|
|
939
945
|
};
|
|
940
946
|
/**
|