Skip to content

Commit 161067b

Browse files
authored
Fix use of deprecated rule (#5)
1 parent 8bbb838 commit 161067b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const config = {
2727
'scss/at-function-parentheses-space-before': 'never',
2828
'scss/at-function-pattern': reLowercase,
2929
'scss/at-if-no-null': true,
30-
'scss/at-import-partial-extension': 'never',
30+
'scss/load-partial-extension': 'never',
3131
'scss/at-mixin-argumentless-call-parentheses': 'never',
3232
'scss/at-mixin-parentheses-space-before': 'never',
3333
'scss/at-mixin-pattern': reLowercase,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"dependencies": {
3737
"postcss-scss": "^4.0.9",
3838
"stylelint-config-xo": "^1.0.0",
39-
"stylelint-scss": "^6.2.1"
39+
"stylelint-scss": "^6.4.0"
4040
},
4141
"devDependencies": {
4242
"ava": "^6.1.2",

test/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const runStylelint = async code => {
1212

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

1819
if (result.invalidOptionWarnings.length > 0) {

0 commit comments

Comments
 (0)