Skip to content

Commit 3cfb61e

Browse files
chore: update prettier config and .nvmrc (#865)
1 parent 94f29a0 commit 3cfb61e

File tree

7 files changed

+335
-51
lines changed

7 files changed

+335
-51
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

.prettierrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.prettierrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"importOrder": [
3+
"<BUILTIN_MODULES>",
4+
"<THIRD_PARTY_MODULES>",
5+
"",
6+
"^@/(.*)$",
7+
"^[./]",
8+
"",
9+
"<TYPES>",
10+
"<TYPES>^[./]"
11+
],
12+
"plugins": [
13+
"prettier-plugin-sort-json",
14+
"@ianvs/prettier-plugin-sort-imports"
15+
],
16+
"printWidth": 120,
17+
"trailingComma": "es5",
18+
"singleQuote": true,
19+
"tabWidth": 2
20+
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"devDependencies": {
3434
"@commitlint/cli": "18.4.1",
3535
"@commitlint/config-conventional": "18.4.0",
36+
"@ianvs/prettier-plugin-sort-imports": "4.1.1",
3637
"@types/node": "20.9.0",
3738
"@types/react": "18.2.37",
3839
"@types/react-dom": "18.2.15",
@@ -47,6 +48,7 @@
4748
"husky": "8.0.3",
4849
"lint-staged": "15.1.0",
4950
"prettier": "3.1.0",
51+
"prettier-plugin-sort-json": "3.1.0",
5052
"typescript": "5.2.2"
5153
}
5254
}

0 commit comments

Comments
 (0)