Skip to content

Commit

Permalink
add linting in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sinujohn91 committed Oct 31, 2018
1 parent 58443be commit 10e4017
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
steps:
- checkout
- run: npm install
- run: npm run lint:js:ci
- run: npm run lint:ci
workflows:
version: 2
build_and_test:
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@
"start": "node start.js",
"test": "jest",
"lint:js": "npx eslint './app/**/*.{js,jsx}'",
"lint:js:ci": "npx eslint $(git diff --pretty='' --name-only origin/master..HEAD -- '*.js' '*.jsx')",
"lint:css": "npx stylelint './app/**/*.{scss,css}'"
"lint:js:ci": "npx eslint $(git diff --pretty='' --name-only origin/master..HEAD -- '*.js' '*.jsx') ./start.js",
"lint:css": "npx stylelint './app/**/*.{scss,css}'",
"lint:css:ci": "npx stylelint $(git diff --pretty='' --name-only origin/master..HEAD -- '*.css' '*.scss') ./app/assets/stylesheets/app.scss",
"lint:ci": "npm run lint:js:ci; npm run lint:css:ci"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 10e4017

Please sign in to comment.