Skip to content

Commit

Permalink
do not ignore file configs
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Feb 11, 2016
1 parent 3be0f1e commit 984a53f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
},
"stylelint.config": {
"type": "object",
"default": {},
"default": null,
"description": "A stylelint configuration object."
},
"stylelint.configOverrides": {
"type": "object",
"default": {},
"default": null,
"description": "A partial stylelint config whose properties override the existing ones."
}
}
Expand Down
8 changes: 5 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ function validateAll() {
}

connection.onInitialize(params => {
configBasedir = params.rootPath;
if (params.rootPath) {
configBasedir = params.rootPath;
}

validateAll();

Expand All @@ -48,8 +50,8 @@ connection.onInitialize(params => {
});
connection.onDidChangeConfiguration(params => {
const settings = params.settings;
config = settings.stylelint.config || {};
configOverrides = settings.stylelint.configOverrides || {};
config = settings.stylelint.config;
configOverrides = settings.stylelint.configOverrides;

validateAll();
});
Expand Down

0 comments on commit 984a53f

Please sign in to comment.