-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(linters): Greatly improve the
npm run lint
task speed
The `npm run lint` task now takes about ~3s on my machine (was taking XXX). Previously: ``` $ time npm run lint npm run lint 10,84s user 1,22s system 107% cpu 11,187 total ``` Now: ``` $ time npm run lint npm run lint 3,73s user 0,28s system 116% cpu 3,445 total ``` Basically all I did was specify the `./**/*.js` or `./**/*.scss` pattern on both linters and that makes it much faster. For scss, I also cleaned up a bit the list of ignore patterns (as we now use Jekyll 3, some files do not have the front-matter anymore and so we do not need to exclude them).
- Loading branch information
1 parent
438d43d
commit 1ba53b0
Showing
4 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
sass-lint --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
eslint ./*.js ./**/*.js --quiet |