Skip to content

Commit

Permalink
different jslint commands for circleci and not (streamlit#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhone authored Oct 4, 2019
1 parent f7a3a6a commit 7e6f1b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,16 @@ jslint:
@# max-warnings 0 means we'll exit with a non-zero status on any lint warning
@# HK: I'm removing `max-warnings 0` until we convert all our JavaScript
@# files to TypeScript.
ifndef CIRCLECI
cd frontend; \
./node_modules/.bin/eslint \
--ext .js \
--ext .jsx \
--ext .ts \
--ext .tsx \
--ignore-pattern 'src/autogen/*' \
./src
else
cd frontend; \
./node_modules/.bin/eslint \
--ext .js \
Expand All @@ -266,6 +276,7 @@ jslint:
--format junit \
--output-file test-reports/eslint/eslint.xml \
./src
endif CIRCLECI

.PHONY: jsformat
# Runs "Prettier" on our JavaScript and TypeScript code to fix formatting
Expand Down

0 comments on commit 7e6f1b0

Please sign in to comment.