Skip to content

Commit df4cdc3

Browse files
committed
Fix npm linking in Next.js
1 parent 83c326f commit df4cdc3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+5035
-7582
lines changed

.babelrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
}
88
],
99
"@babel/react"
10-
],
11-
"plugins": ["@babel/plugin-proposal-class-properties"]
10+
]
1211
}

.editorconfig

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ function MyChart() {
465465
- `hardMax` **number** - The hard/forced maximum for this axis
466466
- `base` **number** - The base value for this axis. Defaults to `0`
467467
- `ticks` **function** - The function used to generate ticks for the axis
468+
- `format` **func** - The function used to format values on this axis for display
468469
- `tickValues` **any** - The optional override for the tick values of the axis
469-
- `tickFormat` **func** - The function used to format tick values for display
470470
- `tickSizeInner` **number** - The size of inner tick lines for the axis
471471
- `tickSizeOuter` **number** - The size of the outer tick lines for the axis
472472
- `tickPadding` **number** - The padding amount between tick labels

package.json

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,49 +16,48 @@
1616
"start": "rollup -c -w",
1717
"prepare": "yarn build",
1818
"release": "yarn publish",
19-
"releaseNext": "yarn publish --tag next"
19+
"releaseNext": "yarn publish --tag next",
20+
"prettier": "prettier src/**/*.js --write"
2021
},
2122
"peerDependencies": {
2223
"prop-types": "^15.5.4",
2324
"react": "^16.6.3"
2425
},
2526
"dependencies": {
26-
"@babel/runtime": "^7.4.5",
2727
"@reach/observe-rect": "^1.0.3",
28-
"d3-delaunay": "^4.1.5",
29-
"d3-scale": "^3.0.0",
30-
"d3-shape": "^1.3.5",
28+
"d3-delaunay": "^5.1.6",
29+
"d3-scale": "^3.2.0",
30+
"d3-shape": "^1.3.7",
3131
"d3-voronoi": "^1.1.2",
32-
"raf": "^3.4.1",
33-
"use-react-hooks": "^1.0.6"
32+
"raf": "^3.4.1"
3433
},
3534
"devDependencies": {
36-
"@babel/plugin-proposal-class-properties": "^7.4.4",
37-
"@babel/preset-env": "^7.4.5",
38-
"@babel/preset-react": "^7.0.0",
39-
"@svgr/rollup": "^4.3.0",
35+
"@babel/plugin-proposal-class-properties": "^7.7.0",
36+
"@babel/preset-env": "^7.7.1",
37+
"@babel/preset-react": "^7.7.0",
38+
"@svgr/rollup": "^4.3.3",
4039
"babel-core": "7.0.0-bridge.0",
41-
"babel-eslint": "9.x",
42-
"cross-env": "^5.1.4",
43-
"eslint": "5.x",
44-
"eslint-config-prettier": "^4.3.0",
45-
"eslint-config-react-app": "^4.0.1",
46-
"eslint-config-standard": "^12.0.0",
47-
"eslint-config-standard-react": "^7.0.2",
48-
"eslint-plugin-flowtype": "2.x",
49-
"eslint-plugin-import": "2.x",
50-
"eslint-plugin-jsx-a11y": "6.x",
51-
"eslint-plugin-node": "^9.1.0",
52-
"eslint-plugin-promise": "^4.1.1",
53-
"eslint-plugin-react": "7.x",
54-
"eslint-plugin-react-hooks": "1.5.0",
55-
"eslint-plugin-standard": "^4.0.0",
56-
"react": "^16.8.6",
57-
"react-dom": "^16.8.6",
58-
"rollup": "^1.12.4",
59-
"rollup-plugin-babel": "^4.3.2",
60-
"rollup-plugin-commonjs": "^10.0.0",
61-
"rollup-plugin-node-resolve": "^5.0.0",
40+
"babel-eslint": "10.0.3",
41+
"cross-env": "^6.0.3",
42+
"eslint": "6.6.0",
43+
"eslint-config-prettier": "^6.7.0",
44+
"eslint-config-react-app": "^5.0.2",
45+
"eslint-config-standard": "^14.1.0",
46+
"eslint-config-standard-react": "^9.2.0",
47+
"eslint-plugin-flowtype": "4.4.1",
48+
"eslint-plugin-import": "2.18.2",
49+
"eslint-plugin-jsx-a11y": "6.2.3",
50+
"eslint-plugin-node": "^10.0.0",
51+
"eslint-plugin-promise": "^4.2.1",
52+
"eslint-plugin-react": "7.16.0",
53+
"eslint-plugin-react-hooks": "2.3.0",
54+
"eslint-plugin-standard": "^4.0.1",
55+
"react": "^16.12.0",
56+
"react-dom": "^16.12.0",
57+
"rollup": "^1.27.2",
58+
"rollup-plugin-babel": "^4.3.3",
59+
"rollup-plugin-commonjs": "^10.1.0",
60+
"rollup-plugin-node-resolve": "^5.2.0",
6261
"rollup-plugin-peer-deps-external": "^2.2.0"
6362
},
6463
"files": [

src/components/Axis.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import React from 'react'
1+
import React from "react";
22
//
33
// import AxisPie from './AxisPie'
4-
import AxisLinear from './AxisLinear'
4+
import AxisLinear from "./AxisLinear";
55

66
export default class Axis extends React.Component {
77
render() {
8-
const { type } = this.props
8+
const { type } = this.props;
99

1010
// if (type === 'pie') {
1111
// return <AxisPie {...this.props} />
1212
// }
1313

14-
return <AxisLinear {...this.props} />
14+
return <AxisLinear {...this.props} />;
1515
}
1616
}

0 commit comments

Comments
 (0)