Skip to content

Commit 668220c

Browse files
authored
chore: Using prepare package lock script from build tools (#155)
1 parent 1885ee4 commit 668220c

File tree

9 files changed

+2865
-13527
lines changed

9 files changed

+2865
-13527
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
],
8585
"simple-import-sort/imports": "warn",
8686
"@vitest/no-focused-tests": "error",
87+
"@vitest/no-conditional-expect": "off",
8788
},
8889
"settings": {
8990
"react": {

package-lock.json

Lines changed: 2847 additions & 13462 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@
116116
"stylelint": "^16.9.0",
117117
"stylelint-config-recommended-scss": "^14.1.0",
118118
"stylelint-prettier": "^5.0.2",
119-
"typescript": "^4.9.4",
119+
"typescript": "^5.9.2",
120120
"vite": "^6.4.1",
121121
"vitest": "^3.0.7"
122122
},
123123
"//": "ensure that typedoc uses latest typescript. It prints a warning, but works",
124124
"overrides": {
125-
"typescript": "^4.9.4",
125+
"typescript": "^5.9.2",
126126
"glob": "^10.5.0"
127127
},
128128
"lint-staged": {
@@ -133,7 +133,7 @@
133133
"stylelint --fix"
134134
],
135135
"package-lock.json": [
136-
"./scripts/prepare-package-lock.js"
136+
"prepare-package-lock"
137137
]
138138
}
139139
}

scripts/prepare-package-lock.js

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

src/__tests__/__snapshots__/documenter.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ for the user to recover from the error.",
269269
},
270270
{
271271
"inlineType": {
272-
"name": "NonCancelableEventHandler<{}>",
272+
"name": "NonCancelableEventHandler",
273273
"parameters": [
274274
{
275275
"name": "event",
@@ -281,7 +281,7 @@ for the user to recover from the error.",
281281
},
282282
"name": "onRecoveryClick",
283283
"optional": true,
284-
"type": "NonCancelableEventHandler<{}>",
284+
"type": "NonCancelableEventHandler",
285285
},
286286
{
287287
"inlineType": {
@@ -923,7 +923,7 @@ for the user to recover from the error.",
923923
},
924924
{
925925
"inlineType": {
926-
"name": "NonCancelableEventHandler<{}>",
926+
"name": "NonCancelableEventHandler",
927927
"parameters": [
928928
{
929929
"name": "event",
@@ -935,7 +935,7 @@ for the user to recover from the error.",
935935
},
936936
"name": "onRecoveryClick",
937937
"optional": true,
938-
"type": "NonCancelableEventHandler<{}>",
938+
"type": "NonCancelableEventHandler",
939939
},
940940
{
941941
"inlineType": {
@@ -1718,7 +1718,7 @@ for the user to recover from the error.",
17181718
},
17191719
{
17201720
"inlineType": {
1721-
"name": "NonCancelableEventHandler<{}>",
1721+
"name": "NonCancelableEventHandler",
17221722
"parameters": [
17231723
{
17241724
"name": "event",
@@ -1730,7 +1730,7 @@ for the user to recover from the error.",
17301730
},
17311731
"name": "onRecoveryClick",
17321732
"optional": true,
1733-
"type": "NonCancelableEventHandler<{}>",
1733+
"type": "NonCancelableEventHandler",
17341734
},
17351735
{
17361736
"inlineType": {

src/cartesian-chart/interfaces.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import { NonCancelableEventHandler } from "../internal/events";
88
// we pass options directly to the component, instead of grouping them all into a single "options" property.
99
// We do still organize related options in groups, e.g.: "SeriesOptions", "TooltipOptions".
1010
export interface CartesianChartProps
11-
extends CoreTypes.BaseChartOptions,
12-
CoreTypes.CoreCartesianOptions,
13-
CoreTypes.WithCartesianI18nStrings {
11+
extends CoreTypes.BaseChartOptions, CoreTypes.CoreCartesianOptions, CoreTypes.WithCartesianI18nStrings {
1412
/**
1513
* Inverts X and Y axes. Use it to show horizontal columns (bars).
1614
* This property corresponds to [chart.inverted](https://api.highcharts.com/highcharts/chart.inverted).

src/core/interfaces.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ export interface CoreCartesianOptions {
314314
}
315315

316316
export interface CoreChartProps
317-
extends Pick<
317+
extends
318+
Pick<
318319
BaseChartOptions,
319320
| "highcharts"
320321
| "fallback"

src/core/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ export function getVisibleLegendItems(options: Highcharts.Options) {
215215
};
216216

217217
options.series?.forEach((series) => {
218+
if (!("type" in series)) {
219+
return;
220+
}
221+
218222
// The pie series is not shown in the legend. Instead, we show pie segments (points).
219223
if (series.type === "pie") {
220224
if (Array.isArray(series.data)) {

tsconfig.e2e.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"types": ["vite/client"],
77
"tsBuildInfoFile": "./.cache/e2e-tests.tsbuildinfo"
88
},
9-
"include": ["types", "test"],
9+
"include": ["types", "test", "vite/client"],
1010
"exclude": []
1111
}

0 commit comments

Comments
 (0)