Repository navigation
Releases: sindresorhus/eslint-cssicorn
Releases · sindresorhus/eslint-cssicorn
Release list
v0.2.0
New rules
consistent-property-order(#38) b5c45f2- Not enabled in the
recommendedconfig.
- Not enabled in the
no-ineffective-overrides(#36) b83fd7dconsistent-value-order(#35) 41701e9no-clamped-values(#31) dd2b253prefer-aspect-ratio(#34) e09259ano-ineffective-selector-properties(#32) bcf5fc6prefer-relative-colors(#33) d2d84e8prefer-current-color(#30) 93a233fno-ineffective-supports-conditions(#29) 5041779no-ineffective-transitions(#28) 1dc0e83no-duplicate-at-rule-definitions(#27) 6180178require-prefers-reduced-motion(#25) f0302d0- Not enabled in the
recommendedconfig.
- Not enabled in the
no-layout-animations(#24) 4633fa8- Not enabled in the
recommendedconfig.
- Not enabled in the
prefer-merged-rules(#23) 75ac333prefer-existing-custom-properties(#21) e886aa8prefer-light-dark(#22) e8261e6prefer-individual-transform-properties(#19) fb64a4frequire-selector-scope(#18) f7442ad- Not enabled in the
recommendedconfig.
- Not enabled in the
no-disabled-pinch-zoom(#17) fe14f50no-redundant-functions(#15) 6295346no-redundant-nesting-selector(#14) dac29afprefer-nesting(#11) 405317ano-invalid-property-references(#9) 21db7d3consistent-layer-order(#8) 1e3a7bdno-ineffective-properties(#7) e8093e0prefer-clamp(#6) e92e310no-overflow-axis-coercion(#5) 1b844feconsistent-compound-selector-order(#4) defcb42no-useless-is(#3) 5045ca0no-ineffective-keyframe-declarations(#2) 00f7b64
Improvements
no-ineffective-properties: Check omitted shorthand components (#26) dd5f782- For example,
border: 1px red(no style, so no border) andanimation: 2s ease(no animation name).
- For example,
no-nesting-with-mixed-specificity: Check selector-list pseudo-classes (#20) 4936793- Now also checks
:is(),:not(),:has(), and theoflist in:nth-child()and:nth-last-child().
- Now also checks
prefer-nesting: Support broader selector groups (#16) 7e14c1dno-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.
- Reports range notation on discrete features, like
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.
- For example,
- Improve performance d15b739 010d7aa