Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit 224f6f2

Browse files
committed
chore: upgrade deps, fix lint
1 parent f9ba9d0 commit 224f6f2

File tree

5 files changed

+490
-381
lines changed

5 files changed

+490
-381
lines changed

.yarnrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,23 @@
1515
"devDependencies": {
1616
"babel-cli": "^6.26.0",
1717
"babel-core": "^6.26.0",
18-
"babel-eslint": "^7.2.3",
18+
"babel-eslint": "^8.0.3",
1919
"babel-plugin-transform-class-properties": "^6.24.1",
2020
"babel-plugin-transform-object-rest-spread": "^6.26.0",
2121
"babel-preset-env": "^1.6.0",
2222
"chalk": "^2.1.0",
23-
"codecov": "^2.3.0",
24-
"eslint": "^4.4.1",
25-
"eslint-config-airbnb-base": "^11.3.1",
26-
"eslint-config-prettier": "^2.3.0",
23+
"codecov": "^3.0.0",
24+
"eslint": "^4.12.1",
25+
"eslint-config-airbnb-base": "^12.1.0",
26+
"eslint-config-prettier": "^2.9.0",
2727
"eslint-plugin-import": "^2.7.0",
2828
"glob": "^7.1.2",
29-
"jest": "^20.0.4",
30-
"lerna": "^2.1.0",
31-
"lerna-tools": "^0.0.2",
29+
"jest": "^21.2.1",
30+
"lerna": "^2.5.1",
31+
"lerna-tools": "^0.0.3",
3232
"micromatch": "^3.0.4",
3333
"mkdirp": "^0.5.1",
34+
"prettier": "^1.9.1",
3435
"string-length": "^2.0.0"
3536
},
3637
"workspaces": [

packages/h2x-plugin-jsx/src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @returns {boolean}
66
*/
77
export function isNumeric(value) {
8-
return !isNaN(value - parseFloat(value))
8+
return !Number.isNaN(value - parseFloat(value))
99
}
1010

1111
/**

packages/h2x-traverse/src/NodePath.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class NodePath {
4040
}
4141

4242
call(key) {
43-
const opts = this.opts
43+
const { opts } = this
4444

4545
if (this.node) {
4646
if (this._call(opts[key])) return true
@@ -90,7 +90,7 @@ class NodePath {
9090
for (const fn of fns) {
9191
if (!fn) continue
9292

93-
const node = this.node
93+
const { node } = this
9494
if (!node) return true
9595

9696
const ret = fn(this, this.state)

0 commit comments

Comments
 (0)