@4mbl/tsconfig 0.0.0-beta.b605c9d → 0.0.0-beta.ba4500a

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/dist/base.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Base",
4
+ "compilerOptions": {
5
+ /* Base Options */
6
+ "lib": ["ESNext"],
7
+ "allowJs": true,
8
+ "skipLibCheck": true,
9
+ "resolveJsonModule": true,
10
+ "moduleDetection": "force",
11
+ "paths": {
12
+ "@/*": ["${configDir}/src/*"]
13
+ },
14
+
15
+ /* Output */
16
+ "target": "ES6",
17
+ "outDir": "${configDir}/dist",
18
+ "sourceMap": true,
19
+ "declarationMap": true,
20
+ "declaration": true,
21
+ "incremental": true,
22
+ "isolatedModules": true,
23
+ "esModuleInterop": true,
24
+ "tsBuildInfoFile": "${configDir}/node_modules/.tmp/tsconfig.tsbuildinfo",
25
+ "verbatimModuleSyntax": true,
26
+
27
+ /* Linting */
28
+ "strict": true,
29
+ "checkJs": true,
30
+ "erasableSyntaxOnly": true,
31
+ "forceConsistentCasingInFileNames": true,
32
+ "allowSyntheticDefaultImports": true,
33
+ "noFallthroughCasesInSwitch": true,
34
+ "noImplicitAny": true,
35
+ "noImplicitOverride": true,
36
+ "noImplicitReturns": false,
37
+ "noUnusedLocals": true,
38
+ "noUnusedParameters": true,
39
+ "noUncheckedIndexedAccess": true
40
+ },
41
+ "include": ["${configDir}/src/**/*"],
42
+ "exclude": ["${configDir}/node_modules"]
43
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Browser",
4
+ "extends": "./base.json",
5
+ "compilerOptions": {
6
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
+ "jsx": "react-jsx",
8
+ "module": "ESNext",
9
+ "moduleResolution": "Bundler",
10
+ "paths": { "*": ["${configDir}/src/*"] },
11
+ "noEmit": true,
12
+ "sourceMap": true
13
+ }
14
+ }
package/dist/next.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Next.js",
4
+ "extends": "./base.json",
5
+ "compilerOptions": {
6
+ "target": "ES2017",
7
+ "lib": ["dom", "dom.iterable", "esnext"],
8
+ "allowJs": true,
9
+ "skipLibCheck": true,
10
+ "strict": true,
11
+ "noEmit": true,
12
+ "esModuleInterop": true,
13
+ "module": "preserve",
14
+ "moduleResolution": "bundler",
15
+ "resolveJsonModule": true,
16
+ "isolatedModules": true,
17
+ "jsx": "preserve",
18
+ "incremental": true,
19
+ "plugins": [
20
+ {
21
+ "name": "next"
22
+ }
23
+ ],
24
+ "paths": {
25
+ "@/*": ["${configDir}/src/*"]
26
+ }
27
+ },
28
+ "include": [
29
+ "${configDir}/next-env.d.ts",
30
+ "${configDir}/**/*.ts",
31
+ "${configDir}/**/*.tsx",
32
+ "${configDir}/.next/types/**/*.ts"
33
+ ],
34
+ "exclude": ["${configDir}/node_modules"]
35
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Node (TS)",
4
+ "extends": "./base.json",
5
+ "compilerOptions": {
6
+ // same options as node template
7
+ "target": "ESNext",
8
+ "moduleResolution": "NodeNext",
9
+ "module": "NodeNext",
10
+ "paths": { "*": ["${configDir}/src/*"] },
11
+
12
+ // options for typescript-only
13
+ // https://nodejs.org/api/typescript.html#type-stripping
14
+ "noEmit": true,
15
+ "allowImportingTsExtensions": true,
16
+ "rewriteRelativeImportExtensions": true
17
+ }
18
+ }
package/dist/node.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Node",
4
+ "extends": "./base.json",
5
+ "compilerOptions": {
6
+ "target": "ESNext",
7
+ "moduleResolution": "NodeNext",
8
+ "module": "NodeNext",
9
+ "paths": { "*": ["${configDir}/src/*"] }
10
+ }
11
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Vite React (App)",
4
+ "extends": "../base.json",
5
+ "compilerOptions": {
6
+ "tsBuildInfoFile": "${configDir}/node_modules/.tmp/tsconfig.app.tsbuildinfo",
7
+ "target": "ES2022",
8
+ "useDefineForClassFields": true,
9
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
10
+ "module": "ESNext",
11
+
12
+ /* Bundler mode */
13
+ "moduleResolution": "bundler",
14
+ "allowImportingTsExtensions": true,
15
+ "noEmit": true,
16
+ "jsx": "react-jsx",
17
+
18
+ /* Linting */
19
+ "noUncheckedSideEffectImports": true
20
+ },
21
+ "include": ["${configDir}/src"]
22
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Vite React (Node)",
4
+ "extends": "../base.json",
5
+ "compilerOptions": {
6
+ "tsBuildInfoFile": "${configDir}/node_modules/.tmp/tsconfig.node.tsbuildinfo",
7
+ "target": "ES2023",
8
+ "lib": ["ES2023"],
9
+ "module": "ESNext",
10
+
11
+ /* Bundler mode */
12
+ "moduleResolution": "bundler",
13
+ "allowImportingTsExtensions": true,
14
+ "noEmit": true,
15
+
16
+ /* Linting */
17
+ "noUncheckedSideEffectImports": true
18
+ },
19
+ "include": ["${configDir}/vite.config.ts"]
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4mbl/tsconfig",
3
- "version": "0.0.0-beta.b605c9d",
3
+ "version": "0.0.0-beta.ba4500a",
4
4
  "description": "Strict TypeScript configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",