create-croissant 0.1.33 → 0.1.34

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.33",
6
+ "version": "0.1.34",
7
7
  "description": "Scaffold a new project using the Croissant Stack",
8
8
  "repository": {
9
9
  "type": "git",
@@ -1,8 +1,11 @@
1
1
  import config from "@workspace/config-eslint"
2
+ import type { Linter } from "eslint"
2
3
 
3
- export default [
4
+ const desktopConfig: Array<Linter.Config> = [
4
5
  ...config,
5
6
  {
6
7
  ignores: ["out/**", "dist/**", "node_modules/**"],
7
8
  },
8
9
  ]
10
+
11
+ export default desktopConfig
@@ -9,12 +9,16 @@
9
9
  "prettier.config.js"
10
10
  ],
11
11
  "compilerOptions": {
12
- "ignoreDeprecations": "6.0",
13
12
  "composite": true,
14
- "baseUrl": ".",
15
13
  "paths": {
16
14
  "@renderer/*": [
17
- "src/renderer/src/*"
15
+ "./src/renderer/src/*"
16
+ ],
17
+ "@main/*": [
18
+ "./src/main/src/*"
19
+ ],
20
+ "@preload/*": [
21
+ "./src/preload/src/*"
18
22
  ]
19
23
  }
20
24
  }
@@ -1,8 +1,11 @@
1
1
  import config from "@workspace/config-eslint"
2
+ import type { Linter } from "eslint"
2
3
 
3
- export default [
4
+ const mobileConfig: Array<Linter.Config> = [
4
5
  ...config,
5
6
  {
6
7
  ignores: [".expo/**", "scripts/**"],
7
8
  },
8
9
  ]
10
+
11
+ export default mobileConfig
@@ -1,8 +1,11 @@
1
1
  import config from "@workspace/config-eslint"
2
+ import type { Linter } from "eslint"
2
3
 
3
- export default [
4
+ const platformConfig: Array<Linter.Config> = [
4
5
  ...config,
5
6
  {
6
7
  ignores: [".output/**", "dist/**", "node_modules/**", ".vinxi/**"],
7
8
  },
8
9
  ]
10
+
11
+ export default platformConfig
@@ -1,7 +1,7 @@
1
1
  import { tanstackConfig } from "@tanstack/eslint-config"
2
2
  import type { Linter } from "eslint"
3
3
 
4
- const config: Linter.Config[] = tanstackConfig.map((config) => {
4
+ const config: Array<Linter.Config> = tanstackConfig.map((config) => {
5
5
  const parserOptions = config.languageOptions?.parserOptions as any
6
6
  if (parserOptions?.project) {
7
7
  const { project, ...rest } = parserOptions