Skip to content

Commit 1b5f8ee

Browse files
committed
chore: align TypeScript 6 tooling checks
1 parent 24bdd37 commit 1b5f8ee

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

src/MiniDecimal.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
/* eslint-disable max-classes-per-file */
1+
/* eslint @typescript-eslint/consistent-type-exports: off */
22

3-
import BigIntDecimal from './BigIntDecimal';
4-
import NumberDecimal from './NumberDecimal';
3+
import BigIntDecimalBase from './BigIntDecimal';
4+
import NumberDecimalBase from './NumberDecimal';
55
import type { DecimalClass, ValueType } from './interface';
66
import { trimNumber } from './numberUtil';
77
import { supportBigInt } from './supportUtil';
88

99
// Still support origin export
10-
export { NumberDecimal, BigIntDecimal };
10+
export const NumberDecimal = NumberDecimalBase;
11+
export const BigIntDecimal = BigIntDecimalBase;
1112

1213
export type { DecimalClass, ValueType };
1314

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint @typescript-eslint/consistent-type-exports: off */
2+
13
import getMiniDecimal from './MiniDecimal';
24
export * from './MiniDecimal';
35
import {

tsconfig.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
22
"compilerOptions": {
33
"target": "esnext",
4-
"ignoreDeprecations": "6.0",
54
"strict": false,
6-
"moduleResolution": "node",
7-
"baseUrl": "./",
5+
"moduleResolution": "bundler",
86
"jsx": "preserve",
97
"declaration": true,
108
"skipLibCheck": true,
119
"esModuleInterop": true,
1210
"types": ["@testing-library/jest-dom", "node", "jest"],
1311
"paths": {
14-
"@/*": ["src/*"],
15-
"@@/*": ["src/.umi/*"],
16-
"@rc-component/portal": ["src/Portal.tsx"]
12+
"@/*": ["./src/*"],
13+
"@@/*": ["./src/.umi/*"],
14+
"@rc-component/portal": ["./src/Portal.tsx"]
1715
}
1816
},
1917
"include": [

0 commit comments

Comments
 (0)