Skip to content

Commit

Permalink
watch cosmiconfig-supported files
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Dec 22, 2015
1 parent 509b0ce commit fc36692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Enable the linter in the VS Code [settings](https://code.visualstudio.com/docs/c

### Configurations

*In addition to the VS Code settings mentioned below, you can set the config by adding [`.stylelintrc`](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#configuration) file to the workspace directory or its ancestor ones.*
*In addition to the VS Code settings mentioned below, you can set the config by adding [stylelint configuration files](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#configuration) to the workspace directory or its ancestor ones.*

#### stylelint.enable

Expand Down
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports.activate = function activateStylelint(context) {
documentSelector: ['css', 'sass'],
synchronize: {
configurationSection: 'stylelint',
fileEvents: vscode.workspace.createFileSystemWatcher('**/.stylelintrc')
fileEvents: vscode.workspace.createFileSystemWatcher('**/{.stylelintrc,stylelint.config.js}')
}
});

Expand Down

0 comments on commit fc36692

Please sign in to comment.