Skip to content

Commit

Permalink
style: align prettier config (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Jan 14, 2025
1 parent 62c2fd4 commit 8ae1741
Show file tree
Hide file tree
Showing 17 changed files with 184 additions and 159 deletions.
8 changes: 4 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"packageRules": [
{
"depTypeList": ["peerDependencies"],
"enabled": false
}
]
}
"enabled": false,
},
],
}
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'ci'
name: "ci"
on:
push:
branches:
- '**'
- "**"
pull_request:
branches:
- main
Expand All @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache: "pnpm"

- run: pnpm install

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Release

Expand Down
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CHANGELOG.md
dist/
temp/
LICENSE.md
pnpm-lock.yaml
pnpm-workspace.yaml
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

19 changes: 19 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"semi": false,
"singleQuote": true,
"overrides": [
{
"files": ["*.json5"],
"options": {
"singleQuote": false,
"quoteProps": "preserve"
}
},
{
"files": ["*.yml"],
"options": {
"singleQuote": false
}
}
]
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export default {
/** custom trust domains */
domains: ['*.custom.com'],
/** custom certification directory */
certDir: '/Users/.../.devServer/cert'
})
]
certDir: '/Users/.../.devServer/cert',
}),
],
}
```

Expand Down
10 changes: 5 additions & 5 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export default defineBuildConfig({
emitCJS: true,
inlineDependencies: true,
esbuild: {
target: 'node14.21.3'
target: 'node14.21.3',
},
output: {
generatedCode: {
reservedNamesAsProps: false
}
}
}
reservedNamesAsProps: false,
},
},
},
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"dev": "unbuild --stub",
"build": "unbuild && tsx scripts/patchCJS.ts",
"test": "vitest run",
"format": "prettier --write --cache .",
"release": "tsx -C import scripts/release.ts",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
Expand Down
2 changes: 1 addition & 1 deletion playground/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
177 changes: 88 additions & 89 deletions playground/style.css
Original file line number Diff line number Diff line change
@@ -1,95 +1,94 @@
:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}

a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}

a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}

#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}

.card {
padding: 2em;
}

.read-the-docs {
color: #888;
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}

#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
color: #747bff;
}

.card {
padding: 2em;
}

.read-the-docs {
color: #888;
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
background-color: #f9f9f9;
}
}
6 changes: 2 additions & 4 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import basicSsl from '../src/index'
const config = defineConfig({
build: {
sourcemap: true,
minify: false
minify: false,
},
plugins: [
basicSsl()
]
plugins: [basicSsl()],
})

export default config
Loading

0 comments on commit 8ae1741

Please sign in to comment.