Skip to content

Commit 846cb98

Browse files
committed
docs: fix charts usage missing error
1 parent 5c788c7 commit 846cb98

39 files changed

+50
-50
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["@opd/eslint-config-pangu"],
2+
"extends": ["@opd/eslint-config"],
33
"rules": {
44
"react/react-in-jsx-scope": "off"
55
}

docs/api/area.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { AreaChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/bar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { BarChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/bidirectional-bar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { BidirectionalBarChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/box.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { BoxChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/bullet.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { BulletChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/chord.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { ChordChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/circle-packing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { CirclePackingChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/column.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { ColumnChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/dual-axes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { DualAxesChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/facet.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { FacetChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/funnel.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { FunnelChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/gauge.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { GaugeChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/heatmap.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { HeatmapChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/histogram.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { HistogramChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/line.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { LineChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/liquid.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { LiquidChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/mix.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { MixChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/pie.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { PieChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/progress.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { ProgressChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/radar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { RadarChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/radial-bar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { RadialBarChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/ring-progress.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { RingProgressChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/rose.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { RoseChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/sankey.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { SankeyChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/scatter.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { ScatterChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/stock.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { StockChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/sunburst.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { SunburstChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/tiny-area.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { TinyAreaChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/tiny-column.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { TinyColumnChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/tiny-line.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { TinyLineChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/treemap.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { TreemapChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/venn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { VennChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/violin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { ViolinChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/waterfall.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { WaterfallChart } from '@opd/g2plot-react'
77
```
88

99
## API

docs/api/word-cloud.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Usage
44

55
```tsx | pure
6-
6+
import { WordCloudChart } from '@opd/g2plot-react'
77
```
88

99
## API

package-lock.json

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"prettier -c --write"
5555
]
5656
},
57-
"prettier": "@opd/prettier-config-pangu",
57+
"prettier": "@opd/prettier-config",
5858
"dependencies": {
5959
"@babel/runtime": "^7.21.0"
6060
},
@@ -63,8 +63,8 @@
6363
"@commitlint/cli": "^18.0.0",
6464
"@commitlint/config-conventional": "^18.0.0",
6565
"@opd/babel-preset-component": "^1.13.6",
66-
"@opd/eslint-config-pangu": "^1.14.0",
67-
"@opd/prettier-config-pangu": "^1.14.0",
66+
"@opd/eslint-config": "^2.0.0",
67+
"@opd/prettier-config": "^2.0.0",
6868
"@types/eslint": "^8.37.0",
6969
"@types/jest": "^29.5.10",
7070
"@types/lodash": "^4.14.192",

scripts/sync.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const readFile = promisify(fs.readFile)
1414
const eslint = new ESLint({
1515
extensions: ['.tsx'],
1616
baseConfig: {
17-
extends: ['@opd/eslint-config-pangu'],
17+
extends: ['@opd/eslint-config'],
1818
},
1919
fix: true,
2020
})

0 commit comments

Comments
 (0)