From 9165b2f44b7024ad63f25ed6b4646a58b9da2ecc Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Fri, 3 Jun 2022 10:47:35 -0400 Subject: [PATCH] fix(deps): update dependency stylelint to v14.8.5 --- lib/index.js | 8 ++++---- package.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/index.js b/lib/index.js index 4319e17d..15c75e53 100644 --- a/lib/index.js +++ b/lib/index.js @@ -138,11 +138,11 @@ export default { const scopes = editor.getLastCursor().getScopeDescriptor().getScopesArray(); if (scopes.includes('source.css.scss') || scopes.includes('source.scss')) { - options.syntax = 'scss'; + const syntax = 'scss'; } else if (scopes.includes('source.css.less') || scopes.includes('source.less')) { - options.syntax = 'less'; + const syntax = 'less'; } else if (scopes.includes('source.css.postcss.sugarss')) { - options.syntax = 'sugarss'; + const syntax = 'sugarss'; } if (this.coreIgnored) { @@ -187,7 +187,7 @@ export default { return []; } else if (this.useStandard) { // No configuration, but using the standard is enabled - const defaultConfig = helpers.getDefaultConfig(options.syntax); + const defaultConfig = helpers.getDefaultConfig(syntax); options.config = { rules: defaultConfig.rules }; if (defaultConfig.extends) { options.config.extends = defaultConfig.extends; diff --git a/package.json b/package.json index a59cc0bc..9a0de5e3 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,8 @@ "atom-linter": "10.0.0", "atom-package-deps": "5.1.0", "resolve": "1.15.1", - "stylelint": "13.3.3", - "stylelint-config-standard": "20.0.0" + "stylelint": "14.8.5", + "stylelint-config-standard": "25.0.0" }, "devDependencies": { "@commitlint/cli": "8.3.5",