Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
[package] ignore paths for Stylelint directly in npm script, ref #178
Browse files Browse the repository at this point in the history
See stylelint/stylelint#2399 for details.
  • Loading branch information
ArmorDarks committed Mar 13, 2017
1 parent a2d2d85 commit 765d8b0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .stylelintrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
ignoreFiles:
- jspm_config/{,**/}*
- build/{,**/}*
- temp/{,**/}*

plugins:
- stylelint-scss

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- [sass] Updated Ekzo to 2.4.2.
- [package] Updated dependencies.
- [package] Replaced `babel-preset-latest` with `babel-preset-env` configurated to run on current Node.
- [package] Ignored paths which shouldn't be linted by Stylelint directly in npm script command instead of Stylelint config file to make files discovery process faster. See [related issue](https://github.com/stylelint/stylelint/issues/2399) for details.

### Fixed
- [package] Fixed Stylelint not ignoring some default paths (like `node_modules`).
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
},
"scripts": {
"postinstall": "jspm config registries.github.auth $GITHUB_API_KEY && jspm install",
"lint": "standard && stylelint **/*.{css,scss,sass}",
"lint": "standard && stylelint \"**/*.{css,scss,sass}\" \"!{jspm_packages,build,temp}/**\"",
"test": "npm run lint && jest && grunt build && git status | grep -E 'working (tree|directory) clean' >/dev/null || (echo 'Build task should not generate or change files outside build folder'; exit 1)",
"test:watch": "jest --watch"
},
Expand Down

0 comments on commit 765d8b0

Please sign in to comment.