aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-11-14 11:30:08 +0200
committerNick Merwin <[email protected]>2020-04-30 16:38:39 -0700
commit41df01b70331d1130dcfee628c3de16d2c640111 (patch)
tree3afa366f1ac5c1d5ae125c0f40198b559dbfef2f /package.json
parent80bc04ecbc387de346287cae00e1d68d46d53f17 (diff)
downloadnode-coveralls-41df01b70331d1130dcfee628c3de16d2c640111.tar.xz
node-coveralls-41df01b70331d1130dcfee628c3de16d2c640111.zip
Switch to `[email protected]` for linting
Not using the latest version for Node.js 6.x support.
Diffstat (limited to 'package.json')
-rw-r--r--package.json45
1 files changed, 40 insertions, 5 deletions
diff --git a/package.json b/package.json
index 530e2d1..f753d72 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"url": "https://github.com/nickmerwin/node-coveralls/issues"
},
"scripts": {
- "lint": "jshint ./lib ./test ./index.js",
+ "lint": "xo",
"mocha": "_mocha -b -R spec",
"test-cov": "nyc npm run mocha",
"test-coveralls": "nyc npm run mocha && shx cat ./coverage/lcov.info | node ./bin/coveralls.js --verbose",
@@ -41,12 +41,12 @@
"request": "^2.88.2"
},
"devDependencies": {
- "jshint": "^2.11.0",
"mocha": "^6.2.3",
"nyc": "^14.1.1",
"should": "^9.0.2",
"shx": "^0.3.2",
- "sinon": "^7.5.0"
+ "sinon": "^7.5.0",
+ "xo": "^0.24.0"
},
"engines": {
"node": ">=6"
@@ -68,7 +68,42 @@
]
},
"files": [
- "{bin,lib}/*.js",
+ "bin/coveralls.js",
+ "lib/*.js",
"index.js"
- ]
+ ],
+ "xo": {
+ "space": true,
+ "ignores": [
+ "test/fixtures/"
+ ],
+ "rules": {
+ "capitalized-comments": "off",
+ "camelcase": "off",
+ "import/order": "off",
+ "no-negated-condition": "off",
+ "object-curly-spacing": [
+ "error",
+ "always"
+ ],
+ "quote-props": [
+ "error",
+ "consistent"
+ ],
+ "space-before-function-paren": [
+ "error",
+ "never"
+ ],
+ "spaced-comment": "off",
+ "unicorn/filename-case": "off"
+ },
+ "overrides": [
+ {
+ "files": "test/*.js",
+ "envs": [
+ "mocha"
+ ]
+ }
+ ]
+ }
}