Skip to content

Commit 3fc9b15

Browse files
authored
Move to customSyntax (#32)
1 parent f2f43c2 commit 3fc9b15

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 4.0.0
4+
5+
- Removed: `syntax` schema property.
6+
- Added: `customSyntax` schema property.
7+
38
## 3.0.0
49

510
- Changed: `getTestRule` signature to only accept options as argument.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ Default: `false` (Optional).
138138

139139
Skip [basic checks](https://github.com/stylelint/stylelint/blob/master/lib/testUtils/basicChecks.js), e.g. an empty source.
140140

141-
### `syntax` \<string\>
141+
### `customSyntax` \<string\>
142142

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).
144144

145145
## Shared test case properties
146146

getTestRule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function getTestRule(options = {}) {
2727
const stylelintOptions = {
2828
code: testCase.code,
2929
config: stylelintConfig,
30-
syntax: schema.syntax,
30+
customSyntax: schema.customSyntax,
3131
};
3232

3333
const output = await lint(stylelintOptions);
@@ -53,7 +53,7 @@ function getTestRule(options = {}) {
5353
const stylelintOptions = {
5454
code: testCase.code,
5555
config: stylelintConfig,
56-
syntax: schema.syntax,
56+
customSyntax: schema.customSyntax,
5757
};
5858

5959
const outputAfterLint = await lint(stylelintOptions);

0 commit comments

Comments
 (0)