Skip to content

Commit 4f442fa

Browse files
committed
chore: re-enable prettier on most docs
1 parent 643b5c1 commit 4f442fa

File tree

11 files changed

+55
-66
lines changed

11 files changed

+55
-66
lines changed

.prettierignore

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,43 @@
22
**/*.log
33
**/.DS_Store
44
*.
5-
.history
6-
.yarn
7-
.yarnrc.yml
8-
.pnpm-store
95
pnpm-lock.yaml
10-
.mf
6+
.*
7+
!.eslintrc.cjs
8+
!.prettierignore
9+
!.prettierrc.json
10+
11+
# Build output
1112
dist
1213
dist-dev
1314
lib
14-
etc
15-
external
16-
node_modules
17-
qwik-app
1815
target
19-
output
20-
rollup.config.js
21-
build
22-
!packages/qwik/src/build
23-
.cache
24-
.rollup.cache
16+
starters/apps/**/dist
17+
node_modules
18+
2519
tsconfig.tsbuildinfo
26-
packages/docs/api/**/*
20+
21+
# REPL files
2722
packages/docs/public/repl/repl-sw.js*
28-
packages/docs/src/routes/**/*.mdx
29-
**/server/**/*.js
30-
starters/**/*.js
31-
# explicit exclusion for tailwind prettier.config.js
32-
starters/features/tailwind/*
33-
packages/docs/server
23+
24+
# build output
25+
packages/*/lib
26+
packages/*/dist
27+
packages/*/server
28+
29+
# API output files
3430
packages/docs/src/routes/api
35-
packages/docs/**/*.md
31+
32+
# Prettier doesn't handle mdx files well
3633
packages/docs/**/*.mdx
34+
3735
packages/insights/drizzle
3836
packages/insights/.netlify
3937
packages/insights/scripts
4038
packages/insights/**/*.gen.d.ts
4139
packages/qwik-labs/lib-types
4240
packages/qwik-labs/vite
4341

44-
# TODO: Figure out why this doesn't pass in CI
45-
packages/qwik/src/core/props/props.ts
46-
packages/docs/src/routes/docs/overview/index.mdx
47-
4842
# insights cache files
4943
**/q-insights.json
5044

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The images in this folder were created: https://docs.google.com/presentation/d/1HjlWpOpnPAmjdxEV7F2uttjvkWf1FOLvXaWMcxGLs38/
1+
The images in this folder were created: https://docs.google.com/presentation/d/1HjlWpOpnPAmjdxEV7F2uttjvkWf1FOLvXaWMcxGLs38/

packages/docs/src/components/qwik-gpt/gpt.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const MyComponent = component$((props: MyComponentProps) => {
5050
<header>
5151
<button
5252
class={{
53-
'button': true,
53+
button: true,
5454
[styles.darkMode]: darkMode.value, // Conditional classes are supported
5555
}}
5656
onClick$={toggleDarkMode}
@@ -59,26 +59,22 @@ export const MyComponent = component$((props: MyComponentProps) => {
5959
</button>
6060
</header>
6161
<main class={styles.main}>
62-
<button onClick$={() => {
63-
// Event handlers have the `$` suffix.
64-
count.value = count.value + props.step;
65-
}}>
62+
<button
63+
onClick$={() => {
64+
// Event handlers have the `$` suffix.
65+
count.value = count.value + props.step;
66+
}}
67+
>
6668
Count: {count.value}
6769
</button>
68-
<MyOtherComponent>
69-
{count.value > 10 && <p>Count is greater than 10</p>}
70-
</MyOtherComponent>
70+
<MyOtherComponent>{count.value > 10 && <p>Count is greater than 10</p>}</MyOtherComponent>
7171
<ul>
7272
{US_PRESIDENTS.map((president) => (
73-
<li key={president.id}>
74-
{president.name}
75-
</li>
73+
<li key={president.id}>{president.name}</li>
7674
))}
7775
</ul>
7876
</main>
79-
<footer>
80-
Seconds: {seconds.value}
81-
</footer>
77+
<footer>Seconds: {seconds.value}</footer>
8278
</>
8379
);
8480
});
@@ -101,7 +97,7 @@ export const useUserData = routeLoader$(async (requestEvent) => {
10197
return {
10298
name: user.name,
10399
email: user.email,
104-
}
100+
};
105101
});
106102

107103
export default component$(() => {

packages/docs/src/routes/docs/menu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- [Slots](</docs/(qwik)/components/slots/index.mdx>)
1818
- [Rendering](</docs/(qwik)/components/rendering/index.mdx>)
1919
- [Styling](</docs/(qwik)/components/styles/index.mdx>)
20-
- [API Reference](</api/qwik/>)
20+
- [API Reference](/api/qwik/)
2121

2222
## Qwik City
2323

@@ -32,7 +32,7 @@
3232
- [Middleware](</docs/(qwikcity)/middleware/index.mdx>)
3333
- [server$](</docs/(qwikcity)/server$/index.mdx>)
3434
- [Error handling](</docs/(qwikcity)/error-handling/index.mdx>)
35-
- [Re-exporting loaders](/docs/(qwikcity)/re-exporting-loaders/index.mdx)
35+
- [Re-exporting loaders](</docs/(qwikcity)/re-exporting-loaders/index.mdx>)
3636
- [Caching](</docs/(qwikcity)/caching/index.mdx>)
3737
- [HTML attributes](</docs/(qwikcity)/html-attributes/index.mdx>)
3838
- [API reference](</docs/(qwikcity)/api/index.mdx>)

packages/docs/src/routes/tutorial/welcome/overview/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Welcome to Qwik Tutorials
44

55
### Welcome to Qwik!
66

7-
Qwik is a front-end framework for building [**resumable**](/docs/(qwik)/concepts/resumable/index.mdx) applications that start-up **instantly** on the client. Qwik achieves this by focusing on its philosophy of **downloading and executing only the code that is strictly necessary** to perform the user-triggered action. Qwik is a fine-grained lazy-loading framework representing a fundamentally new approach to building web applications.
7+
Qwik is a front-end framework for building [**resumable**](</docs/(qwik)/concepts/resumable/index.mdx>) applications that start-up **instantly** on the client. Qwik achieves this by focusing on its philosophy of **downloading and executing only the code that is strictly necessary** to perform the user-triggered action. Qwik is a fine-grained lazy-loading framework representing a fundamentally new approach to building web applications.
88

99
### Qwik Tutorials
1010

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { https } from "firebase-functions";
2-
import qwikApp from './server/entry-firebase.mjs';
2+
import qwikApp from "./server/entry-firebase.mjs";
33

4-
5-
export const app = https.onRequest(qwikApp)
4+
export const app = https.onRequest(qwikApp);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/* eslint-disable */
2-
console.log('some code');
2+
console.log("some code");
33

44
export {};

starters/features/postcss/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ module.exports = {
88
},
99
},
1010
},
11-
}
11+
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @type {import('tailwindcss').Config} */
22
export default {
3-
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
3+
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
44
theme: {
55
extend: {},
66
},
77
plugins: [],
8-
};
8+
};

starters/features/tailwind/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"__qwik__": {
44
"displayName": "Integration: Tailwind v4 (styling)",
55
"priority": -10,
6-
"viteConfig": {
7-
"imports": [
8-
{
9-
"defaultImport": "tailwindcss",
10-
"importPath": "@tailwindcss/vite"
11-
}
12-
],
13-
"vitePlugins": [
14-
"tailwindcss()"
15-
]
16-
},
6+
"viteConfig": {
7+
"imports": [
8+
{
9+
"defaultImport": "tailwindcss",
10+
"importPath": "@tailwindcss/vite"
11+
}
12+
],
13+
"vitePlugins": [
14+
"tailwindcss()"
15+
]
16+
},
1717
"docs": [
1818
"https://qwik.dev/integrations/tailwind/",
1919
"https://tailwindcss.com/docs/utility-first"
@@ -22,6 +22,6 @@
2222
"devDependencies": {
2323
"prettier-plugin-tailwindcss": "^0.6.11",
2424
"tailwindcss": "^4.0.0",
25-
"@tailwindcss/vite":"^4.0.0"
25+
"@tailwindcss/vite": "^4.0.0"
2626
}
2727
}

0 commit comments

Comments
 (0)