Update: Eslint to 3.0 and update CI builds (fixes #4638) (#4680)

This commit is contained in:
Gyandeep Singh 2016-10-05 16:44:25 -05:00 committed by Henry Zhu
parent 0366d1ad19
commit 6cfd3d91b2
5 changed files with 13 additions and 6 deletions

View File

@ -10,8 +10,16 @@ node_js:
- '5'
- '4'
- '0.12'
script: make test-ci
script:
- 'if [ -n "${LINT-}" ]; then make lint ; fi'
- 'if [ -z "${LINT-}" ]; then make test-ci ; fi'
matrix:
fast_finish: true
include:
- node_js: "node"
env: LINT=true
notifications:
on_success: change
on_failure: always

View File

@ -45,7 +45,6 @@ test-cov: clean
./scripts/test-cov.sh
test-ci:
make lint
NODE_ENV=test make bootstrap
# if ./node_modules/.bin/semver `npm --version` -r ">=3.3.0"; then ./node_modules/.bin/flow check; fi
./scripts/test-cov.sh

View File

@ -8,7 +8,7 @@
"devDependencies": {
"async": "^1.5.0",
"babel-core": "^6.13.2",
"babel-eslint": "^6.1.2",
"babel-eslint": "^7.0.0",
"babel-plugin-transform-class-properties": "^6.6.0",
"babel-plugin-transform-flow-strip-types": "^6.3.13",
"babel-plugin-transform-runtime": "^6.3.13",
@ -21,7 +21,7 @@
"chalk": "1.1.1",
"codecov.io": "^0.1.6",
"derequire": "^2.0.2",
"eslint": "^2.13.1",
"eslint": "^3.7.1",
"eslint-config-babel": "^1.0.1",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-flow-vars": "^0.5.0",

View File

@ -1,4 +1,4 @@
export default async function (packages) {
export default async function (packages) { // eslint-disable-line require-yield
let foundDeps = {};
let foundDuplicated = false;
let duplicatedPackages = {};

View File

@ -1,7 +1,7 @@
import path from "path";
import fs from "fs";
export default async function () {
export default async function () { // eslint-disable-line require-yield
let cwd = process.cwd();
let parts = cwd.split(path.sep);