Use shared es lint config

This commit is contained in:
Brandon Keepers 2017-06-09 18:07:19 -05:00
parent a57228e34d
commit 21d38a65f5
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 2 additions and 18 deletions

View File

@ -9,7 +9,7 @@
}, },
"scripts": { "scripts": {
"start": "node ./bin/probot run", "start": "node ./bin/probot run",
"test": "mocha && xo", "test": "mocha && xo --extend eslint-config-probot",
"doc": "jsdoc -c .jsdoc.json" "doc": "jsdoc -c .jsdoc.json"
}, },
"author": "Brandon Keepers", "author": "Brandon Keepers",
@ -32,6 +32,7 @@
"semver": "^5.3.0" "semver": "^5.3.0"
}, },
"devDependencies": { "devDependencies": {
"eslint-config-probot": "^0.1.0",
"expect": "^1.20.2", "expect": "^1.20.2",
"jsdoc": "^3.4.3", "jsdoc": "^3.4.3",
"jsdoc-strip-async-await": "^0.1.0", "jsdoc-strip-async-await": "^0.1.0",
@ -40,23 +41,6 @@
"xo": "^0.19.0" "xo": "^0.19.0"
}, },
"xo": { "xo": {
"esnext": true,
"space": true,
"rules": {
"camelcase": 1,
"no-else-return": 0,
"key-spacing": 0
},
"ignores": [],
"envs": [
"node",
"mocha"
],
"globals": [
"on",
"include",
"contents"
],
"overrides": [ "overrides": [
{ {
"files": "test/**/*.js", "files": "test/**/*.js",