This repository was archived by the owner on Aug 24, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +490
-381
lines changed
Expand file tree Collapse file tree 5 files changed +490
-381
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change 55 * @returns {boolean }
66 */
77export function isNumeric ( value ) {
8- return ! isNaN ( value - parseFloat ( value ) )
8+ return ! Number . isNaN ( value - parseFloat ( value ) )
99}
1010
1111/**
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments