putout 42.7.2 → 42.7.4
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 +13 -0
- package/README.md +3 -7
- package/package.json +1 -1
- package/types/operator.ts +4 -0
package/ChangeLog
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
2026.06.21, v42.7.4
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 9e9180230 @putout/operator-jsx: add TS support
|
|
5
|
+
- 32d55e833 @putout/operator-json: add TS types
|
|
6
|
+
- bdec737f4 @putout/traverse: add TS types
|
|
7
|
+
- 9fa8b35ab @putout/plugin-variables: convert-const-to-let: exclude VariableDeclaration with VariableDeclarator without init inside ExportDeclaration
|
|
8
|
+
|
|
9
|
+
2026.06.19, v42.7.3
|
|
10
|
+
|
|
11
|
+
feature:
|
|
12
|
+
- 214306b91 @putout/compare: TS types
|
|
13
|
+
|
|
1
14
|
2026.06.19, v42.7.2
|
|
2
15
|
|
|
3
16
|
fix:
|
package/README.md
CHANGED
|
@@ -37,14 +37,12 @@ Check out couple variants of plugins that does the same: [**linting debugger sta
|
|
|
37
37
|
- ❌ RSLint [no-debugger](https://github.com/rslint/rslint/blob/v0.3.0/crates/rslint_core/src/groups/errors/no_debugger.rs): **48** lines;
|
|
38
38
|
- ❌ ESLint [no-debugger](https://github.com/eslint/eslint/blob/2dc38aa653f1d5137a9abf82024c67a11620bb7c/lib/rules/no-debugger.js): **43** lines;
|
|
39
39
|
- ❌ Rome [no-debugger](https://github.com/rome/tools/blob/4d5a99ce98e987cbd03f3ab6b38fa22d00bbfe27/packages/%40romejs/js-compiler/transforms/lint/noDebugger.ts): **28** lines;
|
|
40
|
-
- ✅ 🐊**Putout** [remove-debugger](https://github.com/coderaiser/putout/blob/
|
|
40
|
+
- ✅ 🐊**Putout** [remove-debugger](https://github.com/coderaiser/putout/blob/v42.7.1/packages/plugin-remove-debugger/lib/remove-debugger.js): **4** lines:
|
|
41
41
|
|
|
42
42
|
```js
|
|
43
|
-
'
|
|
43
|
+
export const report = () => `Avoid 'debugger' statement`;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
module.exports.replace = () => ({
|
|
45
|
+
export const replace = () => ({
|
|
48
46
|
debugger: '',
|
|
49
47
|
});
|
|
50
48
|
```
|
|
@@ -308,7 +306,6 @@ const source = `
|
|
|
308
306
|
putout(source, {
|
|
309
307
|
plugins: ['remove-unused-variables'],
|
|
310
308
|
});
|
|
311
|
-
|
|
312
309
|
// returns
|
|
313
310
|
`
|
|
314
311
|
const t = 'hello';
|
|
@@ -330,7 +327,6 @@ const source = `
|
|
|
330
327
|
await putoutAsync(source, {
|
|
331
328
|
plugins: ['remove-unused-variables'],
|
|
332
329
|
});
|
|
333
|
-
|
|
334
330
|
// returns
|
|
335
331
|
`
|
|
336
332
|
const t = 'hello';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "42.7.
|
|
3
|
+
"version": "42.7.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
|