Install and configure eslint and eslint-config-edx (alongside JSHint for now)

This commit is contained in:
Brian Jacobel
2016-06-21 17:12:52 -04:00
parent 2c4ab11658
commit af76273393
11 changed files with 180 additions and 40 deletions

View File

@@ -80,8 +80,14 @@ case "$TEST_SUITE" in
paver run_pylint -l $PYLINT_THRESHOLD > pylint.log || { cat pylint.log; EXIT=1; }
mkdir -p reports
echo "Finding jshint violations and storing report..."
# @TODO: Remove, deprecated in favor of ESLint
echo "Finding JSHint violations and storing report..."
paver run_jshint -l $JSHINT_THRESHOLD > jshint.log || { cat jshint.log; EXIT=1; }
echo "Finding ESLint violations and storing report..."
paver run_eslint -l $ESLINT_THRESHOLD > eslint.log || { cat eslint.log; EXIT=1; }
echo "Running code complexity report (python)."
paver run_complexity > reports/code_complexity.log || echo "Unable to calculate code complexity. Ignoring error."
echo "Running safe template linter report."