Skip to content

Commit

Permalink
Move to customSyntax (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 authored May 14, 2021
1 parent f2f43c2 commit 3fc9b15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 4.0.0

- Removed: `syntax` schema property.
- Added: `customSyntax` schema property.

## 3.0.0

- Changed: `getTestRule` signature to only accept options as argument.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ Default: `false` (Optional).

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

### `syntax` \<string\>
### `customSyntax` \<string\>

Maps to stylelint's [`syntax` option](https://stylelint.io/user-guide/usage/options#syntax).
Maps to stylelint's [`customSyntax` option](https://stylelint.io/user-guide/usage/options#customsyntax).

## Shared test case properties

Expand Down
4 changes: 2 additions & 2 deletions getTestRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function getTestRule(options = {}) {
const stylelintOptions = {
code: testCase.code,
config: stylelintConfig,
syntax: schema.syntax,
customSyntax: schema.customSyntax,
};

const output = await lint(stylelintOptions);
Expand All @@ -53,7 +53,7 @@ function getTestRule(options = {}) {
const stylelintOptions = {
code: testCase.code,
config: stylelintConfig,
syntax: schema.syntax,
customSyntax: schema.customSyntax,
};

const outputAfterLint = await lint(stylelintOptions);
Expand Down

0 comments on commit 3fc9b15

Please sign in to comment.