@rimelight/config 0.0.4 → 0.0.5
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/README.md +13 -3
- package/package.json +3 -2
- package/tsconfig/{solid.json → astro-solid.json} +3 -3
- package/tsconfig/astro.json +12 -0
- package/tsconfig/base.json +20 -18
package/README.md
CHANGED
|
@@ -20,13 +20,23 @@ Default strict TypeScript configuration for all Rimelight projects:
|
|
|
20
20
|
}
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
###
|
|
23
|
+
### Astro Config
|
|
24
24
|
|
|
25
|
-
For
|
|
25
|
+
For pure Astro projects:
|
|
26
26
|
|
|
27
27
|
```json
|
|
28
28
|
{
|
|
29
|
-
"extends": "@rimelight/config/tsconfig/
|
|
29
|
+
"extends": "@rimelight/config/tsconfig/astro.json"
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Astro + SolidJS Config
|
|
34
|
+
|
|
35
|
+
For Astro projects using SolidJS components:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"extends": "@rimelight/config/tsconfig/astro-solid.json"
|
|
30
40
|
}
|
|
31
41
|
```
|
|
32
42
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rimelight/config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Rimelight Entertainment's shared configuration package",
|
|
6
6
|
"homepage": "https://rimelight.com/docs",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"exports": {
|
|
25
25
|
"./tsconfig/base": "./tsconfig/base.json",
|
|
26
|
-
"./tsconfig/
|
|
26
|
+
"./tsconfig/astro": "./tsconfig/astro.json",
|
|
27
|
+
"./tsconfig/astro-solid": "./tsconfig/astro-solid.json",
|
|
27
28
|
"./vite-plus/base": {
|
|
28
29
|
"types": "./vite-plus/base.ts",
|
|
29
30
|
"default": "./vite-plus/base.js"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "Rimelight SolidJS",
|
|
4
|
-
"extends": "./base.json",
|
|
5
3
|
"compilerOptions": {
|
|
6
4
|
"jsx": "preserve",
|
|
7
5
|
"jsxImportSource": "solid-js"
|
|
8
|
-
}
|
|
6
|
+
},
|
|
7
|
+
"display": "Rimelight Astro + SolidJS",
|
|
8
|
+
"extends": "./astro.json"
|
|
9
9
|
}
|
package/tsconfig/base.json
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
"exclude": ["dist"],
|
|
3
2
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"moduleResolution": "bundler",
|
|
7
|
-
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
8
|
-
"types": ["node"],
|
|
3
|
+
"allowArbitraryExtensions": true,
|
|
9
4
|
"allowImportingTsExtensions": true,
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"noEmit": true,
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"allowUnreachableCode": false,
|
|
7
|
+
"allowUnusedLabels": false,
|
|
14
8
|
"esModuleInterop": true,
|
|
9
|
+
"exactOptionalPropertyTypes": true,
|
|
15
10
|
"forceConsistentCasingInFileNames": true,
|
|
16
|
-
"
|
|
17
|
-
"skipLibCheck": true,
|
|
18
|
-
"allowJs": true,
|
|
11
|
+
"isolatedModules": true,
|
|
19
12
|
"jsx": "preserve",
|
|
20
|
-
"
|
|
13
|
+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
14
|
+
"module": "ESNext",
|
|
15
|
+
"moduleResolution": "bundler",
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"noErrorTruncation": true,
|
|
21
18
|
"noFallthroughCasesInSwitch": true,
|
|
22
19
|
"noImplicitOverride": true,
|
|
23
20
|
"noImplicitReturns": true,
|
|
21
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
22
|
+
"noUncheckedIndexedAccess": true,
|
|
23
|
+
"noUncheckedSideEffectImports": true,
|
|
24
24
|
"noUnusedLocals": true,
|
|
25
25
|
"noUnusedParameters": true,
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
26
|
+
"resolveJsonModule": true,
|
|
27
|
+
"skipLibCheck": true,
|
|
28
|
+
"strict": true,
|
|
29
|
+
"target": "ESNext",
|
|
30
|
+
"types": ["node"],
|
|
31
|
+
"verbatimModuleSyntax": true
|
|
30
32
|
}
|
|
31
33
|
}
|