Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jan 2, 2024
1 parent 2b8cbc0 commit aafc07a
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 17 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,36 @@ module.exports = {
],
'inker/react-ref-name': 2,

"import/order": [
2,
{
groups: [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
],
"newlines-between": "always-and-inside-groups",
pathGroups: [
{
pattern: "react",
group: "external",
position: "before",
},
{
pattern: "./*.module.{css,scss,postcss}",
group: "sibling",
position: "after",
},
],
distinctGroup: false,
pathGroupsExcludedImportTypes: ["react"],
warnOnUnassignedImports: true,
},
],

'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
'react/require-default-props': 0,
Expand Down
1 change: 0 additions & 1 deletion src/pages/cl/gs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { memo, useCallback, useEffect, useRef, useState } from 'react'

import { css } from 'styled-components'

import { random, sample, shuffle } from 'lodash'
Expand Down
1 change: 0 additions & 1 deletion src/pages/cl/ko/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'

import { random, shuffle } from 'lodash'

import { type FixedArray } from 'model/types'
Expand Down
2 changes: 0 additions & 2 deletions src/pages/el/gs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { memo, useCallback, useEffect, useRef, useState } from 'react'

import { css } from 'styled-components'

import { random, shuffle } from 'lodash'

import type Team from 'model/team/GsTeam'
Expand Down
1 change: 0 additions & 1 deletion src/pages/el/ko/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'

import { random, shuffle } from 'lodash'

import { type FixedArray } from 'model/types'
Expand Down
2 changes: 0 additions & 2 deletions src/pages/wc/gs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { memo, useCallback, useEffect, useRef, useState } from 'react'

import { css } from 'styled-components'

import { constant, random, shuffle } from 'lodash'

import type Team from 'model/team/NationalTeam'
Expand Down
1 change: 0 additions & 1 deletion src/routes/Navbar/SelectSeason.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { memo, useCallback } from 'react'

import { range } from 'lodash'

import type Tournament from 'model/Tournament'
Expand Down
2 changes: 0 additions & 2 deletions src/routes/Pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { memo, useEffect, useState } from 'react'

import { useParams } from 'react-router-dom'

import delay from 'delay.js'

import type Team from 'model/team'
Expand Down
1 change: 0 additions & 1 deletion src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { memo, useCallback, useEffect, useMemo } from 'react'

import {
Navigate,
Route,
Expand Down
1 change: 0 additions & 1 deletion src/ui/Announcement/Download.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type RefObject, memo, useCallback, useEffect, useState } from 'react'

import delay from 'delay.js'

import ButtonLink from 'ui/ButtonLink'
Expand Down
1 change: 0 additions & 1 deletion src/ui/Announcement/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type RefObject, memo, useEffect, useRef } from 'react'

import styled from 'styled-components'

import type Club from 'model/team/Club'
Expand Down
1 change: 0 additions & 1 deletion src/ui/Dots.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { memo, useEffect, useState } from 'react'

import styled from 'styled-components'

const InvisibleSpan = styled.span`
Expand Down
1 change: 0 additions & 1 deletion src/ui/Notification.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type ReactNode, memo } from 'react'

import styled from 'styled-components'

import Modal from './Modal'
Expand Down
1 change: 0 additions & 1 deletion src/ui/Portal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type ReactNode, memo, useEffect, useMemo, useRef } from 'react'

import ReactDOM from 'react-dom'
import htmlTags from 'html-tags'

Expand Down
1 change: 0 additions & 1 deletion src/utils/makeStoreHook.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useCallback, useEffect, useState } from 'react'

import { pull } from 'lodash'

export default <S>(initialState: S | (() => S)) => {
Expand Down

0 comments on commit aafc07a

Please sign in to comment.