Skip to content

@shadcn/lint@0.2.1

Latest

Choose a tag to compare

@github-actions github-actions released this 10 Oct 10:56
· 22 commits to main since this release
93037f6

Patch Changes

  • #82 32b37e4 Thanks @shadcn! - Allow fill-none and stroke-none in no-raw-colors.

  • #86 207c442 Thanks @shadcn! - Classify font sizes from a JavaScript @config or @plugin as typography, not color.

  • #78 60836cc Thanks @shadcn! - Load @config and @plugin modules the way Tailwind does, so extensionless imports and TypeScript enums build.

  • #76 ab7658a Thanks @shadcn! - Check cva and tv variant classes keyed by a computed name such as an enum member.

  • #81 334ded6 Thanks @shadcn! - Match dotted mergeFunctions and variantFunctions entries such as Option.some against method calls.

  • #85 b16b8cf Thanks @shadcn! - Resolve a ui alias to a directory through a wildcard package.json imports key such as "#components/*": "./src/components/*.tsx".

  • #83 a38ee04 Thanks @shadcn! - Only suggest variants from a cva/tv factory the component actually uses.

  • #77 bbe3a2a Thanks @shadcn! - Under a Tailwind prefix, leave unprefixed classes to no-unknown-classes instead of reporting them as undeclared colors.

  • #84 557e75e Thanks @shadcn! - Judge classes by the component itself when its render prop renders a plain element.

  • #80 8abc06b Thanks @shadcn! - Read Svelte shorthand attributes such as {className} the way their long form is read.

  • #68 0e91da3 Thanks @shadcn! - Resolve Tailwind beside the stylesheet that imports it.

  • #52 ee93910 Thanks @shadcn! - Classify a project's custom theme scales, such as rounded-card, the way cn 0.4.0 merges them.

  • #79 8455c18 Thanks @shadcn! - Resolve a bare aliases.ui such as src/ against the project, as the shadcn CLI does.