This repository has been archived by the owner on Jan 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary of changes: * Define the node modules to be installed in package.json. * Include 'jshint' as a dev dependency and 'less' as a dependency. 'less' is no longer installed globally. * Since jshint doesn't include non-JavaScript files, specify the files and folders to be ignored in .jshintignore file. * Install the node modules defined in package.json while provisioning. * Add the node_modules/.bin/ folder to $PATH in ~/.bashrc. * Rename the pre-commit hook script to a generic lint.pre-commit * Refactor the calling of each lint tool into a separate function and include jshint. * Modify the pre-commit script to call flake8 and jshint one after the other on the relevant files to be committed.
- Loading branch information
Showing
4 changed files
with
45 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
!(*.js) | ||
vendor/ | ||
node_modules/ |
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,15 @@ | ||
{ | ||
"name": "Fjord", | ||
"description": "Platform for Mozilla Input", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/mozilla/fjord.git" | ||
}, | ||
"devDependencies": { | ||
"jshint": "2.5.10" | ||
}, | ||
"dependencies": { | ||
"less": "1.7.0" | ||
} | ||
|
||
} |