@putout/engine-runner 13.5.0 → 13.6.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.
- package/README.md +6 -6
- package/lib/replace/index.js +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -211,8 +211,8 @@ const {parse} = require('@putout/engin-parser');
|
|
|
211
211
|
|
|
212
212
|
const plugins = [{
|
|
213
213
|
rule: 'remove-debugger',
|
|
214
|
-
msg: '',
|
|
215
|
-
options: {},
|
|
214
|
+
msg: '', // optional
|
|
215
|
+
options: {}, // optional
|
|
216
216
|
plugin: {
|
|
217
217
|
include: () => ['debugger'],
|
|
218
218
|
fix: (path) => path.remove(),
|
|
@@ -223,11 +223,11 @@ const plugins = [{
|
|
|
223
223
|
const ast = parse('const m = "hi"; debugger');
|
|
224
224
|
const places = runPlugins({
|
|
225
225
|
ast,
|
|
226
|
-
shebang: false,
|
|
227
|
-
fix: true,
|
|
228
|
-
fixCount: 1,
|
|
226
|
+
shebang: false, // default
|
|
227
|
+
fix: true, // default
|
|
228
|
+
fixCount: 1, // default
|
|
229
229
|
plugins,
|
|
230
|
-
parser: 'babel',
|
|
230
|
+
parser: 'babel', // default
|
|
231
231
|
});
|
|
232
232
|
```
|
|
233
233
|
|
package/lib/replace/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/engine-runner",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.6.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "run putout plugins",
|
|
@@ -42,11 +42,10 @@
|
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/plugin-codemod-optional-catch-binding": "^7.7.4",
|
|
45
|
-
"@cloudcmd/stub": "^3.0.0",
|
|
46
45
|
"c8": "^7.5.0",
|
|
47
46
|
"eslint": "^8.0.1",
|
|
48
47
|
"eslint-plugin-node": "^11.0.0",
|
|
49
|
-
"eslint-plugin-putout": "^
|
|
48
|
+
"eslint-plugin-putout": "^15.0.0",
|
|
50
49
|
"just-camel-case": "^4.0.2",
|
|
51
50
|
"lerna": "^4.0.0",
|
|
52
51
|
"madrun": "^9.0.0",
|