Skip to content

fix: 🐛 lint

fix: 🐛 lint #12

Triggered via push June 29, 2024 13:26
Status Failure
Total duration 55s
Artifacts

workflow.yml

on: push
Run tests
44s
Run tests
Prepare environment
37s
Prepare environment
Release
0s
Release
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 9 warnings
Run tests: __tests__/features/base/interactions.spec.tsx#L1
'interactions.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Run tests: __tests__/features/pan-touch/pan-touch.sizes.spec.tsx#L1
'pan-touch.sizes.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Run tests: __tests__/features/pan-touch/pan.exclusion.spec.tsx#L1
'pan.exclusion.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Run tests: __tests__/features/pan-track-pad/pan.exclusion.spec.tsx#L1
'pan.exclusion.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Run tests: __tests__/features/pan/pan.bounds.spec.tsx#L1
'pan.bounds.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Run tests: __tests__/features/pan/pan.clicks.spec.tsx#L1
'pan.clicks.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Run tests: __tests__/features/pan/pan.exclusion.spec.tsx#L1
'pan.exclusion.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Run tests: __tests__/features/pan/pan.sizes.spec.tsx#L1
'pan.sizes.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Run tests: __tests__/features/pinch/pinch.exclusion.spec.tsx#L1
'pinch.exclusion.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Run tests: __tests__/features/positions/positions.base.spec.tsx#L1
'positions.base.spec.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
Prepare environment
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache/save@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Prepare environment
Cache save failed.
Run tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache/restore@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run tests: src/components/transform-component/transform-component.tsx#L43
React Hook useEffect has missing dependencies: 'cleanupWindowEvents' and 'init'. Either include them or remove the dependency array
Run tests: src/core/animations/animations.constants.ts#L55
Unexpected unnamed function
Run tests: src/core/animations/animations.constants.ts#L59
Unexpected unnamed function
Run tests: src/hooks/use-transform-init.tsx#L26
React Hook useEffect has missing dependencies: 'callback' and 'libraryContext'. Either include them or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback
Run tests: src/hooks/use-zoom-pan-pinch.tsx#L31
The ref value 'instance.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'instance.current' to a variable inside the effect, and use that variable in the cleanup function
Run tests: src/hooks/use-zoom-pan-pinch.tsx#L34
React Hook useLayoutEffect has unnecessary dependencies: 'contentRef.current' and 'wrapperRef.current'. Either exclude them or remove the dependency array. Mutable values like 'contentRef.current' aren't valid dependencies because mutating them doesn't re-render the component