Repository navigation
v3.0.0-rc.1
Pre-releaseMajor Changes
-
#56
9d48fbcThanks @stevensacks! - Breaking: importingFCorFunctionComponentfromreactis now an error everywhere, including test and story files. Type props inline instead:type ButtonProps = {...}; const Button = ({...}: ButtonProps) => ....Added: the opt-in
shadcn()factory bundles@shadcn/lint(exact-pinned) so role tokens are the only color vocabulary. It setsshadcn/no-raw-colors,shadcn/require-static-classes,shadcn/no-arbitrary-valuesandshadcn/no-inline-stylesto error,shadcn/no-restyleto error withallow: ['layout'], andshadcn/no-unknown-classesoff in favor of better-tailwindcss'sno-unknown-classes. Its vendored-ui block turns Prettier and the house-style rules off forcomponents/ui/*.tsx(registry output stays byte-identical toshadcn add) whileshadcn/no-raw-colors,react-hooks/*and the other correctness rules stay on, andcomponents/ui/tests/**stays fully linted. Spread...lint.shadcn({ui: '~/components/ui'})as the last entry, after the full GAIA composition and...lint.prettier.The
eslintpeer floor rises from^9.0.0to^9.30.0, which@shadcn/lintrequires.@shadcn/lintalso pulls a dev-only copy of thecnpackage.
Patch Changes
-
#57
c2e285fThanks @stevensacks! - Fixed: an unusedeslint-disabledirective now fails a plaineslintrun at error severity (linterOptions.reportUnusedDisableDirectives: 'error'). Theeslint-comments/no-unused-disablerule it replaces could never report, so the@eslint-community/eslint-plugin-eslint-commentsdependency is removed.unicorn/prefer-set-sizeandunicorn/no-blob-to-fileare now off: under the TypeScript parser they cannot report.Updated: minor and patch releases of
eslint-plugin-perfectionist,eslint-plugin-playwright,eslint-plugin-sonarjs,eslint-plugin-storybookandeslint-plugin-no-relative-import-paths. -
#56
9d48fbcThanks @stevensacks! - Fixed: the stylelint config no longer reports every Tailwind@applyunderat-rule-prelude-no-invalid. Stylelint 17's standard config validates at-rule preludes as CSS, and@applytakes utility class names, so the rule now ignores@applyand still checks every standard at-rule.