create-croissant 0.1.32 → 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 +1 -1
- package/template/apps/desktop/eslint.config.ts +4 -1
- package/template/apps/desktop/tsconfig.web.json +7 -3
- package/template/apps/mobile/eslint.config.ts +4 -1
- package/template/apps/platform/eslint.config.ts +4 -1
- package/template/apps/platform/src/env.d.ts +1 -0
- package/template/apps/platform/tsconfig.json +0 -1
- package/template/package.json +1 -0
- package/template/packages/config-eslint/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import config from "@workspace/config-eslint"
|
|
2
|
+
import type { Linter } from "eslint"
|
|
2
3
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
package/template/package.json
CHANGED
|
@@ -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
|
|
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
|