Skip to content

Commit aec596f

Browse files
committed
build: upgrade typescript
1 parent b7fb2a3 commit aec596f

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
"semi": [2, "always"],
4141
"strict": 0,
4242
"no-use-before-define": 0,
43-
"@typescript-eslint/no-use-before-define": 2
43+
"@typescript-eslint/no-use-before-define": 2,
44+
"@typescript-eslint/consistent-type-imports": "error",
45+
"@typescript-eslint/no-import-type-side-effects": "error"
4446
}
4547
}

sandboxes/chart/events/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { MouseEvent, useRef } from 'react';
1+
import React, { type MouseEvent, useRef } from 'react';
22
import type { InteractionItem } from 'chart.js';
33
import {
44
Chart as ChartJS,

stories/Chart.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {
2-
MouseEvent,
2+
type MouseEvent,
33
useRef,
44
useState,
55
useEffect,

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
/* Emit */
1717
"declaration": true,
1818
"declarationMap": true,
19-
"importsNotUsedAsValues": "error",
2019
"inlineSourceMap": true,
2120
"outDir": "dist",
2221
/* Interop Constraints */

0 commit comments

Comments
 (0)