Add eslint infrastructure

This commit is contained in:
Amir Jafarian 2016-10-18 17:45:55 -04:00
parent 6be7ad8d2e
commit 7d216859e8
3 changed files with 10 additions and 3 deletions

0
.eslintignore Normal file
View File

3
.eslintrc Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "loopback"
}

View File

@ -4,7 +4,9 @@
"version": "1.9.2",
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/mocha --timeout 30000 test/*test.js"
"lint": "eslint .",
"test": "./node_modules/.bin/mocha --timeout 30000 test/*test.js",
"posttest": "npm run lint"
},
"dependencies": {
"async": "^0.9.0",
@ -13,11 +15,13 @@
"strong-globalize": "^2.6.2"
},
"devDependencies": {
"eslint": "^3.8.1",
"eslint-config-loopback": "^4.0.0",
"express": "^4.11.0",
"loopback": "^2.10.0",
"mkdirp": "^0.5.0",
"mocha": "^2.1.0",
"supertest": "^0.15.0",
"mkdirp": "^0.5.0"
"supertest": "^0.15.0"
},
"repository": {
"type": "git",