@aryaemami59/tsconfig 0.0.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Arya Emami
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # @aryaemami59/tsconfig
2
+
3
+ A collection of different TypeScript configurations.
4
+
5
+ ## Installation
6
+
7
+ #### NPM
8
+
9
+ ```bash
10
+ npm install --save-dev @aryaemami59/tsconfig
11
+ ```
12
+
13
+ #### Yarn
14
+
15
+ ```bash
16
+ yarn add --dev @aryaemami59/tsconfig
17
+ ```
18
+
19
+ #### PNPM
20
+
21
+ ```bash
22
+ pnpm add --save-dev @aryaemami59/tsconfig
23
+ ```
24
+
25
+ #### Bun
26
+
27
+ ```bash
28
+ bun add --dev @aryaemami59/tsconfig
29
+ ```
30
+
31
+ ## Usage
32
+
33
+ **Inside a file like `tsconfig.json`**:
34
+
35
+ ```json
36
+ {
37
+ "extends": "@aryaemami59/tsconfig/base",
38
+ "compilerOptions": {
39
+ "outDir": "./dist",
40
+ "rootDir": "./src"
41
+ }
42
+ }
43
+ ```
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowSyntheticDefaultImports": true,
5
+ "declaration": true,
6
+ "esModuleInterop": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "isolatedModules": true,
9
+ "jsx": "react",
10
+ "lib": ["DOM", "ESNext"],
11
+ "module": "ESNext",
12
+ "moduleResolution": "Node",
13
+ "noErrorTruncation": true,
14
+ "noFallthroughCasesInSwitch": true,
15
+ "noImplicitOverride": true,
16
+ "noImplicitReturns": true,
17
+ "resolveJsonModule": true,
18
+ "skipLibCheck": true,
19
+ "sourceMap": true,
20
+ "strict": true,
21
+ "target": "ESNext",
22
+ "types": ["vitest/globals", "vitest/importMeta"],
23
+ "useDefineForClassFields": true,
24
+ "useUnknownInCatchVariables": true
25
+ },
26
+ "display": "Base TypeScript configuration for legacy Node.js (pre-TypeScript 5.0)"
27
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "@aryaemami59/tsconfig/base",
3
+ "$schema": "https://json.schemastore.org/tsconfig",
4
+ "compilerOptions": {
5
+ "moduleResolution": "Bundler"
6
+ },
7
+ "display": "TypeScript configuration with module set to `ESNext` and module resolution set to `Bundler`"
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@aryaemami59/tsconfig/bundler/esnext",
3
+ "$schema": "https://json.schemastore.org/tsconfig",
4
+ "compilerOptions": {
5
+ "module": "Preserve",
6
+ "moduleResolution": "Bundler"
7
+ },
8
+ "display": "TypeScript configuration with module set to `Preserve` and module resolution set to `Bundler`"
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "@aryaemami59/tsconfig/base",
3
+ "$schema": "https://json.schemastore.org/tsconfig",
4
+ "compilerOptions": {
5
+ "allowJs": true,
6
+ "jsx": "react-jsx",
7
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
8
+ "noEmit": true,
9
+ "target": "ES5",
10
+ "types": null
11
+ },
12
+ "display": "TypeScript configuration for `create-react-app` projects"
13
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "@aryaemami59/tsconfig/base",
3
+ "$schema": "https://json.schemastore.org/tsconfig",
4
+ "compilerOptions": {
5
+ "moduleResolution": "Node10"
6
+ },
7
+ "display": "TypeScript configuration with `Node10` module resolution. It serves as a backwards compatible replacement for the deprecated `Node` module resolution."
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@aryaemami59/tsconfig/base",
3
+ "$schema": "https://json.schemastore.org/tsconfig",
4
+ "compilerOptions": {
5
+ "module": "Node16",
6
+ "moduleResolution": "Node16"
7
+ },
8
+ "display": "TypeScript configuration with `Node16` module resolution"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@aryaemami59/tsconfig/base",
3
+ "$schema": "https://json.schemastore.org/tsconfig",
4
+ "compilerOptions": {
5
+ "module": "NodeNext",
6
+ "moduleResolution": "NodeNext"
7
+ },
8
+ "display": "TypeScript configuration with `NodeNext` module resolution"
9
+ }
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@aryaemami59/tsconfig",
3
+ "version": "0.0.3",
4
+ "description": "TypeScript configuration",
5
+ "keywords": [
6
+ "config",
7
+ "tsconfig",
8
+ "typescript",
9
+ "ts",
10
+ "configuration"
11
+ ],
12
+ "homepage": "https://github.com/aryaemami59/configs/tree/master/packages/typescript#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/aryaemami59/configs/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/aryaemami59/configs.git",
19
+ "directory": "packages/typescript"
20
+ },
21
+ "license": "MIT",
22
+ "author": "Arya Emami <aryaemami59@yahoo.com> (https://github.com/aryaemami59)",
23
+ "sideEffects": false,
24
+ "type": "module",
25
+ "exports": {
26
+ ".": "./base/tsconfig.json",
27
+ "./base": "./base/tsconfig.json",
28
+ "./bundler": "./bundler/esnext/tsconfig.json",
29
+ "./bundler/esnext": "./bundler/esnext/tsconfig.json",
30
+ "./bundler/preserve": "./bundler/preserve/tsconfig.json",
31
+ "./cra": "./create-react-app/tsconfig.json",
32
+ "./create-react-app": "./create-react-app/tsconfig.json",
33
+ "./node": "./base/tsconfig.json",
34
+ "./node-10": "./node-10/tsconfig.json",
35
+ "./node-16": "./node-16/tsconfig.json",
36
+ "./node-next": "./node-next/tsconfig.json",
37
+ "./package.json": "./package.json"
38
+ },
39
+ "main": "base/tsconfig.json",
40
+ "scripts": {
41
+ "check-exports": "attw --pack",
42
+ "check-package-json": "publint --strict ."
43
+ },
44
+ "devDependencies": {
45
+ "@arethetypeswrong/cli": "^0.17.0",
46
+ "publint": "^0.2.12"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public",
50
+ "provenance": true
51
+ }
52
+ }