Skip to content

Releases: sindresorhus/eslint-cssicorn

Release list

v0.2.0

Choose a tag to compare

@sindresorhus sindresorhus released this 12 Oct 17:54

New rules

Improvements

  • no-ineffective-properties: Check omitted shorthand components (#26) dd5f782
    • For example, border: 1px red (no style, so no border) and animation: 2s ease (no animation name).
  • no-nesting-with-mixed-specificity: Check selector-list pseudo-classes (#20) 4936793
    • Now also checks :is(), :not(), :has(), and the of list in :nth-child() and :nth-last-child().
  • prefer-nesting: Support broader selector groups (#16) 7e14c1d
  • no-invalid-media-features: Validate media feature notation (#13) 94b8da1
    • Reports range notation on discrete features, like (orientation > portrait), min-/max- features without a value or with range notation, and chained comparisons with mixed directions.
  • no-self-referencing-custom-properties: Detect indirect dependency cycles in the same block (#10) c73ce70
    • For example, --one: var(--two); --two: var(--one). Unused fallbacks are no longer reported, which follows the current CSS draft.
  • Improve performance d15b739 010d7aa

v0.1.0

Choose a tag to compare

@sindresorhus sindresorhus released this 03 Oct 04:37

🦄