@xylabs/tsconfig-react 7.4.17 → 7.4.19

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.body.md ADDED
@@ -0,0 +1,21 @@
1
+ ## Install
2
+
3
+ ```sh
4
+ yarn add -D {{name}} @xylabs/tsconfig-dom @xylabs/tsconfig
5
+ ```
6
+
7
+ ## Usage
8
+
9
+ Extend this config in your project's `tsconfig.json`:
10
+
11
+ ```json
12
+ {
13
+ "extends": "@xylabs/tsconfig-react",
14
+ "compilerOptions": {
15
+ "outDir": "./dist"
16
+ },
17
+ "include": ["src"]
18
+ }
19
+ ```
20
+
21
+ This extends [`@xylabs/tsconfig-dom`](https://www.npmjs.com/package/@xylabs/tsconfig-dom) and adds `"jsx": "react-jsx"`, enabling React 18+ JSX transform without needing to import `React` in every file.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ [![logo][]](https://xylabs.com)
2
+
3
+ # @xylabs/tsconfig-react
4
+
5
+ [![npm][npm-badge]][npm-link]
6
+ [![license][license-badge]][license-link]
7
+
8
+ > Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects
9
+
10
+ ## Install
11
+
12
+ ```sh
13
+ yarn add -D {{name}} @xylabs/tsconfig-dom @xylabs/tsconfig
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ Extend this config in your project's `tsconfig.json`:
19
+
20
+ ```json
21
+ {
22
+ "extends": "@xylabs/tsconfig-react",
23
+ "compilerOptions": {
24
+ "outDir": "./dist"
25
+ },
26
+ "include": ["src"]
27
+ }
28
+ ```
29
+
30
+ This extends [`@xylabs/tsconfig-dom`](https://www.npmjs.com/package/@xylabs/tsconfig-dom) and adds `"jsx": "react-jsx"`, enabling React 18+ JSX transform without needing to import `React` in every file.
31
+
32
+
33
+ ## License
34
+
35
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
36
+
37
+
38
+
39
+ [logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg
40
+ [npm-badge]: https://img.shields.io/npm/v/@xylabs/tsconfig-react.svg
41
+ [npm-link]: https://www.npmjs.com/package/@xylabs/tsconfig-react
42
+ [license-badge]: https://img.shields.io/npm/l/@xylabs/tsconfig-react.svg
43
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xylabs/tsconfig-react",
4
- "version": "7.4.17",
4
+ "version": "7.4.19",
5
5
  "description": "Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
6
6
  "keywords": [
7
7
  "xylabs",
@@ -38,13 +38,13 @@
38
38
  "package-compile": "echo Compiled"
39
39
  },
40
40
  "devDependencies": {
41
- "@xylabs/ts-scripts-yarn3": "~7.4.17",
42
- "@xylabs/tsconfig": "~7.4.17",
43
- "@xylabs/tsconfig-dom": "~7.4.17"
41
+ "@xylabs/ts-scripts-yarn3": "~7.4.19",
42
+ "@xylabs/tsconfig": "~7.4.19",
43
+ "@xylabs/tsconfig-dom": "~7.4.19"
44
44
  },
45
45
  "peerDependencies": {
46
- "@xylabs/tsconfig": "~7.4.17",
47
- "@xylabs/tsconfig-dom": "~7.4.17"
46
+ "@xylabs/tsconfig": "~7.4.19",
47
+ "@xylabs/tsconfig-dom": "~7.4.19"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"