Releases: twinscom/stylelint-config
Releases · twinscom/stylelint-config
v15.0.0 - Stylelint 16
15.0.0
v14.0.0 - Remove Prettier
@twinscom/stylelint-config remains compatible with default Prettier options,
but now it is recommended to run Prettier separately.
I recommend this Prettier config to format as many file types as possible:
https://github.com/EvgenyOrekhov/prettier-config
v13.1.0 - CSS-in-JS
Add config for CSS-in-JS (styled-components/Emotion).
Same as SCSS, but for *.{j,t}sx
files.
{
"extends": ["@twinscom/stylelint-config/css-in-js"]
}
stylelint '**/*.tsx'
Note: //
comments are not supported in CSS code, use /* */
.
v13.0.0
Enforce percentages for opacity
v12.0.3
Allow 0.75rem
spacing
v12.0.2
Allow 0.25rem
radius
v12.0.1
Allow overflow-x
, overflow-y
overflow-inline
and overflow-block
browser support is very poor:
Allow -1000rem
, 0.25rem
spacing
-1000rem
is needed for visually hidden elements (for accessibility)0.25rem
is needed for small inline elements
v12.0.0
Major changes
- Add stylelint-scales
- Add stylelint-plugin-defensive-css
- Add stylelint-plugin-logical-css
- Add stylelint-rem-over-px
- Enforce
s
unit for animations - Allow only
data
andhttps
schemes inurl()
- Disallow units:
cm
,mm
,Q
,in
,pc
,pt
,em
- Change
font-weight-notation
tonumeric
(to work well withscales/font-weights
)
Other changes
- Add stylelint-high-performance-animation
- Add
@isnotdefined/no-obsolete
rule from @isnotdefined/stylelint-plugin
v11.0.1
Fix false warnings
v11.0.0
Major changes
@twinscom/stylelint-config/scss
- Add more SCSS rules