@foray1010/tsconfig 10.0.0 → 11.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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [11.0.1](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@11.0.0...@foray1010/tsconfig@11.0.1) (2023-03-23)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **tsconfig:** 'isolatedModules' cannot be specified with 'verbatimModuleSyntax' ([bff99ca](https://github.com/foray1010/common-presets/commit/bff99cac127e28810fc49166ed750dd71d4eefc6))
11
+ - **tsconfig:** does not work with existing eslint plugins because of multiple extends ([57e9674](https://github.com/foray1010/common-presets/commit/57e967488f8fea914c6d212c7e82d2187a582097))
12
+
13
+ ## [11.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@10.0.0...@foray1010/tsconfig@11.0.0) (2023-03-23)
14
+
15
+ ### ⚠ BREAKING CHANGES
16
+
17
+ - require node `^16.14.0 || >=18.12.0`
18
+ - **tsconfig:** require typescript v5
19
+
20
+ ### Features
21
+
22
+ - support ES2021 ([40a0e28](https://github.com/foray1010/common-presets/commit/40a0e282c937825dfca1969c30ffc26e5bd2a27c))
23
+ - **tsconfig:** require typescript v5 ([ef8b2e7](https://github.com/foray1010/common-presets/commit/ef8b2e72d2d96be4f41ba980fa79118c9e1bff47))
24
+ - **tsconfig:** split tsconfig to mutliple files for different scenarios ([fcaf3ae](https://github.com/foray1010/common-presets/commit/fcaf3aee3f9f1851439d01631c2e8584bde685ba))
25
+
26
+ ### Miscellaneous Chores
27
+
28
+ - require node `^16.14.0 || >=18.12.0` ([5baf6eb](https://github.com/foray1010/common-presets/commit/5baf6eba6d42958596c130724a502c59fe1a4e83))
29
+
6
30
  ## [10.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@9.1.0...@foray1010/tsconfig@10.0.0) (2022-11-07)
7
31
 
8
32
  ### ⚠ BREAKING CHANGES
package/README.md CHANGED
@@ -10,25 +10,41 @@ If you need to compile TypeScript, use [@foray1010/babel-preset](../babel-preset
10
10
 
11
11
  2. Create an `tsconfig.json` in the project root
12
12
 
13
- for app (type checking only):
14
-
15
- ```json
16
- {
17
- "$schema": "https://json.schemastore.org/tsconfig",
18
- "extends": "@foray1010/tsconfig"
19
- }
20
- ```
21
-
22
- for library (type checking and generate typings):
23
-
24
- ```json
25
- {
26
- "$schema": "https://json.schemastore.org/tsconfig",
27
- "extends": "@foray1010/tsconfig",
28
- "compilerOptions": {
29
- "emitDeclarationOnly": true,
30
- "noEmit": false,
31
- "outDir": "build/dts"
13
+ - For Node.js app (type checking only):
14
+
15
+ ```json
16
+ {
17
+ "$schema": "https://json.schemastore.org/tsconfig",
18
+ "extends": "@foray1010/tsconfig/tsconfig.base.json"
19
+ }
20
+ ```
21
+
22
+ - For general frontend application (type checking only):
23
+
24
+ ```json
25
+ {
26
+ "$schema": "https://json.schemastore.org/tsconfig",
27
+ "extends": "@foray1010/tsconfig/tsconfig.browser.json"
28
+ }
29
+ ```
30
+
31
+ - For react.js application (type checking only):
32
+
33
+ ```json
34
+ {
35
+ "$schema": "https://json.schemastore.org/tsconfig",
36
+ "extends": "@foray1010/tsconfig/tsconfig.react.json"
37
+ }
38
+ ```
39
+
40
+ - For library (type checking and generate typings):
41
+
42
+ ```json
43
+ {
44
+ "$schema": "https://json.schemastore.org/tsconfig",
45
+ "extends": [
46
+ "@foray1010/tsconfig/tsconfig.base.json",
47
+ "@foray1010/tsconfig/tsconfig.library.json"
48
+ ]
32
49
  }
33
- }
34
- ```
50
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@foray1010/tsconfig",
4
- "version": "10.0.0",
4
+ "version": "11.0.1",
5
5
  "homepage": "https://github.com/foray1010/common-presets/tree/master/packages/tsconfig#readme",
6
6
  "bugs": "https://github.com/foray1010/common-presets/issues",
7
7
  "repository": {
@@ -18,13 +18,13 @@
18
18
  "type:check": "echo 'Skipped: non-ts package'"
19
19
  },
20
20
  "peerDependencies": {
21
- "typescript": "^4.7.4"
21
+ "typescript": "^5.0.2"
22
22
  },
23
23
  "engines": {
24
- "node": "^14.18.0 || ^16.13.0 || >=18.12.0"
24
+ "node": "^16.14.0 || >=18.12.0"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "4acba77dace91746ac98872f4b8f62b410de82f5"
29
+ "gitHead": "b764b4d3bd39a74cd4b14916c820fe5640fe895c"
30
30
  }
@@ -1,15 +1,10 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
3
  "compilerOptions": {
4
- "declaration": true,
5
4
  "esModuleInterop": true,
6
5
  "exactOptionalPropertyTypes": true,
7
- "forceConsistentCasingInFileNames": true,
8
- "importsNotUsedAsValues": "error",
9
6
  "incremental": true,
10
- "isolatedModules": true,
11
- "jsx": "react-jsx",
12
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "lib": ["ES2021"],
13
8
  "module": "Node16",
14
9
  "moduleDetection": "force",
15
10
  "moduleResolution": "Node",
@@ -21,8 +16,9 @@
21
16
  "resolveJsonModule": true,
22
17
  "skipLibCheck": true,
23
18
  "strict": true,
24
- "target": "ES2020",
25
- "useDefineForClassFields": true
19
+ "target": "ES2021",
20
+ "useDefineForClassFields": true,
21
+ "verbatimModuleSyntax": true
26
22
  },
27
23
  "ts-node": {
28
24
  "compilerOptions": {
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.base.json",
4
+ "compilerOptions": {
5
+ "lib": ["ES2021", "DOM", "DOM.Iterable"]
6
+ }
7
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "emitDeclarationOnly": true,
6
+ "noEmit": false,
7
+ "outDir": "dist"
8
+ }
9
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.browser.json",
4
+ "compilerOptions": {
5
+ "jsx": "react-jsx"
6
+ }
7
+ }