diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e69de29 diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..4ed9690 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,10 @@ +{ + "extends": "loopback", + "rules": { + "max-len": ["error", 80, 4, { + "ignoreComments": true, + "ignoreUrls": true, + "ignorePattern": "^\\s*var\\s.+=\\s*(require\\s*\\()|(/)" + }] + } +} \ No newline at end of file diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 3f9e65d..0000000 --- a/.jshintrc +++ /dev/null @@ -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 -} diff --git a/package.json b/package.json index 71ebdd5..1cfdd22 100644 --- a/package.json +++ b/package.json @@ -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": {