@tb-dev/eslint-config 4.4.1 → 4.4.2

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.cjs CHANGED
@@ -579,10 +579,11 @@ async function unicorn(options) {
579
579
  async function tailwind(options) {
580
580
  if (!options.features?.tailwind) return {};
581
581
  const plugin = await interopDefault(import('eslint-plugin-tailwindcss'));
582
+ const callees = ["classnames", "clsx", "cn", "ctl", "cva", "tv"];
582
583
  const rules = {
583
- "tailwindcss/classnames-order": "error",
584
- "tailwindcss/enforces-shorthand": "error",
585
- "tailwindcss/no-contradicting-classname": "error",
584
+ "tailwindcss/classnames-order": ["error", { callees }],
585
+ "tailwindcss/enforces-shorthand": ["error", { callees }],
586
+ "tailwindcss/no-contradicting-classname": ["error", { callees }],
586
587
  ...options.overrides?.tailwind
587
588
  };
588
589
  return {
package/dist/index.js CHANGED
@@ -575,10 +575,11 @@ async function unicorn(options) {
575
575
  async function tailwind(options) {
576
576
  if (!options.features?.tailwind) return {};
577
577
  const plugin = await interopDefault(import('eslint-plugin-tailwindcss'));
578
+ const callees = ["classnames", "clsx", "cn", "ctl", "cva", "tv"];
578
579
  const rules = {
579
- "tailwindcss/classnames-order": "error",
580
- "tailwindcss/enforces-shorthand": "error",
581
- "tailwindcss/no-contradicting-classname": "error",
580
+ "tailwindcss/classnames-order": ["error", { callees }],
581
+ "tailwindcss/enforces-shorthand": ["error", { callees }],
582
+ "tailwindcss/no-contradicting-classname": ["error", { callees }],
582
583
  ...options.overrides?.tailwind
583
584
  };
584
585
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "4.4.1",
3
+ "version": "4.4.2",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",