src/app/App.tsx
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 25
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 20
mnd 0
bc 0
fnc 0
dl 0
loc 25
bpm 0
cpm 0
noi 8
c 0
b 0
f 0
1
import { QueryClient, QueryClientProvider } from 'react-query'
2
import { ReactQueryDevtools } from 'react-query/devtools'
3
import { Routes } from './Routes'
4
5
import 'styles/index.scss'
6
7
const queryClient = new QueryClient({
8
  defaultOptions: {
9
    queries: {
10
      refetchOnWindowFocus: false,
11
    },
12
  },
13
})
14
15
const App = () => (
0 ignored issues
show
introduced by
Function component is not a function declaration
Loading history...
16
  <>
0 ignored issues
show
introduced by
Fragments should contain more than one child - otherwise, there‘s no need for a Fragment at all.
Loading history...
introduced by
Expected indentation of 4 space characters but found 2.
Loading history...
introduced by
JSX not allowed in files with extension '.tsx'
Loading history...
17
    <QueryClientProvider client={queryClient}>
0 ignored issues
show
introduced by
Expected indentation of 6 space characters but found 4.
Loading history...
18
      <Routes />
0 ignored issues
show
introduced by
Expected indentation of 8 space characters but found 6.
Loading history...
19
      <ReactQueryDevtools initialIsOpen={false} />
0 ignored issues
show
introduced by
Expected indentation of 8 space characters but found 6.
Loading history...
introduced by
JSX element should start in a new line
Loading history...
20
    </QueryClientProvider>
21
  </>
22
)
23
24
export { App }
25