File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 4.0.0
4
+
5
+ - Removed: ` syntax ` schema property.
6
+ - Added: ` customSyntax ` schema property.
7
+
3
8
## 3.0.0
4
9
5
10
- Changed: ` getTestRule ` signature to only accept options as argument.
Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ Default: `false` (Optional).
138
138
139
139
Skip [ basic checks] ( https://github.com/stylelint/stylelint/blob/master/lib/testUtils/basicChecks.js ) , e.g. an empty source.
140
140
141
- ### ` syntax ` \< string\>
141
+ ### ` customSyntax ` \< string\>
142
142
143
- Maps to stylelint's [ ` syntax ` option] ( https://stylelint.io/user-guide/usage/options#syntax ) .
143
+ Maps to stylelint's [ ` customSyntax ` option] ( https://stylelint.io/user-guide/usage/options#customsyntax ) .
144
144
145
145
## Shared test case properties
146
146
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function getTestRule(options = {}) {
27
27
const stylelintOptions = {
28
28
code : testCase . code ,
29
29
config : stylelintConfig ,
30
- syntax : schema . syntax ,
30
+ customSyntax : schema . customSyntax ,
31
31
} ;
32
32
33
33
const output = await lint ( stylelintOptions ) ;
@@ -53,7 +53,7 @@ function getTestRule(options = {}) {
53
53
const stylelintOptions = {
54
54
code : testCase . code ,
55
55
config : stylelintConfig ,
56
- syntax : schema . syntax ,
56
+ customSyntax : schema . customSyntax ,
57
57
} ;
58
58
59
59
const outputAfterLint = await lint ( stylelintOptions ) ;
You can’t perform that action at this time.
0 commit comments