Skip to content

Commit 003bff8

Browse files
author
Alex Bea
authored
Adds declaration-strict-value back (#41)
1 parent e972b97 commit 003bff8

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ Add the following to `.stylelintrc` in root directory of project.
1010
"extends": "stylelint-config-punkave"
1111
}
1212
```
13+
14+
## Changelog
15+
### 1.0.0
16+
- Adds "declaration-strict-value," setting rules for variable use in specific properties.

index.js

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
'plugins': [
3-
'stylelint-order'
3+
'stylelint-order',
4+
'stylelint-declaration-strict-value'
45
],
56
'rules': {
67
'color-hex-length': 'short',
@@ -71,6 +72,23 @@ module.exports = {
7172
'font-family',
7273
'font-size',
7374
'text-align'
75+
],
76+
'scale-unlimited/declaration-strict-value': [
77+
[
78+
'/color/',
79+
'font',
80+
'font-family',
81+
'font-size',
82+
'z-index'
83+
],
84+
{
85+
ignoreKeywords: [
86+
'currentColor',
87+
'inherit',
88+
'initial',
89+
'transparent'
90+
]
91+
}
7492
]
7593
}
7694
};

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stylelint-config-punkave",
3-
"version": "0.3.0",
3+
"version": "1.0.0",
44
"main": "index.js",
55
"author": "P'unk Ave",
66
"repository": {
@@ -12,6 +12,7 @@
1212
},
1313
"homepage": "https://github.com/punkave/stylelint-config-punkave#readme",
1414
"dependencies": {
15+
"stylelint-declaration-strict-value": "^1.1.2",
1516
"stylelint-order": "^0.4.4"
1617
}
1718
}

0 commit comments

Comments
 (0)