Skip to content

Commit a81d394

Browse files
Install and configure prettier
1 parent 97f2725 commit a81d394

File tree

7 files changed

+27
-2
lines changed

7 files changed

+27
-2
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ dist-ssr
1313
*.local
1414

1515
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
1816
.idea
1917
.DS_Store
2018
*.suo

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.github
2+
.yarn
3+
dist
4+
node_modules
5+
yarn.lock

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"arrowParens": "avoid",
3+
"semi": true,
4+
"singleQuote": false,
5+
"trailingComma": "all"
6+
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.formatOnSave": true,
4+
"prettier.requireConfig": true,
5+
"prettier.configPath": "./.prettierrc",
6+
"prettier.prettierPath": "./node_modules/prettier"
7+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"eslint-plugin-react-hooks": "^5.2.0",
2323
"eslint-plugin-react-refresh": "^0.4.20",
2424
"globals": "^16.3.0",
25+
"prettier": "3.6.2",
2526
"typescript": "~5.8.3",
2627
"typescript-eslint": "^8.35.1",
2728
"vite": "^7.0.4"

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,11 @@ prelude-ls@^1.2.1:
11411141
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
11421142
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
11431143

1144+
prettier@3.6.2:
1145+
version "3.6.2"
1146+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393"
1147+
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
1148+
11441149
punycode@^2.1.0:
11451150
version "2.3.1"
11461151
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"

0 commit comments

Comments
 (0)