Skip to content

Commit

Permalink
fix: stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Dec 22, 2023
1 parent 64f0661 commit 22e6ec8
Show file tree
Hide file tree
Showing 18 changed files with 37 additions and 32 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ src/assets

storybook-static
src/utils/search/parser.ts

pnpm-lock.yaml
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"test": "pnpm build && playwright test",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check --plugin-search-dir=. . && eslint --max-warnings=0 .",
"lint": "pnpm run \"/lint:.*/\"",
"lint:stylelint": "pnpm stylelint --fix \"src/**/*.{svelte,css,scss}\"",
"lint:prettier": "prettier --check --plugin-search-dir=. .",
"lint:eslint": "eslint --max-warnings=0 .",
"format": "prettier --write --plugin-search-dir=. .",
"prebuild": "peggy --plugin ts-pegjs src/utils/search/parser.peggy -o src/utils/search/parser.ts",
"storybook": "storybook dev -p 6006",
Expand Down
2 changes: 1 addition & 1 deletion src/components/atoms/interaction/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
opacity: 1;
}
@media (min-width: 768px) {
@media (width >= 768px) {
width: fit-content;
padding: 0 8px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/atoms/nav/NavLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
opacity: 1;
}
@media (min-width: 768px) {
@media (width >= 768px) {
font-size: 21px;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/molecules/home/TopPlay.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
background-color: rgba(var(--color-darkblue), 0.2);
}
@media (min-width: 768px) {
@media (width >= 768px) {
max-width: none;
&:last-child {
Expand All @@ -67,7 +67,7 @@
}
}
@media (min-width: 1024px) {
@media (width >= 1024px) {
max-width: 360px;
&:first-child {
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/nav/NavLinks.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.nav-link {
display: flex;
@media (min-width: 768px) {
@media (width >= 768px) {
gap: 40px;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/molecules/nav/NavSignArea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
opacity: 1;
}
@media screen and (min-width: 768px) {
@media screen and (width >= 768px) {
width: fit-content;
}
}
@media screen and (min-width: 768px) {
@media screen and (width >= 768px) {
width: fit-content;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/search/SearchTabs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
align-items: center;
}
@media (min-width: 768px) {
@media (width >= 768px) {
display: none;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/organisms/home/TopPlaysSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
gap: 50px;
width: 100%;
@media (min-width: 768px) {
@media (width >= 768px) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1024px) {
@media (width >= 1024px) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
display: flex;
flex-grow: 1;
@media (max-width: 768px) {
@media (width <= 768px) {
flex-direction: column;
}
}
Expand Down Expand Up @@ -110,7 +110,7 @@
}
}
@media (min-width: 769px) {
@media (width >= 769px) {
width: 0;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
display: flex;
gap: 6px;
@media (min-width: 768px) {
@media (width >= 768px) {
justify-content: flex-end;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
font-size: 14px;
}
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
}
}
Expand All @@ -166,12 +166,12 @@
display: none;
font-size: 14px;
@media (min-width: 768px) {
@media (width >= 768px) {
display: block;
}
}
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/components/organisms/levels/search/LevelSearchSortTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
flex-direction: column;
gap: 12px;
@media (min-width: 640px) {
@media (width >= 640px) {
flex-direction: row;
gap: 24px;
}
Expand All @@ -100,7 +100,7 @@
display: flex;
flex-direction: column;
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
}
}
Expand All @@ -110,7 +110,7 @@
margin-right: 24px;
border-right: 1px solid rgba(255, 255, 255, 0.4);
@media (min-width: 768px) {
@media (width >= 768px) {
display: block;
}
}
Expand All @@ -120,13 +120,13 @@
flex-direction: column;
gap: 12px;
@media (min-width: 640px) {
@media (width >= 640px) {
flex-direction: row;
gap: 24px;
}
}
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
gap: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/levels/search/TagSearchTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
grid-template-columns: repeat(1, minmax(0, 1fr));
gap: 20px;
@media (min-width: 768px) {
@media (width >= 768px) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/organisms/rankings/RankingListItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@
align-items: center;
margin-top: 8px;
@media (min-width: 768px) {
@media (width >= 768px) {
margin-top: 0;
}
}
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
align-items: center;
}
Expand All @@ -80,7 +80,7 @@
flex-grow: 1;
height: 16px;
@media (min-width: 768px) {
@media (width >= 768px) {
flex-grow: 0;
border: 1px solid rgba(255, 255, 255, 0.4);
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/organisms/rankings/RankingTopItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@
border-radius: 27px;
background-color: rgba(var(--color-darkblue), 0.4);
@media (min-width: 1024px) {
@media (width >= 1024px) {
max-width: 330px;
}
}
&:nth-child(1) {
justify-content: center;
@media (min-width: 768px) {
@media (width >= 768px) {
grid-column: span 2 / span 2;
justify-content: flex-start;
}
@media (min-width: 1024px) {
@media (width >= 1024px) {
grid-column: span 1 / span 1;
}
}
Expand All @@ -74,7 +74,7 @@
&:nth-child(3) {
justify-content: center;
@media (min-width: 768px) {
@media (width >= 768px) {
justify-content: flex-end;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/user/HorizontalUserList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
flex-shrink: 0;
}
@media (min-width: 768px) {
@media (width >= 768px) {
flex-direction: row;
gap: 24px;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/references/levels/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
padding-right: 24px;
padding-left: 24px;
@media screen and (min-width: 1280px) {
@media screen and (width >= 1280px) {
padding-right: 120px;
padding-left: 120px;
}
Expand Down

0 comments on commit 22e6ec8

Please sign in to comment.