Issues (576)

src/pages/main/index.tsx (9 issues)

Severity
1
import { useStore } from 'effector-react'
2
import { PageChangeAnimation } from 'entities/PageChangeAnimation'
3
import { MoviesCardsGrid } from 'entities/MoviesCardsGrid'
4
import { Pagination } from 'feature/pagination'
5
import { $page } from 'feature/pagination/model'
6
7
const Main = () => {
0 ignored issues
show
Function component is not a function declaration
Loading history...
8
  const page = useStore($page)
9
10
  return (
11
    <>
0 ignored issues
show
Expected indentation of 6 space characters but found 4.
Loading history...
JSX not allowed in files with extension '.tsx'
Loading history...
12
      <PageChangeAnimation keyProp={page} timeout={500} classNames="fade">
0 ignored issues
show
Expected indentation of 8 space characters but found 6.
Loading history...
Prop timeout must be placed on a new line
Loading history...
Props should be sorted alphabetically
Loading history...
13
        <MoviesCardsGrid currentPage={page} />
0 ignored issues
show
Expected indentation of 10 space characters but found 8.
Loading history...
14
      </PageChangeAnimation>
15
      <Pagination />
0 ignored issues
show
Expected indentation of 8 space characters but found 6.
Loading history...
JSX element should start in a new line
Loading history...
16
    </>
17
  )
18
}
19
20
export { Main }
21