Skip to content

Commit

Permalink
Updates to ESLint
Browse files Browse the repository at this point in the history
- Add .eslintignore file
- Add linting task to package.json
- Include linting task in Travis build
  • Loading branch information
Kunal Nagar committed Jun 9, 2019
1 parent 6775c0d commit 9f1c8c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.eslintrc.js
Gruntfile.js
node_modules
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ before_install:
cache:
npm: true
script:
- npm run deploy
- npm run lint
- npm run deploy
if: tag IS present
deploy:
provider: releases
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A simple way to encrypt and decrypt your files",
"main": "main.js",
"scripts": {
"lint": "./node_modules/.bin/eslint **/*.js --fix",
"build-grunt": "./node_modules/.bin/grunt build",
"build-mac-x64": "./node_modules/.bin/electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/icon.icns --prune=true --out=release-builds",
"zip-mac-x64": "zip -r release-builds/encrypt0r-mac.zip release-builds/encrypt0r-darwin-x64",
Expand Down

0 comments on commit 9f1c8c3

Please sign in to comment.