create-qwik 2.0.0-alpha.9 → 2.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/dist/index.cjs +105 -116
  3. package/dist/starters/apps/base/eslint.config.js +73 -0
  4. package/dist/starters/apps/base/package.json +12 -11
  5. package/dist/starters/apps/base/src/entry.preview.tsx +1 -3
  6. package/dist/starters/apps/base/src/entry.ssr.tsx +23 -25
  7. package/dist/starters/apps/base/tsconfig.json +4 -3
  8. package/dist/starters/apps/base/vite.config.mts +1 -1
  9. package/dist/starters/apps/empty/src/root.tsx +17 -19
  10. package/dist/starters/apps/library/README.md +9 -1
  11. package/dist/starters/apps/library/eslint.config.js +68 -0
  12. package/dist/starters/apps/library/package.json +12 -11
  13. package/dist/starters/apps/library/src/root.tsx +7 -1
  14. package/dist/starters/apps/library/tsconfig.json +1 -1
  15. package/dist/starters/apps/library/vite.config.mts +4 -3
  16. package/dist/starters/apps/playground/src/root.tsx +17 -19
  17. package/dist/starters/apps/playground/src/routes/layout.tsx +1 -13
  18. package/package.json +3 -4
  19. package/dist/starters/apps/base/.eslintignore +0 -38
  20. package/dist/starters/apps/base/.eslintrc.cjs +0 -42
  21. package/dist/starters/apps/base/src/entry.dev.tsx +0 -17
  22. package/dist/starters/apps/base/src/routes/service-worker.ts +0 -17
  23. package/dist/starters/apps/empty/public/manifest.json +0 -9
  24. package/dist/starters/apps/empty/src/components/router-head/router-head.tsx +0 -32
  25. package/dist/starters/apps/empty/src/routes/layout.tsx +0 -17
  26. package/dist/starters/apps/empty/src/routes/service-worker.ts +0 -18
  27. package/dist/starters/apps/library/.eslintignore +0 -31
  28. package/dist/starters/apps/library/.eslintrc.cjs +0 -40
  29. package/dist/starters/apps/library/src/entry.dev.tsx +0 -17
  30. package/dist/starters/apps/library/src/entry.ssr.tsx +0 -25
  31. package/dist/starters/apps/playground/src/components/router-head/router-head.tsx +0 -37
  32. package/dist/starters/apps/playground/src/routes/service-worker.ts +0 -18
@@ -0,0 +1,73 @@
1
+ import js from "@eslint/js";
2
+ import globals from "globals";
3
+ import tseslint from "typescript-eslint";
4
+ import { globalIgnores } from "eslint/config";
5
+ import { qwikEslint9Plugin } from "eslint-plugin-qwik";
6
+
7
+ const ignores = [
8
+ "**/*.log",
9
+ "**/.DS_Store",
10
+ "**/*.",
11
+ ".vscode/settings.json",
12
+ "**/.history",
13
+ "**/.yarn",
14
+ "**/bazel-*",
15
+ "**/bazel-bin",
16
+ "**/bazel-out",
17
+ "**/bazel-qwik",
18
+ "**/bazel-testlogs",
19
+ "**/dist",
20
+ "**/dist-dev",
21
+ "**/lib",
22
+ "**/lib-types",
23
+ "**/etc",
24
+ "**/external",
25
+ "**/node_modules",
26
+ "**/temp",
27
+ "**/tsc-out",
28
+ "**/tsdoc-metadata.json",
29
+ "**/target",
30
+ "**/output",
31
+ "**/rollup.config.js",
32
+ "**/build",
33
+ "**/.cache",
34
+ "**/.vscode",
35
+ "**/.rollup.cache",
36
+ "**/dist",
37
+ "**/tsconfig.tsbuildinfo",
38
+ "**/vite.config.ts",
39
+ "**/*.spec.tsx",
40
+ "**/*.spec.ts",
41
+ "**/.netlify",
42
+ "**/pnpm-lock.yaml",
43
+ "**/package-lock.json",
44
+ "**/yarn.lock",
45
+ "**/server",
46
+ "eslint.config.js",
47
+ ];
48
+
49
+ export default tseslint.config(
50
+ globalIgnores(ignores),
51
+ js.configs.recommended,
52
+ tseslint.configs.recommended,
53
+ qwikEslint9Plugin.configs.recommended,
54
+ {
55
+ languageOptions: {
56
+ globals: {
57
+ ...globals.browser,
58
+ ...globals.node,
59
+ ...globals.es2021,
60
+ ...globals.serviceworker,
61
+ },
62
+ parserOptions: {
63
+ projectService: true,
64
+ tsconfigRootDir: import.meta.dirname,
65
+ },
66
+ },
67
+ },
68
+ {
69
+ rules: {
70
+ "@typescript-eslint/no-explicit-any": "off",
71
+ },
72
+ },
73
+ );
@@ -16,17 +16,18 @@
16
16
  "qwik": "qwik"
17
17
  },
18
18
  "devDependencies": {
19
- "@qwik.dev/core": "^2.0.0-alpha.9",
20
- "@qwik.dev/router": "^2.0.0-alpha.9",
21
- "@types/eslint": "8.56.10",
22
- "@types/node": "20.14.11",
23
- "@typescript-eslint/eslint-plugin": "7.16.1",
24
- "@typescript-eslint/parser": "7.16.1",
25
- "eslint": "8.57.0",
26
- "eslint-plugin-qwik": "^2.0.0-alpha.9",
27
- "prettier": "3.4.2",
28
- "typescript": "5.8.2",
29
- "vite": "5.4.10",
19
+ "@qwik.dev/core": "^2.0.0-beta.10",
20
+ "@qwik.dev/router": "^2.0.0-beta.10",
21
+ "@eslint/js": "latest",
22
+ "@types/node": "24.3.0",
23
+ "typescript-eslint": "8.41.0",
24
+ "eslint": "9.33.0",
25
+ "eslint-plugin-qwik": "^2.0.0-beta.10",
26
+ "globals": "16.3.0",
27
+ "prettier": "3.6.2",
28
+ "typescript": "5.9.2",
29
+ "typescript-plugin-css-modules": "latest",
30
+ "vite": "7.1.5",
30
31
  "vite-tsconfig-paths": "^4.2.1"
31
32
  },
32
33
  "engines": {
@@ -10,12 +10,10 @@
10
10
  * - https://vitejs.dev/config/preview-options.html#preview-options
11
11
  *
12
12
  */
13
- import qwikRouterConfig from "@qwik-router-config";
14
13
  import { createQwikRouter } from "@qwik.dev/router/middleware/node";
15
- // make sure qwikRouterConfig is imported before entry
16
14
  import render from "./entry.ssr";
17
15
 
18
16
  /**
19
17
  * The default export is the QwikRouter adapter used by Vite preview.
20
18
  */
21
- export default createQwikRouter({ render, qwikRouterConfig });
19
+ export default createQwikRouter({ render });
@@ -1,33 +1,31 @@
1
1
  /**
2
2
  * WHAT IS THIS FILE?
3
3
  *
4
- * SSR entry point, in all cases the application is rendered outside the browser, this
5
- * entry point will be the common one.
6
- *
7
- * - Server (express, cloudflare...)
8
- * - npm run start
9
- * - npm run preview
10
- * - npm run build
4
+ * SSR renderer function, used by Qwik Router.
11
5
  *
6
+ * Note that this is the only place the Qwik renderer is called.
7
+ * On the client, containers resume and do not call render.
12
8
  */
13
- import { manifest } from "@qwik-client-manifest";
14
- import {
15
- renderToStream,
16
- type RenderToStreamOptions,
17
- } from "@qwik.dev/core/server";
9
+ import { createRenderer } from "@qwik.dev/router";
18
10
  import Root from "./root";
19
11
 
20
- export default function (opts: RenderToStreamOptions) {
21
- return renderToStream(<Root />, {
22
- manifest,
23
- ...opts,
24
- // Use container attributes to set attributes on the html tag.
25
- containerAttributes: {
26
- lang: "en-us",
27
- ...opts.containerAttributes,
28
- },
29
- serverData: {
30
- ...opts.serverData,
12
+ export default createRenderer((opts) => {
13
+ return {
14
+ jsx: <Root />,
15
+ options: {
16
+ ...opts,
17
+ // Use container attributes to set attributes on the html tag.
18
+ containerAttributes: {
19
+ lang: "en-us",
20
+ ...opts.containerAttributes,
21
+ },
22
+ serverData: {
23
+ ...opts.serverData,
24
+ // These are the default values for the document head and are overridden by the `head` exports
25
+ // documentHead: {
26
+ // title: "My App",
27
+ // },
28
+ },
31
29
  },
32
- });
33
- }
30
+ };
31
+ });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
- "target": "ES2017",
4
+ "target": "ES2020",
5
5
  "module": "ES2022",
6
6
  "lib": ["es2022", "DOM", "WebWorker", "DOM.Iterable"],
7
7
  "jsx": "react-jsx",
@@ -19,8 +19,9 @@
19
19
  "noEmit": true,
20
20
  "paths": {
21
21
  "~/*": ["./src/*"]
22
- }
22
+ },
23
+ /* if you do not use CSS modules, remove this line and delete the typescript-plugin-css-modules module from package.json */
24
+ "plugins": [{ "name": "typescript-plugin-css-modules" }]
23
25
  },
24
- "files": ["./.eslintrc.cjs"],
25
26
  "include": ["src", "./*.d.ts", "./*.config.ts"]
26
27
  }
@@ -21,7 +21,7 @@ errorOnDuplicatesPkgDeps(devDependencies, dependencies);
21
21
  */
22
22
  export default defineConfig(({ command, mode }): UserConfig => {
23
23
  return {
24
- plugins: [qwikRouter(), qwikVite(), tsconfigPaths()],
24
+ plugins: [qwikRouter(), qwikVite(), tsconfigPaths({ root: "." })],
25
25
  // This tells Vite which dependencies to pre-build in dev mode.
26
26
  optimizeDeps: {
27
27
  // Put problematic deps that break bundling here, mostly those with binaries.
@@ -1,37 +1,35 @@
1
- import { component$, isDev } from "@qwik.dev/core";
1
+ import { component$ } from "@qwik.dev/core";
2
2
  import {
3
- QwikRouterProvider,
3
+ DocumentHeadTags,
4
4
  RouterOutlet,
5
- ServiceWorkerRegister,
5
+ useLocation,
6
+ useQwikRouter,
6
7
  } from "@qwik.dev/router";
7
- import { RouterHead } from "./components/router-head/router-head";
8
8
 
9
9
  import "./global.css";
10
10
 
11
11
  export default component$(() => {
12
+ useQwikRouter();
13
+ const { url } = useLocation();
14
+
12
15
  /**
13
- * The root of a QwikRouter site always start with the <QwikRouterProvider> component,
14
- * immediately followed by the document's <head> and <body>.
15
- *
16
- * Don't remove the `<head>` and `<body>` elements.
16
+ * This is the root of a QwikRouter site. It contains the document's `<head>` and `<body>`. You can adjust them as you see fit.
17
17
  */
18
18
 
19
19
  return (
20
- <QwikRouterProvider>
20
+ <>
21
21
  <head>
22
22
  <meta charset="utf-8" />
23
- {!isDev && (
24
- <link
25
- rel="manifest"
26
- href={`${import.meta.env.BASE_URL}manifest.json`}
27
- />
28
- )}
29
- <RouterHead />
23
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
24
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
25
+
26
+ <DocumentHeadTags />
27
+
28
+ <link rel="canonical" href={url.href} />
30
29
  </head>
31
- <body lang="en">
30
+ <body>
32
31
  <RouterOutlet />
33
- {!isDev && <ServiceWorkerRegister />}
34
32
  </body>
35
- </QwikRouterProvider>
33
+ </>
36
34
  );
37
35
  });
@@ -5,7 +5,7 @@
5
5
  - [Qwik on GitHub](https://github.com/QwikDev/qwik)
6
6
  - [@QwikDev](https://twitter.com/QwikDev)
7
7
  - [Vite](https://vitejs.dev/)
8
- - [Partytown](https://partytown.builder.io/)
8
+ - [Partytown](https://partytown.qwik.dev/)
9
9
  - [Mitosis](https://github.com/BuilderIO/mitosis)
10
10
  - [Builder.io](https://www.builder.io/)
11
11
 
@@ -45,3 +45,11 @@ The production build should generate the production build of your component libr
45
45
  ```
46
46
  npm run build
47
47
  ```
48
+
49
+ ## sideEffects: false
50
+
51
+ This package is configured with "sideEffects": false in its package.json.<br/>
52
+ This tells bundlers that the module [has no side effects](https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free) when imported.<br/>
53
+ Consequently, to maintain the integrity of tree-shaking optimizations, please ensure your code truly contains no side effects (such as modifying global variables or the DOM upon import).<br/>
54
+ If your module does introduce side effects, remove "sideEffects": false or specify the specific files with side effects.<br/>
55
+ Be sure to only remove it from the specific file where the global is being set. Finally, verify that your build continues to function as expected after making any adjustments to the sideEffects setting.
@@ -0,0 +1,68 @@
1
+ import js from "@eslint/js";
2
+ import globals from "globals";
3
+ import tseslint from "typescript-eslint";
4
+ import { globalIgnores } from "eslint/config";
5
+ import { qwikEslint9Plugin } from "eslint-plugin-qwik";
6
+
7
+ const ignores = [
8
+ "**/*.log",
9
+ "**/.DS_Store",
10
+ "**/*.",
11
+ ".vscode/settings.json",
12
+ "**/.history",
13
+ "**/.yarn",
14
+ "**/bazel-*",
15
+ "**/bazel-bin",
16
+ "**/bazel-out",
17
+ "**/bazel-qwik",
18
+ "**/bazel-testlogs",
19
+ "**/dist",
20
+ "**/dist-dev",
21
+ "**/lib",
22
+ "**/lib-types",
23
+ "**/etc",
24
+ "**/external",
25
+ "**/node_modules",
26
+ "**/temp",
27
+ "**/tsc-out",
28
+ "**/tsdoc-metadata.json",
29
+ "**/target",
30
+ "**/output",
31
+ "**/rollup.config.js",
32
+ "**/build",
33
+ "**/.cache",
34
+ "**/.vscode",
35
+ "**/.rollup.cache",
36
+ "**/dist",
37
+ "**/tsconfig.tsbuildinfo",
38
+ "**/vite.config.ts",
39
+ "**/*.spec.tsx",
40
+ "**/*.spec.ts",
41
+ "**/.netlify",
42
+ "**/pnpm-lock.yaml",
43
+ "**/package-lock.json",
44
+ "**/yarn.lock",
45
+ "**/server",
46
+ "eslint.config.js",
47
+ ];
48
+
49
+ export default tseslint.config(
50
+ globalIgnores(ignores),
51
+ js.configs.recommended,
52
+ tseslint.configs.recommended,
53
+ qwikEslint9Plugin.configs.recommended,
54
+ {
55
+ languageOptions: {
56
+ globals: {
57
+ ...globals.browser,
58
+ ...globals.node,
59
+ ...globals.es2021,
60
+ ...globals.serviceworker,
61
+ },
62
+ parserOptions: {
63
+ projectService: true,
64
+ tsconfigRootDir: import.meta.dirname,
65
+ },
66
+ },
67
+ },
68
+ );
@@ -33,17 +33,17 @@
33
33
  "release": "np"
34
34
  },
35
35
  "devDependencies": {
36
- "@qwik.dev/core": "2.0.0-alpha.9",
37
- "@types/eslint": "8.56.10",
38
- "@types/node": "20.14.11",
39
- "@typescript-eslint/eslint-plugin": "7.16.1",
40
- "@typescript-eslint/parser": "7.16.1",
41
- "eslint": "8.57.0",
42
- "eslint-plugin-qwik": "2.0.0-alpha.9",
36
+ "@qwik.dev/core": "2.0.0-beta.10",
37
+ "@eslint/js": "latest",
38
+ "@types/node": "24.3.0",
39
+ "typescript-eslint": "8.41.0",
40
+ "eslint": "9.33.0",
41
+ "eslint-plugin-qwik": "2.0.0-beta.10",
42
+ "globals": "16.3.0",
43
43
  "np": "^8.0.4",
44
- "prettier": "3.4.2",
45
- "typescript": "5.8.2",
46
- "vite": "5.4.10",
44
+ "prettier": "3.6.2",
45
+ "typescript": "5.9.2",
46
+ "vite": "7.1.5",
47
47
  "vite-tsconfig-paths": "^4.2.1"
48
48
  },
49
49
  "__qwik__": {
@@ -52,5 +52,6 @@
52
52
  "docs": [
53
53
  "https://qwik.dev/docs/getting-started/"
54
54
  ]
55
- }
55
+ },
56
+ "sideEffects": false
56
57
  }
@@ -6,9 +6,15 @@ export default () => {
6
6
  <>
7
7
  <head>
8
8
  <meta charset="utf-8" />
9
- <title>Qwik Blank App</title>
9
+ <title>Qwik Library Starter</title>
10
10
  </head>
11
11
  <body>
12
+ <h1>Qwik Library Starter</h1>
13
+ <p>
14
+ This is a Qwik library starter. Make your components and export them
15
+ from `src/index.ts`. This playground app will not be bundled with your
16
+ library.
17
+ </p>
12
18
  <Logo />
13
19
  <Counter />
14
20
  </body>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
- "target": "ES2017",
4
+ "target": "ES2020",
5
5
  "module": "ES2020",
6
6
  "lib": ["es2020", "DOM"],
7
7
  "jsx": "react-jsx",
@@ -12,8 +12,9 @@ export default defineConfig(() => {
12
12
  build: {
13
13
  target: "es2020",
14
14
  lib: {
15
- entry: "./src/index.ts",
16
- formats: ["es", "cjs"],
15
+ entry: "./src/index",
16
+ formats: ["es", "cjs"] as const,
17
+ // This adds .qwik so all files are processed by the optimizer
17
18
  fileName: (format, entryName) =>
18
19
  `${entryName}.qwik.${format === "es" ? "mjs" : "cjs"}`,
19
20
  },
@@ -30,6 +31,6 @@ export default defineConfig(() => {
30
31
  ],
31
32
  },
32
33
  },
33
- plugins: [qwikVite(), tsconfigPaths()],
34
+ plugins: [qwikVite(), tsconfigPaths({ root: "." })],
34
35
  };
35
36
  });
@@ -1,37 +1,35 @@
1
- import { component$, isDev } from "@qwik.dev/core";
1
+ import { component$ } from "@qwik.dev/core";
2
2
  import {
3
- QwikRouterProvider,
3
+ DocumentHeadTags,
4
4
  RouterOutlet,
5
- ServiceWorkerRegister,
5
+ useLocation,
6
+ useQwikRouter,
6
7
  } from "@qwik.dev/router";
7
- import { RouterHead } from "./components/router-head/router-head";
8
8
 
9
9
  import "./global.css";
10
10
 
11
11
  export default component$(() => {
12
+ useQwikRouter();
13
+ const { url } = useLocation();
14
+
12
15
  /**
13
- * The root of a QwikRouter site always start with the <QwikRouterProvider> component,
14
- * immediately followed by the document's <head> and <body>.
15
- *
16
- * Don't remove the `<head>` and `<body>` elements.
16
+ * This is the root of a QwikRouter site. It contains the document's `<head>` and `<body>`. You can adjust them as you see fit.
17
17
  */
18
18
 
19
19
  return (
20
- <QwikRouterProvider>
20
+ <>
21
21
  <head>
22
22
  <meta charset="utf-8" />
23
- {!isDev && (
24
- <link
25
- rel="manifest"
26
- href={`${import.meta.env.BASE_URL}manifest.json`}
27
- />
28
- )}
29
- <RouterHead />
30
- {!isDev && <ServiceWorkerRegister />}
23
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
24
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
25
+
26
+ <DocumentHeadTags />
27
+
28
+ <link rel="canonical" href={url.href} />
31
29
  </head>
32
- <body lang="en">
30
+ <body>
33
31
  <RouterOutlet />
34
32
  </body>
35
- </QwikRouterProvider>
33
+ </>
36
34
  );
37
35
  });
@@ -1,23 +1,11 @@
1
- import type { RequestHandler } from "@qwik.dev/router";
2
- import { routeLoader$ } from "@qwik.dev/router";
3
1
  import { component$, Slot, useStyles$ } from "@qwik.dev/core";
2
+ import { routeLoader$ } from "@qwik.dev/router";
4
3
 
5
4
  import Footer from "../components/starter/footer/footer";
6
5
  import Header from "../components/starter/header/header";
7
6
 
8
7
  import styles from "./styles.css?inline";
9
8
 
10
- export const onGet: RequestHandler = async ({ cacheControl }) => {
11
- // Control caching for this request for best performance and to reduce hosting costs:
12
- // https://qwik.dev/docs/caching/
13
- cacheControl({
14
- // Always serve a cached response by default, up to a week stale
15
- staleWhileRevalidate: 60 * 60 * 24 * 7,
16
- // Max once every 5 seconds, revalidate on the server to get a fresh version of this page
17
- maxAge: 5,
18
- });
19
- };
20
-
21
9
  export const useServerTimeLoader = routeLoader$(() => {
22
10
  return {
23
11
  date: new Date().toISOString(),
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "create-qwik",
3
3
  "description": "Interactive CLI for create Qwik projects and adding features.",
4
- "version": "2.0.0-alpha.9",
4
+ "version": "2.0.0-beta.10",
5
5
  "author": "Qwik Team",
6
6
  "bin": "./create-qwik.cjs",
7
7
  "bugs": "https://github.com/QwikDev/qwik/issues",
8
8
  "devDependencies": {
9
- "@clack/prompts": "0.7.0",
10
- "@types/yargs": "17.0.32",
9
+ "@clack/prompts": "0.11.0",
10
+ "@types/yargs": "17.0.33",
11
11
  "kleur": "4.1.5",
12
12
  "yargs": "17.7.2"
13
13
  },
@@ -25,7 +25,6 @@
25
25
  ],
26
26
  "homepage": "https://qwik.dev/",
27
27
  "keywords": [
28
- "builder.io",
29
28
  "generator",
30
29
  "qwik",
31
30
  "starters",
@@ -1,38 +0,0 @@
1
- **/*.log
2
- **/.DS_Store
3
- *.
4
- .vscode/settings.json
5
- .history
6
- .yarn
7
- bazel-*
8
- bazel-bin
9
- bazel-out
10
- bazel-qwik
11
- bazel-testlogs
12
- dist
13
- dist-dev
14
- lib
15
- lib-types
16
- etc
17
- external
18
- node_modules
19
- temp
20
- tsc-out
21
- tsdoc-metadata.json
22
- target
23
- output
24
- rollup.config.js
25
- build
26
- .cache
27
- .vscode
28
- .rollup.cache
29
- dist
30
- tsconfig.tsbuildinfo
31
- vite.config.mts
32
- *.spec.tsx
33
- *.spec.ts
34
- .netlify
35
- pnpm-lock.yaml
36
- package-lock.json
37
- yarn.lock
38
- server
@@ -1,42 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- browser: true,
5
- es2021: true,
6
- node: true,
7
- },
8
- extends: [
9
- "eslint:recommended",
10
- "plugin:@typescript-eslint/recommended",
11
- "plugin:qwik/recommended",
12
- ],
13
- parser: "@typescript-eslint/parser",
14
- parserOptions: {
15
- tsconfigRootDir: __dirname,
16
- project: ["./tsconfig.json"],
17
- ecmaVersion: 2021,
18
- sourceType: "module",
19
- ecmaFeatures: {
20
- jsx: true,
21
- },
22
- },
23
- plugins: ["@typescript-eslint"],
24
- rules: {
25
- "@typescript-eslint/no-explicit-any": "off",
26
- "@typescript-eslint/explicit-module-boundary-types": "off",
27
- "@typescript-eslint/no-inferrable-types": "off",
28
- "@typescript-eslint/no-non-null-assertion": "off",
29
- "@typescript-eslint/no-empty-interface": "off",
30
- "@typescript-eslint/no-namespace": "off",
31
- "@typescript-eslint/no-empty-function": "off",
32
- "@typescript-eslint/no-this-alias": "off",
33
- "@typescript-eslint/ban-types": "off",
34
- "@typescript-eslint/ban-ts-comment": "off",
35
- "prefer-spread": "off",
36
- "no-case-declarations": "off",
37
- "no-console": "off",
38
- "@typescript-eslint/no-unused-vars": ["error"],
39
- "@typescript-eslint/consistent-type-imports": "warn",
40
- "@typescript-eslint/no-unnecessary-condition": "warn",
41
- },
42
- };
@@ -1,17 +0,0 @@
1
- /*
2
- * WHAT IS THIS FILE?
3
- *
4
- * Development entry point using only client-side modules:
5
- * - Do not use this mode in production!
6
- * - No SSR
7
- * - No portion of the application is pre-rendered on the server.
8
- * - All of the application is running eagerly in the browser.
9
- * - More code is transferred to the browser than in SSR mode.
10
- * - Optimizer/Serialization/Deserialization code is not exercised!
11
- */
12
- import { render, type RenderOptions } from "@qwik.dev/core";
13
- import Root from "./root";
14
-
15
- export default function (opts: RenderOptions) {
16
- return render(document, <Root />, opts);
17
- }
@@ -1,17 +0,0 @@
1
- /*
2
- * WHAT IS THIS FILE?
3
- *
4
- * The service-worker.ts file is used to have state of the art prefetching.
5
- * https://qwik.dev/docs/advanced/speculative-module-fetching/
6
- *
7
- * Qwik uses a service worker to speed up your site and reduce latency, ie, not used in the traditional way of offline.
8
- * You can also use this file to add more functionality that runs in the service worker.
9
- */
10
- import { setupServiceWorker } from "@qwik.dev/router/service-worker";
11
-
12
- setupServiceWorker();
13
-
14
- self.addEventListener("install", () => self.skipWaiting());
15
- self.addEventListener("activate", (ev) => ev.waitUntil(self.clients.claim()));
16
-
17
- declare const self: ServiceWorkerGlobalScope;