Skip to content

Commit 26b56b0

Browse files
committed
test: upgrade prettier too
1 parent f32e164 commit 26b56b0

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.eslintrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"parser": "@typescript-eslint/parser",
3-
"plugins": ["@typescript-eslint"],
3+
"plugins": ["@typescript-eslint", "prettier"],
44
"extends": [
55
"standard",
66
"standard-react",
7-
"plugin:prettier/recommended",
8-
"plugin:@typescript-eslint/recommended"
7+
"plugin:@typescript-eslint/recommended",
8+
"plugin:prettier/recommended"
99
],
1010
"env": {
1111
"browser": true

src/chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
function ChartComponent<
1515
TType extends ChartType = ChartType,
1616
TData = DefaultDataPoint<TType>,
17-
TLabel = unknown
17+
TLabel = unknown,
1818
>(
1919
props: ChartProps<TType, TData, TLabel>,
2020
ref: ForwardedRef<ChartJS<TType, TData, TLabel>>

src/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type ForwardedRef<T> =
1717
export interface ChartProps<
1818
TType extends ChartType = ChartType,
1919
TData = DefaultDataPoint<TType>,
20-
TLabel = unknown
20+
TLabel = unknown,
2121
> extends CanvasHTMLAttributes<HTMLCanvasElement> {
2222
/**
2323
* Chart.js chart type
@@ -70,13 +70,13 @@ export interface ChartProps<
7070
export type ChartJSOrUndefined<
7171
TType extends ChartType = ChartType,
7272
TData = DefaultDataPoint<TType>,
73-
TLabel = unknown
73+
TLabel = unknown,
7474
> = Chart<TType, TData, TLabel> | undefined;
7575

7676
export type BaseChartComponent = <
7777
TType extends ChartType = ChartType,
7878
TData = DefaultDataPoint<TType>,
79-
TLabel = unknown
79+
TLabel = unknown,
8080
>(
8181
props: ChartProps<TType, TData, TLabel> & {
8282
ref?: ForwardedRef<ChartJSOrUndefined<TType, TData, TLabel>>;
@@ -85,7 +85,7 @@ export type BaseChartComponent = <
8585

8686
export type TypedChartComponent<TDefaultType extends ChartType> = <
8787
TData = DefaultDataPoint<TDefaultType>,
88-
TLabel = unknown
88+
TLabel = unknown,
8989
>(
9090
props: Omit<ChartProps<TDefaultType, TData, TLabel>, 'type'> & {
9191
ref?: ForwardedRef<ChartJSOrUndefined<TDefaultType, TData, TLabel>>;

src/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function reforwardRef<T>(ref: ForwardedRef<T>, value: T) {
2323
export function setOptions<
2424
TType extends ChartType = ChartType,
2525
TData = DefaultDataPoint<TType>,
26-
TLabel = unknown
26+
TLabel = unknown,
2727
>(chart: Chart<TType, TData, TLabel>, nextOptions: ChartOptions<TType>) {
2828
const options = chart.options;
2929

@@ -35,7 +35,7 @@ export function setOptions<
3535
export function setLabels<
3636
TType extends ChartType = ChartType,
3737
TData = DefaultDataPoint<TType>,
38-
TLabel = unknown
38+
TLabel = unknown,
3939
>(
4040
currentData: ChartData<TType, TData, TLabel>,
4141
nextLabels: TLabel[] | undefined
@@ -46,7 +46,7 @@ export function setLabels<
4646
export function setDatasets<
4747
TType extends ChartType = ChartType,
4848
TData = DefaultDataPoint<TType>,
49-
TLabel = unknown
49+
TLabel = unknown,
5050
>(
5151
currentData: ChartData<TType, TData, TLabel>,
5252
nextDatasets: ChartDataset<TType, TData>[],
@@ -83,7 +83,7 @@ export function setDatasets<
8383
export function cloneData<
8484
TType extends ChartType = ChartType,
8585
TData = DefaultDataPoint<TType>,
86-
TLabel = unknown
86+
TLabel = unknown,
8787
>(data: ChartData<TType, TData, TLabel>, datasetIdKey = defaultDatasetIdKey) {
8888
const nextData: ChartData<TType, TData, TLabel> = {
8989
labels: [],

0 commit comments

Comments
 (0)