putout 42.7.1 → 42.7.3
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 +10 -0
- package/README.md +3 -5
- package/package.json +3 -2
- package/types/operator.ts +1 -0
package/ChangeLog
CHANGED
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
|
```
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "42.7.
|
|
3
|
+
"version": "42.7.3",
|
|
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",
|
|
7
7
|
"homepage": "http://github.com/coderaiser/putout#readme",
|
|
8
|
-
"main": "./lib/
|
|
8
|
+
"main": "./lib/index.js",
|
|
9
|
+
"types": "./lib/types.d.ts",
|
|
9
10
|
"exports": {
|
|
10
11
|
".": "./lib/index.js",
|
|
11
12
|
"./parse-error": "./lib/parse-error.js",
|
package/types/operator.ts
CHANGED