-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2195 enhancement modify linting (#2198)
* fixing the linting issues * fixing the linting issuesgs * fixing the linting issues * fixing the linting issues * fixing the linting issues * fixing the linting issues * fixing the linting issues * fix the linting issues of project web only * fix the linting issues of project web only * fix the linting issues of project web only
- Loading branch information
Showing
32 changed files
with
345 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# npm test | ||
cd "apps/web" | ||
|
||
yarn lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
{ | ||
"plugins": ["unused-imports"], | ||
"extends": "next/core-web-vitals", | ||
"rules": { | ||
"react/no-unstable-nested-components": [ | ||
"error" | ||
] | ||
"unused-imports/no-unused-imports": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { IKanban } from "@app/interfaces/IKanban"; | ||
import { atom } from "recoil"; | ||
import { IKanban } from '@app/interfaces/IKanban'; | ||
import { atom } from 'recoil'; | ||
|
||
export const kanbanBoardState = atom<IKanban>({ | ||
key: 'kanbanBoardState', | ||
default: { | ||
|
||
} | ||
}) | ||
key: 'kanbanBoardState', | ||
default: {} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 36 additions & 34 deletions
70
apps/web/components/shared/skeleton/KanbanBoardSkeleton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,43 @@ | ||
import React from "react"; | ||
import Skeleton from "react-loading-skeleton"; | ||
import React from 'react'; | ||
import Skeleton from 'react-loading-skeleton'; | ||
|
||
const KanbanBoardSkeleton = () => { | ||
const columns = Array.from(Array(5)); | ||
|
||
const columns = Array.from(Array(5)); | ||
const tasks = Array.from(Array(2)); | ||
|
||
const tasks = Array.from(Array(2)); | ||
return ( | ||
<> | ||
<div className="flex flex-row gap-[20px] w-full min-h-[600px] p-[32px] bg-transparent dark:bg-[#181920]"> | ||
{columns.map((_, index: number) => { | ||
return ( | ||
<React.Fragment key={index}> | ||
<div className="flex flex-col gap-[10px]"> | ||
<Skeleton height={40} width={325} borderRadius={10} className="dark:bg-[#353741]" /> | ||
|
||
return ( | ||
<> | ||
<div | ||
className="flex flex-row gap-[20px] w-full min-h-[600px] p-[32px] bg-transparent dark:bg-[#181920]" | ||
> | ||
{columns.map((_, index: number)=> { | ||
return ( | ||
<React.Fragment key={index}> | ||
<div className="flex flex-col gap-[10px]"> | ||
<Skeleton height={40} width={325} borderRadius={10} className="dark:bg-[#353741]" /> | ||
<div className="flex flex-col gap-[5px]"> | ||
{tasks.map((_, index: number) => { | ||
return ( | ||
<React.Fragment key={index}> | ||
<Skeleton | ||
height={155} | ||
width={325} | ||
borderRadius={10} | ||
className="dark:bg-[#353741]" | ||
/> | ||
</React.Fragment> | ||
); | ||
})} | ||
|
||
<div className="flex flex-col gap-[5px]"> | ||
{tasks.map((_, index: number)=> { | ||
return ( | ||
<React.Fragment key={index}> | ||
<Skeleton height={155} width={325} borderRadius={10} className="dark:bg-[#353741]" /> | ||
</React.Fragment> | ||
) | ||
})} | ||
<Skeleton height={56} width={325} borderRadius={10} className="dark:bg-[#353741]" /> | ||
</div> | ||
</div> | ||
</React.Fragment> | ||
); | ||
})} | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
<Skeleton height={56} width={325} borderRadius={10} className="dark:bg-[#353741]" /> | ||
</div> | ||
</div> | ||
</React.Fragment> | ||
) | ||
})} | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default KanbanBoardSkeleton; | ||
export default KanbanBoardSkeleton; |
Oops, something went wrong.