Skip to content

Commit d91d337

Browse files
authored
Merge pull request #10 from falsepopsky/dev
chore(frontend): setup prettier
2 parents 36bb568 + acbe09a commit d91d337

11 files changed

+542
-381
lines changed

.devcontainer/devcontainer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"ms-python.vscode-pylance",
1818
"ms-python.black-formatter",
1919
"ms-python.isort",
20-
"charliermarsh.ruff"
20+
"charliermarsh.ruff",
21+
"dbaeumer.vscode-eslint",
22+
"esbenp.prettier-vscode",
23+
"bradlc.vscode-tailwindcss"
2124
]
2225
}
2326
},

.vscode/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
"source.organizeImports": "always"
1717
}
1818
},
19+
"[javascript][typescript][typescriptreact][tailwindcss]": {
20+
"editor.defaultFormatter": "esbenp.prettier-vscode",
21+
"editor.formatOnSave": true,
22+
"editor.codeActionsOnSave": {
23+
"source.fixAll": "always",
24+
"source.organizeImports": "always"
25+
},
26+
},
1927
"isort.args": ["--profile", "black"],
2028
"ruff.nativeServer": true
2129
}

frontend/.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.next
2+
pnpm-lock.yaml
3+
public

frontend/.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 120,
3+
"plugins": ["prettier-plugin-tailwindcss"]
4+
}

frontend/package.json

+14-9
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,28 @@
44
"dev": "next dev",
55
"build": "next build",
66
"start": "next start",
7-
"lint": "next lint"
7+
"lint": "next lint",
8+
"format": "prettier --cache -w ."
89
},
910
"dependencies": {
10-
"next": "14.2.4",
11-
"react": "^18.3.1 ",
11+
"next": "14.2.5",
12+
"react": "^18.3.1",
1213
"react-dom": "^18.3.1"
1314
},
1415
"devDependencies": {
15-
"@types/node": "^20.14.4",
16+
"@types/node": "^20.14.10",
1617
"@types/react": "^18.3.3",
1718
"@types/react-dom": "^18.3.0",
19+
"@typescript-eslint/eslint-plugin": "^7.16.0",
20+
"@typescript-eslint/parser": "^7.16.0",
1821
"autoprefixer": "^10.4.19",
1922
"eslint": "^8.57.0",
20-
"eslint-config-next": "14.2.4",
21-
"postcss": "^8.4.38",
23+
"eslint-config-next": "14.2.5",
24+
"postcss": "^8.4.39",
25+
"prettier": "^3.3.2",
26+
"prettier-plugin-tailwindcss": "^0.6.5",
2227
"tailwindcss": "^3.4.4",
23-
"typescript": "^5.4.5"
28+
"typescript": "^5.5.3"
2429
},
25-
"packageManager": "pnpm@9.4.0"
26-
}
30+
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"
31+
}

0 commit comments

Comments
 (0)