Skip to content

Commit

Permalink
Fix use of deprecated rule (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Jul 12, 2024
1 parent 8bbb838 commit 161067b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const config = {
'scss/at-function-parentheses-space-before': 'never',
'scss/at-function-pattern': reLowercase,
'scss/at-if-no-null': true,
'scss/at-import-partial-extension': 'never',
'scss/load-partial-extension': 'never',
'scss/at-mixin-argumentless-call-parentheses': 'never',
'scss/at-mixin-parentheses-space-before': 'never',
'scss/at-mixin-pattern': reLowercase,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"postcss-scss": "^4.0.9",
"stylelint-config-xo": "^1.0.0",
"stylelint-scss": "^6.2.1"
"stylelint-scss": "^6.4.0"
},
"devDependencies": {
"ava": "^6.1.2",
Expand Down
3 changes: 2 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const runStylelint = async code => {

for (const result of results) {
if (result.deprecations.length > 0) {
throw new Error(`Deprecations:\n${result.deprecations.join('\n')}`);
const warnings = result.deprecations.map(x => x.text).join('\n');
throw new Error(`Deprecations:\n${warnings}`);
}

if (result.invalidOptionWarnings.length > 0) {
Expand Down

0 comments on commit 161067b

Please sign in to comment.