Skip to content

Commit

Permalink
Chore: Make ESLint also lint .js files
Browse files Browse the repository at this point in the history
  • Loading branch information
alrra committed Dec 1, 2017
1 parent 2f825a7 commit 5e2be7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"clean": "rimraf dist",
"commitmsg": "node scripts/check-commit-message.js",
"lint": "npm-run-all lint:*",
"lint:js": "eslint --report-unused-disable-directives --ext md --ext ts --ignore-pattern dist .",
"lint:js": "eslint . --report-unused-disable-directives --ext js --ext md --ext ts --ignore-pattern coverage --ignore-pattern dist",
"lint:md": "markdownlint docs",
"nyc": "nyc ava \"dist/tests/lib/rules/cloudinary/**/*.js\" --concurrency=2 --timeout=2m --debug",
"preparecommitmsg": "node scripts/prepare-commit-message.js",
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare-commit-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ try {
*/

if (/^\s+# Please enter the commit message for your changes.*/gi.test(DEFAULT_GIT_COMMIT_MESSAGE)) {
shell.ShellString(`${NEW_GIT_COMMIT_MESSAGE} ${DEFAULT_GIT_COMMIT_MESSAGE}`).to(GIT_COMMIT_MESSAGE_FILE);
shell.ShellString(`${NEW_GIT_COMMIT_MESSAGE} ${DEFAULT_GIT_COMMIT_MESSAGE}`).to(GIT_COMMIT_MESSAGE_FILE); // eslint-disable-line new-cap
}

} catch (e) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e2be7f

Please sign in to comment.