Skip to content

fix linting issue

fix linting issue #15

Triggered via push August 28, 2024 12:34
Status Success
Total duration 1m 11s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
lint: src/components/ChooseCategoryModal/index.tsx#L65
'categoryId' is already declared in the upper scope on line 30 column 3
lint: src/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.tsx#L187
Inline style: { flex: 1, height: '100%', width: '100%' }
lint: src/components/LoadingVideo/index.tsx#L76
'thumbNail' is already declared in the upper scope on line 43 column 3
lint: src/components/MediaSection/index.tsx#L286
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “MediaSection” and pass data as props. If you want to allow component creation in props, set allowAsProps option to true
lint: src/components/Social/PostList/index.tsx#L176
'data' is already declared in the upper scope on line 115 column 5
lint: src/components/StoryKit/src/Story.tsx#L84
Expected '===' and instead saw '=='
lint: src/components/StoryKit/src/Story.tsx#L96
Expected '===' and instead saw '=='
lint: src/components/StoryKit/src/Story.tsx#L146
Expected '===' and instead saw '=='
lint: src/components/StoryKit/src/Story.tsx#L151
Expected '!==' and instead saw '!='
lint: src/components/StoryKit/src/Story.tsx#L152
Missing radix parameter