File tree 3 files changed +25
-2
lines changed
3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,7 @@ Add the following to `.stylelintrc` in root directory of project.
10
10
"extends" : " stylelint-config-punkave"
11
11
}
12
12
```
13
+
14
+ ## Changelog
15
+ ### 1.0.0
16
+ - Adds "declaration-strict-value," setting rules for variable use in specific properties.
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
'plugins' : [
3
- 'stylelint-order'
3
+ 'stylelint-order' ,
4
+ 'stylelint-declaration-strict-value'
4
5
] ,
5
6
'rules' : {
6
7
'color-hex-length' : 'short' ,
@@ -71,6 +72,23 @@ module.exports = {
71
72
'font-family' ,
72
73
'font-size' ,
73
74
'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
+ }
74
92
]
75
93
}
76
94
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " stylelint-config-punkave" ,
3
- "version" : " 0.3 .0" ,
3
+ "version" : " 1.0 .0" ,
4
4
"main" : " index.js" ,
5
5
"author" : " P'unk Ave" ,
6
6
"repository" : {
12
12
},
13
13
"homepage" : " https://github.com/punkave/stylelint-config-punkave#readme" ,
14
14
"dependencies" : {
15
+ "stylelint-declaration-strict-value" : " ^1.1.2" ,
15
16
"stylelint-order" : " ^0.4.4"
16
17
}
17
18
}
You can’t perform that action at this time.
0 commit comments