Add eslint infrastructure

This commit is contained in:
Amir Jafarian 2016-04-22 17:07:56 -04:00
parent 39ce73eee1
commit 144fc8000d
4 changed files with 14 additions and 15 deletions

0
.eslintignore Normal file
View File

10
.eslintrc Normal file
View File

@ -0,0 +1,10 @@
{
"extends": "loopback",
"rules": {
"max-len": ["error", 80, 4, {
"ignoreComments": true,
"ignoreUrls": true,
"ignorePattern": "^\\s*var\\s.+=\\s*(require\\s*\\()|(/)"
}]
}
}

View File

@ -1,13 +0,0 @@
{
"node": true,
"camelcase" : true,
"eqnull" : true,
"indent": 2,
"undef": true,
"quotmark": "single",
"maxlen": 80,
"trailing": true,
"newcap": true,
"nonew": true,
"undef": false
}

View File

@ -21,10 +21,12 @@
"url": "https://github.com/strongloop/loopback-component-explorer/issues"
},
"devDependencies": {
"chai": "^3.2.0",
"eslint": "^2.8.0",
"eslint-config-loopback": "^2.0.0",
"loopback": "^2.19.1",
"mocha": "^2.2.5",
"supertest": "^1.0.1",
"chai": "^3.2.0"
"supertest": "^1.0.1"
},
"license": "MIT",
"dependencies": {