Add eslint infrastructure
This commit is contained in:
parent
39ce73eee1
commit
144fc8000d
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"extends": "loopback",
|
||||||
|
"rules": {
|
||||||
|
"max-len": ["error", 80, 4, {
|
||||||
|
"ignoreComments": true,
|
||||||
|
"ignoreUrls": true,
|
||||||
|
"ignorePattern": "^\\s*var\\s.+=\\s*(require\\s*\\()|(/)"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
13
.jshintrc
13
.jshintrc
|
@ -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
|
|
||||||
}
|
|
|
@ -21,10 +21,12 @@
|
||||||
"url": "https://github.com/strongloop/loopback-component-explorer/issues"
|
"url": "https://github.com/strongloop/loopback-component-explorer/issues"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"chai": "^3.2.0",
|
||||||
|
"eslint": "^2.8.0",
|
||||||
|
"eslint-config-loopback": "^2.0.0",
|
||||||
"loopback": "^2.19.1",
|
"loopback": "^2.19.1",
|
||||||
"mocha": "^2.2.5",
|
"mocha": "^2.2.5",
|
||||||
"supertest": "^1.0.1",
|
"supertest": "^1.0.1"
|
||||||
"chai": "^3.2.0"
|
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue