Proyek
Lihat di GitHub Recess* Property Order
stormwarning/stylelint-config-recess-order
Tentang
🗂️ Urutan pengurutan properti Stylelint berdasarkan Recess.
Pengembangan web dan aplikasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +3
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliRecess* Property Order 
A Stylelint config that sorts CSS properties the way Recess did and Bootstrap did/does.
*With some modifications & additions for modern properties.
Usage
- Add stylelint, stylelint-order, and this package to your project:
npm install --save-dev stylelint stylelint-order stylelint-config-recess-order - Configure your Stylelint configuration file to extend this package:
/** @type {import('stylelint').Config} */ export default { extends: ['stylelint-config-recess-order'], rules: { // Add overrides and additional rules here }, }
Advanced
The default setup applies only the 'order/properties-order' rule with the
various property groups. If you need to configure other options for this rule,
the groups can be imported separately and the rule configured to your needs.
import propertyGroups from 'stylelint-config-recess-order/groups'
/** @type {import('stylelint').Config} */
export default {
extends: [], // Do not extend the config here.
rules: {
// Configure the rule manually.
'order/properties-order': propertyGroups.map((group) => ({
...group,
emptyLineBefore: 'always',
noEmptyLineBetween: true,
})),
},
}
[!TIP] If you need the Recess property order for any Rust-based tooling, there’s now a crate for that!
References
Jelajahi proyek terkait
Memuat…