Skip to content

Commit e1d2afa

Browse files
committed
feat: upgraded deps, switched boom to @hapi/boom, fixed deps
1 parent c87649d commit e1d2afa

File tree

6 files changed

+545
-901
lines changed

6 files changed

+545
-901
lines changed

.babelrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"presets": [
3-
["env", {
3+
["@babel/env", {
44
"targets": {
55
"node": "6.4.0"
66
}
77
}]
8-
],
9-
"sourceMaps": "inline"
8+
]
109
}

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.lib.eslintrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": ["eslint:recommended", "plugin:node/recommended"],
3+
"rules": {
4+
"no-unused-vars": "off",
5+
"no-func-assign": "off"
6+
}
7+
}

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@
2424
"toidentifier": "^1.0.0"
2525
},
2626
"devDependencies": {
27+
"@babel/cli": "^7.5.5",
28+
"@babel/core": "^7.5.5",
29+
"@babel/preset-env": "^7.5.5",
2730
"@commitlint/cli": "^8.1.0",
2831
"@commitlint/config-conventional": "^8.1.0",
2932
"ava": "^2.3.0",
30-
"babel-cli": "^6.26.0",
31-
"babel-preset-env": "^1.7.0",
3233
"codecov": "^3.5.0",
3334
"cross-env": "^5.2.1",
3435
"eslint": "^6.3.0",
3536
"eslint-config-xo-lass": "^1.0.3",
37+
"eslint-plugin-node": "^10.0.0",
3638
"fixpack": "^2.3.1",
3739
"husky": "^3.0.5",
3840
"koa": "^2.8.1",
@@ -57,7 +59,7 @@
5759
"homepage": "https://github.com/ladjs/koa-better-error-handler",
5860
"husky": {
5961
"hooks": {
60-
"pre-commit": "npm test",
62+
"pre-commit": "lint-staged && npm test",
6163
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
6264
}
6365
},
@@ -86,20 +88,18 @@
8688
],
8789
"license": "MIT",
8890
"lint-staged": {
89-
"linters": {
90-
"*.js": [
91-
"xo --fix",
92-
"git add"
93-
],
94-
"*.md": [
95-
"remark . -qfo",
96-
"git add"
97-
],
98-
"package.json": [
99-
"fixpack",
100-
"git add"
101-
]
102-
}
91+
"*.js": [
92+
"xo --fix",
93+
"git add"
94+
],
95+
"*.md": [
96+
"remark . -qfo",
97+
"git add"
98+
],
99+
"package.json": [
100+
"fixpack",
101+
"git add"
102+
]
103103
},
104104
"main": "lib/index.js",
105105
"prettier": {
@@ -116,7 +116,7 @@
116116
"scripts": {
117117
"build": "node_modules/.bin/babel src --out-dir lib",
118118
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
119-
"lint": "xo && remark . -qfo",
119+
"lint": "xo && remark . -qfo && eslint --no-inline-config -c .lib.eslintrc lib",
120120
"precommit": "lint-staged && npm test",
121121
"test": "npm run build && npm run lint && npm run test-coverage",
122122
"test-coverage": "cross-env NODE_ENV=test nyc ava",

0 commit comments

Comments
 (0)