Browse Source

Add linting

pull/2/head
Luke Childs 9 years ago
parent
commit
fb566152b7
  1. 2
      .travis.yml
  2. 6
      package.json

2
.travis.yml

@ -1,4 +1,4 @@
language: node_js
node_js: node
script: npm run test
script: npm run lint && npm run test
after_success: npm run coverage

6
package.json

@ -10,6 +10,7 @@
"build:map": "babel --source-maps=true -d dist src",
"pretest": "npm run build:map",
"test": "nyc ava test",
"lint": "eslint src",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"prepublish": "npm run build"
},
@ -21,6 +22,9 @@
"add-module-exports"
]
},
"eslintConfig": {
"extends": "lukechilds"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lukechilds/node-browser-environment.git"
@ -47,6 +51,8 @@
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.9.0",
"coveralls": "^2.11.9",
"eslint": "^2.11.1",
"eslint-config-lukechilds": "^1.2.1",
"nyc": "^6.4.4"
}
}

Loading…
Cancel
Save