@noodlestan/tsconfig 0.0.12 → 0.0.13

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 ADDED
@@ -0,0 +1,9 @@
1
+ # Noodlestan TS Config
2
+
3
+ > Noodlestan's opinionated TS configuration.
4
+
5
+ ## License
6
+
7
+ Copyright (c) 2024 [Noodlestan](https://noodlestan.org/).
8
+
9
+ Published under a [MIT license](https://noodlestan.mit-license.org/).
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "extends": "./tsconfig.json",
3
3
  "compilerOptions": {
4
- "declaration": true,
4
+ // "rootDir": "src/",
5
+ // "outDir": "dist/cjs/",
5
6
  "declarationMap": true,
6
- "sourceMap": true,
7
7
  "emitDeclarationOnly": true
8
8
  }
9
9
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "extends": "./tsconfig.json",
3
3
  "compilerOptions": {
4
- "declaration": true,
4
+ // "rootDir": "./src",
5
+ // "outDir": "./dist/esm",
5
6
  "declarationMap": true,
6
- "sourceMap": true,
7
7
  "emitDeclarationOnly": true
8
8
  }
9
9
  }
package/cli/tsconfig.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "target": "es2022",
5
5
  "moduleResolution": "bundler",
6
6
  "esModuleInterop": true,
7
+ "declaration": true,
7
8
  "types": ["node"],
8
9
  "lib": ["ES2022"],
9
10
  // strict
@@ -11,6 +12,9 @@
11
12
  "noImplicitAny": true,
12
13
  "verbatimModuleSyntax": true,
13
14
  "isolatedModules": true,
14
- "forceConsistentCasingInFileNames": true
15
+ "forceConsistentCasingInFileNames": true,
16
+ "noPropertyAccessFromIndexSignature": true,
17
+ "noUncheckedIndexedAccess": true,
18
+ "skipLibCheck": true // Problematic: @types/chai
15
19
  }
16
20
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "./tsconfig-vite.json",
3
+ "compilerOptions": {
4
+ "types": ["vite/client", "node"]
5
+ }
6
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig-vite.json",
3
+ "compilerOptions": {
4
+ "types": ["vite/client"],
5
+ "resolveJsonModule": true,
6
+ "allowSyntheticDefaultImports": true,
7
+ "jsxImportSource": "solid-js",
8
+ "jsx": "preserve",
9
+ "skipLibCheck": true // Problematic: vitest, @vitest/utils, svgo
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["vite/client"],
5
+ "skipLibCheck": true // Problematic: vitest, @vitest/utils
6
+ }
7
+ }
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "skipLibCheck": true, // problems in vitest, @vitest/utils, svgo
4
3
  "target": "ESNext",
5
4
  "module": "ESNext",
6
5
  "moduleResolution": "bundler",
7
6
  "esModuleInterop": true,
8
- "resolveJsonModule": true,
9
- "allowSyntheticDefaultImports": true,
7
+ "declaration": true,
8
+ // strict
10
9
  "strict": true,
11
10
  "noImplicitAny": true,
12
- "jsxImportSource": "solid-js",
13
- "jsx": "preserve"
11
+ "verbatimModuleSyntax": true,
12
+ "isolatedModules": true,
13
+ "forceConsistentCasingInFileNames": true,
14
+ "noPropertyAccessFromIndexSignature": true,
15
+ "noUncheckedIndexedAccess": true
14
16
  }
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noodlestan/tsconfig",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Base typescript configurations for Noodlestan packages (libs and cli variants)",
5
5
  "author": "Noodlestan Collective",
6
6
  "license": "MIT",
@@ -11,5 +11,11 @@
11
11
  "files": [
12
12
  "cli",
13
13
  "libs"
14
- ]
14
+ ],
15
+ "scripts": {
16
+ "lint": "prettier . -c",
17
+ "lint:fix": "prettier . -c --write",
18
+ "test": "echo no tests yet",
19
+ "ci": "npm run lint"
20
+ }
15
21
  }