Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

fix(deps): update dependency stylelint to v14.8.5 #612

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down