@ts-dev-tools/react 1.5.6 → 1.5.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-dev-tools/react",
3
- "version": "1.5.6",
3
+ "version": "1.5.10",
4
4
  "description": "TS dev tools for React",
5
5
  "keywords": [
6
6
  "linter",
@@ -38,13 +38,13 @@
38
38
  "url": "https://github.com/escemi-tech/ts-dev-tools/issues"
39
39
  },
40
40
  "dependencies": {
41
- "@testing-library/jest-dom": "^5.14.1",
42
- "@testing-library/react": "^12.0.0",
43
- "@testing-library/react-hooks": "^7.0.1",
44
- "@ts-dev-tools/core": "^1.5.6",
45
- "@types/react": "^17.0.13",
46
- "@types/react-dom": "^17.0.8",
47
- "eslint-plugin-react": "^7.24.0",
41
+ "@testing-library/jest-dom": "^5.16.1",
42
+ "@testing-library/react": "^12.1.2",
43
+ "@testing-library/react-hooks": "^7.0.2",
44
+ "@ts-dev-tools/core": "^1.5.10",
45
+ "@types/react": "^17.0.38",
46
+ "@types/react-dom": "^17.0.11",
47
+ "eslint-plugin-react": "^7.28.0",
48
48
  "react-test-renderer": "^17.0.2"
49
49
  },
50
50
  "devDependencies": {
@@ -91,5 +91,5 @@
91
91
  "**/?(*.)+(spec|test).+(ts|tsx|js)"
92
92
  ]
93
93
  },
94
- "gitHead": "1cf6ab5051d5991b7ce72dbbba2faa9edfa2cab9"
94
+ "gitHead": "275f1411aef5f77caf7fdd21f871f94bf9661bba"
95
95
  }
package/CHANGELOG.md DELETED
@@ -1,202 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## 1.5.6 (2021-07-03)
7
-
8
- **Note:** Version bump only for package @ts-dev-tools/react
9
-
10
-
11
-
12
-
13
-
14
- ## 1.5.5 (2021-05-28)
15
-
16
- **Note:** Version bump only for package @ts-dev-tools/react
17
-
18
-
19
-
20
-
21
-
22
- ## 1.5.4 (2021-04-30)
23
-
24
- **Note:** Version bump only for package @ts-dev-tools/react
25
-
26
-
27
-
28
-
29
-
30
- ## 1.5.3 (2021-04-09)
31
-
32
- **Note:** Version bump only for package @ts-dev-tools/react
33
-
34
-
35
-
36
-
37
-
38
- ## 1.5.2 (2021-03-26)
39
-
40
- **Note:** Version bump only for package @ts-dev-tools/react
41
-
42
-
43
-
44
-
45
-
46
- ## 1.5.1 (2021-03-23)
47
-
48
-
49
- ### Bug Fixes
50
-
51
- * **core:** commit-msg hooks wrongly escaped argument ([4e648a8](https://github.com/escemi-tech/ts-dev-tools/commit/4e648a8aaa858b67130871e10f8db2fda345cdc6))
52
-
53
-
54
-
55
-
56
-
57
- # 1.5.0 (2021-03-23)
58
-
59
-
60
- ### Features
61
-
62
- * **core:** remove husky dependency ([00d47b4](https://github.com/escemi-tech/ts-dev-tools/commit/00d47b461f0a0f4e69ce14c5f08ad8fbaeee8896))
63
-
64
-
65
-
66
-
67
-
68
- ## 1.4.10 (2021-03-17)
69
-
70
-
71
- ### Bug Fixes
72
-
73
- * **react:** various issues for first migration ([0d09c44](https://github.com/escemi-tech/ts-dev-tools/commit/0d09c44a8dc144c1ffc2bed7290faf365c34e6a0))
74
-
75
-
76
-
77
-
78
-
79
- ## 1.4.9 (2021-03-12)
80
-
81
- **Note:** Version bump only for package @ts-dev-tools/react
82
-
83
-
84
-
85
-
86
-
87
- ## 1.4.8 (2020-12-26)
88
-
89
- **Note:** Version bump only for package @ts-dev-tools/react
90
-
91
-
92
-
93
-
94
-
95
- ## 1.4.7 (2020-12-18)
96
-
97
- **Note:** Version bump only for package @ts-dev-tools/react
98
-
99
-
100
-
101
-
102
-
103
- ## 1.4.6 (2020-12-18)
104
-
105
- **Note:** Version bump only for package @ts-dev-tools/react
106
-
107
-
108
-
109
-
110
-
111
- ## 1.4.5 (2020-12-11)
112
-
113
- **Note:** Version bump only for package @ts-dev-tools/react
114
-
115
-
116
-
117
-
118
-
119
- ## 1.4.4 (2020-12-04)
120
-
121
- **Note:** Version bump only for package @ts-dev-tools/react
122
-
123
-
124
-
125
-
126
-
127
- ## 1.4.3 (2020-11-27)
128
-
129
- **Note:** Version bump only for package @ts-dev-tools/react
130
-
131
-
132
-
133
-
134
-
135
- ## 1.4.2 (2020-11-24)
136
-
137
- **Note:** Version bump only for package @ts-dev-tools/react
138
-
139
-
140
-
141
-
142
-
143
- ## 1.4.1 (2020-11-19)
144
-
145
- **Note:** Version bump only for package @ts-dev-tools/react
146
-
147
-
148
-
149
-
150
-
151
- # 1.4.0 (2020-11-17)
152
-
153
-
154
- ### Features
155
-
156
- * **desp:** upgrade eslint deps ([8c730f5](https://github.com/escemi-tech/ts-dev-tools/commit/8c730f5baa8944a2eb2c542a3b02253c989cce61))
157
-
158
-
159
-
160
-
161
-
162
- ## 1.3.6 (2020-11-13)
163
-
164
- **Note:** Version bump only for package @ts-dev-tools/react
165
-
166
-
167
-
168
-
169
-
170
- ## 1.3.5 (2020-11-13)
171
-
172
-
173
- ### Bug Fixes
174
-
175
- * **react:** add missing dependency for @testing-library/react-hooks ([f94882a](https://github.com/escemi-tech/ts-dev-tools/commit/f94882a34c79f789fcef5ee2ec42c8399c7acd21))
176
-
177
-
178
-
179
-
180
-
181
- ## 1.3.4 (2020-11-12)
182
-
183
- **Note:** Version bump only for package @ts-dev-tools/react
184
-
185
-
186
-
187
-
188
-
189
- ## 1.3.3 (2020-11-11)
190
-
191
- **Note:** Version bump only for package @ts-dev-tools/react
192
-
193
-
194
-
195
-
196
-
197
- ## 1.3.2 (2020-11-11)
198
-
199
-
200
- ### Bug Fixes
201
-
202
- * typescript build config ignore dist dir ([993bbb8](https://github.com/escemi-tech/ts-dev-tools/commit/993bbb8b45c8e234d6964aaead5d0ce0eac8901d))
@@ -1,2 +0,0 @@
1
- import { MigrationUpFunction } from "@ts-dev-tools/core/dist/services/MigrationsService";
2
- export declare const up: MigrationUpFunction;
@@ -1,83 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.up = void 0;
40
- var PackageJson_1 = require("@ts-dev-tools/core/dist/services/PackageJson");
41
- var PackageJsonMerge_1 = require("@ts-dev-tools/core/dist/services/PackageJsonMerge");
42
- var up = function (absoluteProjectDir) { return __awaiter(void 0, void 0, void 0, function () {
43
- var eslintConfig, jest, packageJson, content, extendsPlugin, eslintConfigExtends, prettierIndex;
44
- return __generator(this, function (_a) {
45
- eslintConfig = {
46
- env: {
47
- browser: true,
48
- },
49
- extends: [],
50
- settings: {
51
- react: {
52
- version: "detect",
53
- },
54
- },
55
- rules: {
56
- "react/jsx-uses-react": "off",
57
- "react/react-in-jsx-scope": "off",
58
- },
59
- };
60
- jest = {
61
- testEnvironment: "jsdom",
62
- };
63
- packageJson = PackageJson_1.PackageJson.fromDirPath(absoluteProjectDir);
64
- content = PackageJsonMerge_1.PackageJsonMerge.merge(packageJson.getContent(), {
65
- eslintConfig: eslintConfig,
66
- jest: jest,
67
- });
68
- extendsPlugin = "plugin:react/recommended";
69
- eslintConfigExtends = (content === null || content === void 0 ? void 0 : content.eslintConfig).extends;
70
- if (!eslintConfigExtends.includes(extendsPlugin)) {
71
- prettierIndex = eslintConfigExtends.indexOf("prettier");
72
- if (prettierIndex >= 0) {
73
- eslintConfigExtends.splice(prettierIndex, 0, extendsPlugin);
74
- }
75
- else {
76
- eslintConfigExtends.push(extendsPlugin);
77
- }
78
- }
79
- packageJson.setContent(content);
80
- return [2 /*return*/];
81
- });
82
- }); };
83
- exports.up = up;