refactor(Tab): convert to TypeScript, impove docs and tests, close#4612 #439
Annotations
2 errors and 11 warnings
changed:
components/tab/__docs__/demo/closable/index.tsx#L4
Expected 1 empty line after import statement not followed by another import
|
changed
Process completed with exit code 1.
|
changed
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
changed:
components/tab/__docs__/demo/closable/index.tsx#L4
All imports in the declaration are only used as types. Use `import type`
|
changed:
components/tab/__docs__/demo/shape/index.tsx#L4
'instanceOf' is defined but never used
|
changed:
components/tab/__docs__/theme/index.tsx#L1
Import "ReactNode" is only used as types
|
changed:
components/tab/__docs__/theme/index.tsx#L3
All imports in the declaration are only used as types. Use `import type`
|
changed:
components/tab/__tests__/index-spec.tsx#L546
'panes' is assigned a value but never used
|
changed:
components/tab/__tests__/index-spec.tsx#L549
'boxStyle' is assigned a value but never used
|
changed:
components/tab/tab.tsx#L1
Import "ReactElement" is only used as types
|
changed:
components/tab/tab.tsx#L10
All imports in the declaration are only used as types. Use `import type`
|
changed:
components/tab/tab.tsx#L11
All imports in the declaration are only used as types. Use `import type`
|
changed:
components/tab/tabs/content.tsx#L1
'ReactElement' is defined but never used
|