Skip to content

Commit 8ae1741

Browse files
authored
style: align prettier config (#59)
1 parent 62c2fd4 commit 8ae1741

17 files changed

+184
-159
lines changed

.github/renovate.json5

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"packageRules": [
88
{
99
"depTypeList": ["peerDependencies"],
10-
"enabled": false
11-
}
12-
]
13-
}
10+
"enabled": false,
11+
},
12+
],
13+
}

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: 'ci'
1+
name: "ci"
22
on:
33
push:
44
branches:
5-
- '**'
5+
- "**"
66
pull_request:
77
branches:
88
- main
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: 22
22-
cache: 'pnpm'
22+
cache: "pnpm"
2323

2424
- run: pnpm install
2525

.github/workflows/release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
tags:
4-
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
4+
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
55

66
name: Create Release
77

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CHANGELOG.md
2+
dist/
3+
temp/
4+
LICENSE.md
5+
pnpm-lock.yaml
6+
pnpm-workspace.yaml

.prettierrc

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

.prettierrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"overrides": [
5+
{
6+
"files": ["*.json5"],
7+
"options": {
8+
"singleQuote": false,
9+
"quoteProps": "preserve"
10+
}
11+
},
12+
{
13+
"files": ["*.yml"],
14+
"options": {
15+
"singleQuote": false
16+
}
17+
}
18+
]
19+
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export default {
1818
/** custom trust domains */
1919
domains: ['*.custom.com'],
2020
/** custom certification directory */
21-
certDir: '/Users/.../.devServer/cert'
22-
})
23-
]
21+
certDir: '/Users/.../.devServer/cert',
22+
}),
23+
],
2424
}
2525
```
2626

build.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ export default defineBuildConfig({
99
emitCJS: true,
1010
inlineDependencies: true,
1111
esbuild: {
12-
target: 'node14.21.3'
12+
target: 'node14.21.3',
1313
},
1414
output: {
1515
generatedCode: {
16-
reservedNamesAsProps: false
17-
}
18-
}
19-
}
16+
reservedNamesAsProps: false,
17+
},
18+
},
19+
},
2020
})

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"dev": "unbuild --stub",
2020
"build": "unbuild && tsx scripts/patchCJS.ts",
2121
"test": "vitest run",
22+
"format": "prettier --write --cache .",
2223
"release": "tsx -C import scripts/release.ts",
2324
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
2425
},

playground/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

0 commit comments

Comments
 (0)