@omnific/tsconfig 0.0.1

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,24 @@
1
+ # @omnific/tsconfig
2
+
3
+ Shared TypeScript configuration presets for Omnific packages.
4
+
5
+ ## Presets
6
+
7
+ - `@omnific/tsconfig/browser.json`
8
+ - `@omnific/tsconfig/node.json`
9
+
10
+ ## Notes
11
+
12
+ - `@omnific/tsconfig/browser.json` does not require extra global type packages.
13
+ - Projects that extend `@omnific/tsconfig/node.json` should install `@types/node` in the consuming workspace.
14
+ - If a preset references additional entries in `compilerOptions.types`, the consuming project is responsible for providing those packages.
15
+
16
+ ## Example
17
+
18
+ ```json
19
+ {
20
+ "extends": "@omnific/tsconfig/browser.json",
21
+ "include": ["./**/*.ts"],
22
+ "exclude": ["./dist"]
23
+ }
24
+ ```
package/base.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "ES2022",
5
+ "module": "ESNext",
6
+ "moduleDetection": "force",
7
+ "strict": true,
8
+ "declaration": true,
9
+ "noEmit": true,
10
+ "isolatedDeclarations": false,
11
+ "isolatedModules": true,
12
+ "verbatimModuleSyntax": true,
13
+ "exactOptionalPropertyTypes": true,
14
+ "noUncheckedIndexedAccess": true,
15
+ "noImplicitOverride": true,
16
+ "noImplicitReturns": true,
17
+ "esModuleInterop": true,
18
+ "allowSyntheticDefaultImports": true,
19
+ "forceConsistentCasingInFileNames": true,
20
+ "skipLibCheck": true,
21
+ "resolveJsonModule": true,
22
+ "noFallthroughCasesInSwitch": true
23
+ }
24
+ }
package/browser.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./base.json",
4
+ "compilerOptions": {
5
+ "lib": ["DOM", "ES2022"],
6
+ "moduleResolution": "Bundler"
7
+ }
8
+ }
package/node.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./base.json",
4
+ "compilerOptions": {
5
+ "lib": ["ES2022"],
6
+ "module": "ESNext",
7
+ "moduleResolution": "Bundler",
8
+ "types": ["node"]
9
+ }
10
+ }
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@omnific/tsconfig",
3
+ "version": "0.0.1",
4
+ "description": "Shared TypeScript configuration presets for Omnific packages",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "keywords": [
8
+ "typescript",
9
+ "tsconfig"
10
+ ],
11
+ "author": "monhan-97",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/monhan-97/omnific.git",
15
+ "directory": "packages/tsconfig"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/monhan-97/omnific.git/issues"
19
+ },
20
+ "files": [
21
+ "base.json",
22
+ "browser.json",
23
+ "node.json",
24
+ "README.md"
25
+ ],
26
+ "exports": {
27
+ "./browser.json": "./browser.json",
28
+ "./node.json": "./node.json"
29
+ },
30
+ "peerDependencies": {
31
+ "typescript": ">=6.0.0"
32
+ }
33
+ }