@foxglove/tsconfig 1.0.0 → 2.0.0
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 +2 -0
- package/base.json +9 -6
- package/package.json +15 -13
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @foxglove/tsconfig
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@foxglove/tsconfig)
|
|
4
|
+
|
|
3
5
|
Base tsconfig for Foxglove projects.
|
|
4
6
|
|
|
5
7
|
To use, run `npm i --save-dev @foxglove/tsconfig`, then extend your `tsconfig.json` like so:
|
package/base.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// -*- jsonc -*-
|
|
2
2
|
// Base TypeScript configuration
|
|
3
3
|
{
|
|
4
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
4
5
|
"compilerOptions": {
|
|
5
|
-
// build
|
|
6
|
-
"module": "
|
|
7
|
-
"target": "
|
|
8
|
-
"lib": ["
|
|
6
|
+
// build es2022 modules by default
|
|
7
|
+
"module": "es2022",
|
|
8
|
+
"target": "es2022",
|
|
9
|
+
"lib": ["es2022"],
|
|
9
10
|
"moduleResolution": "node",
|
|
10
11
|
"esModuleInterop": true,
|
|
11
12
|
"importHelpers": true,
|
|
@@ -16,8 +17,10 @@
|
|
|
16
17
|
// required to support esbuild, babel, and similar transpilers
|
|
17
18
|
"isolatedModules": true,
|
|
18
19
|
|
|
19
|
-
//
|
|
20
|
-
|
|
20
|
+
// disable composite/incremental builds by default to prevent .tsbuildinfo files from being
|
|
21
|
+
// accidentally included in package archives
|
|
22
|
+
"composite": false,
|
|
23
|
+
"incremental": false,
|
|
21
24
|
|
|
22
25
|
// produce consistent output across all platforms
|
|
23
26
|
"newLine": "lf",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foxglove/tsconfig",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"description": "Base TypeScript configuration for Foxglove projects",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "github:foxglove/tsconfig",
|
|
@@ -17,18 +17,20 @@
|
|
|
17
17
|
"lint": "tsc --project base.json --outDir dist && eslint ."
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@foxglove/eslint-plugin": "0.
|
|
21
|
-
"@types/jest": "
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "
|
|
23
|
-
"@typescript-eslint/parser": "
|
|
20
|
+
"@foxglove/eslint-plugin": "0.21.2",
|
|
21
|
+
"@types/jest": "29.5.1",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "5.59.1",
|
|
23
|
+
"@typescript-eslint/parser": "5.59.1",
|
|
24
24
|
"esbuild-jest": "0.5.0",
|
|
25
|
-
"eslint": "
|
|
26
|
-
"eslint-config-prettier": "8.
|
|
27
|
-
"eslint-plugin-
|
|
28
|
-
"eslint-plugin-
|
|
29
|
-
"eslint-plugin-
|
|
30
|
-
"jest": "27.
|
|
31
|
-
"prettier": "2.
|
|
32
|
-
"
|
|
25
|
+
"eslint": "8.39.0",
|
|
26
|
+
"eslint-config-prettier": "8.8.0",
|
|
27
|
+
"eslint-plugin-es": "4.1.0",
|
|
28
|
+
"eslint-plugin-filenames": "1.3.2",
|
|
29
|
+
"eslint-plugin-import": "2.27.5",
|
|
30
|
+
"eslint-plugin-jest": "27.2.1",
|
|
31
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
32
|
+
"jest": "29.5.0",
|
|
33
|
+
"prettier": "2.8.8",
|
|
34
|
+
"typescript": "5.0.4"
|
|
33
35
|
}
|
|
34
36
|
}
|