Merge pull request #1434 from google/lint

Enable eslint on Travis!
This commit is contained in:
Rachel Fenichel
2017-11-10 16:34:18 -08:00
committed by GitHub
3 changed files with 10 additions and 2 deletions

View File

@@ -2,9 +2,13 @@
*_uncompressed*.js
/msg/*
/core/css.js
/tests/blocks/*
/tests/compile/*
/tests/jsunit/*
/tests/generators/*
/tests/workspace_svg/*
/generators/*
/demos/*
/accessible/*
/appengine/*
/appengine/*
/externs/svg-externs.js

View File

@@ -28,5 +28,6 @@ before_script:
script:
- set -x
- npm run lint
- npm test
- cd tests/compile; compile.sh; cd ..

View File

@@ -17,7 +17,7 @@
"name": "Neil Fraser"
},
"scripts": {
"lint": "jshint .",
"lint": "eslint .",
"pretest": "tests/scripts/test_setup.sh",
"test": "node tests/jsunit/test_runner.js"
},
@@ -45,5 +45,8 @@
"npm": "^4.4.4",
"closure-library": "^1.43629075.2",
"webdriverio": "^4.6.2"
},
"devDependencies": {
"eslint": "2.9.0"
}
}