Skip to content

Commit a8af69c

Browse files
committed
chore: fix lint
1 parent f9c0f30 commit a8af69c

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@ module.exports = {
1010
'react/sort-comp': 0,
1111
'jsx-a11y/label-has-for': 0,
1212
'jsx-a11y/label-has-associated-control': 0,
13+
'@typescript-eslint/consistent-indexed-object-style': 0,
14+
'@typescript-eslint/no-parameter-properties': 0,
15+
'@typescript-eslint/ban-types': 0,
16+
'@typescript-eslint/type-annotation-spacing': 0,
17+
'@typescript-eslint/no-throw-literal': 0,
1318
},
1419
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"react": "^18.0.0",
6262
"react-dom": "^18.0.0",
6363
"regenerator-runtime": "^0.14.0",
64-
"typescript": "^5.1.6"
64+
"typescript": "~5.1.6"
6565
},
6666
"dependencies": {
6767
"@rc-component/motion": "^1.1.4",

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import useEvent from '@rc-component/util/lib/hooks/useEvent';
88
import useId from '@rc-component/util/lib/hooks/useId';
99
import useLayoutEffect from '@rc-component/util/lib/hooks/useLayoutEffect';
1010
import * as React from 'react';
11-
import Popup, { MobileConfig } from './Popup';
11+
import Popup, { type MobileConfig } from './Popup';
1212
import TriggerWrapper from './TriggerWrapper';
1313
import type { TriggerContextProps } from './context';
1414
import TriggerContext from './context';

src/interface.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { CSSMotionProps } from '@rc-component/motion';
2-
31
export type Placement =
42
| 'top'
53
| 'left'

0 commit comments

Comments
 (0)