@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.
Files changed (3) hide show
  1. package/README.md +2 -0
  2. package/base.json +9 -6
  3. package/package.json +15 -13
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @foxglove/tsconfig
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@foxglove/tsconfig.svg?style=flat)](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 es2020 modules by default
6
- "module": "es2020",
7
- "target": "es2020",
8
- "lib": ["es2020"],
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
- // support fast package rebuilds
20
- "composite": true,
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": "1.0.0",
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.11.1",
21
- "@types/jest": "26.0.23",
22
- "@typescript-eslint/eslint-plugin": "4.28.0",
23
- "@typescript-eslint/parser": "4.28.0",
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": "7.29.0",
26
- "eslint-config-prettier": "8.3.0",
27
- "eslint-plugin-import": "2.23.4",
28
- "eslint-plugin-jest": "24.3.6",
29
- "eslint-plugin-prettier": "3.4.0",
30
- "jest": "27.0.5",
31
- "prettier": "2.3.2",
32
- "typescript": "4.3.4"
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
  }