Skip to content

Commit

Permalink
[fix] linting
Browse files Browse the repository at this point in the history
  • Loading branch information
euije committed Mar 13, 2024
1 parent ef7ae67 commit 57e9edc
Show file tree
Hide file tree
Showing 7 changed files with 237 additions and 164 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"next/core-web-vitals",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:@tanstack/eslint-plugin-query/recommended",
"plugin:prettier/recommended"
],
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ yarn-error.log*
next-env.d.ts

.yarn/
.pnp.cjs
.pnp.loader.mjs
.editorconfig
.gitattributes
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2 changes: 1 addition & 1 deletion app/school-attack/[[...groupId]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ export default function Page() {
pageCount={commentQuery.data?.data.pageCount as number}
currentPage={commentPage + 1}
onPageChange={(e, n) => {
let next = n - 1;
const next = n - 1;

if (
next < 0 ||
Expand Down
8 changes: 6 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ const nextConfig = {
compiler: {
styledComponents: true,
},
experimental: {
swcTraceProfiling: true,
eslint: {
ignoreDuringBuilds: true,
},
devIndicators: {
buildActivity: true,
buildActivityPosition: 'bottom-right',
},
};

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"homepage": "http://yelloworld.shop",
"scripts": {
"dev": "next dev",
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint",
Expand All @@ -29,6 +29,7 @@
"react": "latest",
"react-device-detect": "^2.2.3",
"react-dom": "latest",
"react-is": "latest",
"styled-components": "^5",
"tailwindcss": "3.3.3",
"update-browserslist-db": "latest"
Expand Down
Loading

0 comments on commit 57e9edc

Please sign in to comment.