Skip to content

Commit f2da446

Browse files
committed
Enforce number-leading-zero: always
1 parent eee3728 commit f2da446

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010

1111
- Enforce ordering of declaration blocks with [stylelint-order](https://github.com/hudochenkov/stylelint-order).
1212
- Allow using more usage of types in selectors with [selector-max-type](https://stylelint.io/user-guide/rules/selector-max-type) options.
13+
- Enforce `number-leading-zero`: always
1314

1415
## [0.1.0](https://github.com/torchbox/stylelint-config-torchbox/releases/tag/v0.1.0) (YYYY-MM-DD)
1516

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ To get the most out of this config, it is assumed that projects have the followi
4949
#### Custom rules
5050

5151
- [`color-named`](https://stylelint.io/user-guide/rules/color-named/): `never`
52+
- [`number-leading-zero`](https://stylelint.io/user-guide/rules/number-leading-zero/): `always`
5253
- [`declaration-block-no-shorthand-property-overrides`](https://stylelint.io/user-guide/rules/declaration-block-no-shorthand-property-overrides/)
5354
- [`declaration-no-important`](https://stylelint.io/user-guide/rules/declaration-no-important/)
5455
- [`selector-max-id`](https://stylelint.io/user-guide/rules/selector-max-id/): `0`
@@ -158,7 +159,6 @@ To get the most out of this config, it is assumed that projects have the followi
158159
- [`media-query-list-comma-space-before`](https://stylelint.io/user-guide/rules/media-query-list-comma-space-before/)
159160
- [`no-eol-whitespace`](https://stylelint.io/user-guide/rules/no-eol-whitespace/)
160161
- [`no-missing-end-of-source-newline`](https://stylelint.io/user-guide/rules/no-missing-end-of-source-newline/)
161-
- [`number-leading-zero`](https://stylelint.io/user-guide/rules/number-leading-zero/)
162162
- [`number-no-trailing-zeros`](https://stylelint.io/user-guide/rules/number-no-trailing-zeros/)
163163
- [`property-case`](https://stylelint.io/user-guide/rules/property-case/)
164164
- [`rule-empty-line-before`](https://stylelint.io/user-guide/rules/rule-empty-line-before/)

config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
plugins: ['stylelint-scss', 'stylelint-order'],
77
rules: {
88
'color-named': 'never',
9+
'number-leading-zero': 'always',
910
'declaration-block-no-shorthand-property-overrides': true,
1011
'declaration-no-important': true,
1112
'selector-max-id': 0,

0 commit comments

Comments
 (0)