Skip to content

Commit 2c62f6a

Browse files
committed
Introduce prettier config
Update prettier prettier ternaries f
1 parent 9b749d1 commit 2c62f6a

File tree

5 files changed

+32
-34
lines changed

5 files changed

+32
-34
lines changed

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build
2+
3+
**/*.yaml
4+
**/*.yml

.prettierrc.json

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

.prettierrc.mjs

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"build": "plasmo build --source-maps --no-minify",
1313
"test": "cd test && pnpm test",
1414
"package": "plasmo package",
15+
"format": "prettier --experimental-ternaries --write .",
1516
"build-dev-tools": "sh dev/build.sh"
1617
},
1718
"dependencies": {
@@ -53,7 +54,7 @@
5354
"htmlnano": "2.0.3",
5455
"mocha": "^10.2.0",
5556
"postcss": "^8.4.31",
56-
"prettier": "3.0.2",
57+
"prettier": "3.2.5",
5758
"puppeteer": "^21.1.1",
5859
"source-map-support": "^0.5.21",
5960
"tailwindcss": "^3.3.3",

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)