@putout/engine-runner 28.2.0 → 28.2.2

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.
Files changed (2) hide show
  1. package/README.md +14 -14
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -156,7 +156,9 @@ export const fix = (path) => {
156
156
  path.remove();
157
157
  };
158
158
 
159
- export const include = () => ['debugger'];
159
+ export const include = () => [
160
+ 'debugger',
161
+ ];
160
162
 
161
163
  // optional
162
164
  export const exclude = () => {};
@@ -290,7 +292,9 @@ export const traverse = ({push, store}) => ({
290
292
 
291
293
  store.entries();
292
294
  // returns
293
- [['hello', 'world']];
295
+ [
296
+ ['hello', 'world'],
297
+ ];
294
298
 
295
299
  store('hello');
296
300
  // returns
@@ -455,9 +459,7 @@ export const fix = (file) => {
455
459
  };
456
460
 
457
461
  export const scan = (rootPath, {push, trackFile}) => {
458
- for (const file of trackFile(rootPath, 'hello.txt')) {
459
- findFile(rootPath, 'again and again');
460
- }
462
+ findFile(rootPath, 'again and again');
461
463
  };
462
464
  ```
463
465
 
@@ -472,11 +474,9 @@ export const fix = (file) => {
472
474
  export const scan = (rootPath, {push, trackFile}) => {
473
475
  const crawled = crawlDirectory(rootPath);
474
476
 
475
- for (const file of trackFile(rootPath, 'hello.txt')) {
476
- findFile(rootPath, 'again and again', {
477
- crawled,
478
- });
479
- }
477
+ findFile(rootPath, 'again and again', {
478
+ crawled,
479
+ });
480
480
  };
481
481
  ```
482
482
 
@@ -491,9 +491,7 @@ export const fix = (file) => {
491
491
  };
492
492
 
493
493
  export const scan = (rootPath, {push, trackFile, crawlFile}) => {
494
- for (const file of trackFile(rootPath, 'hello.txt')) {
495
- const files = crawlFile(rootPath, 'no matter how many times');
496
- }
494
+ const files = crawlFile(rootPath, 'no matter how many times');
497
495
  };
498
496
  ```
499
497
 
@@ -531,7 +529,9 @@ const plugins = [{
531
529
  msg: '', // optional
532
530
  options: {}, // optional
533
531
  plugin: {
534
- include: () => ['debugger'],
532
+ include: () => [
533
+ 'debugger',
534
+ ],
535
535
  fix: (path) => path.remove(),
536
536
  report: () => `debugger should not be used`,
537
537
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-runner",
3
- "version": "28.2.0",
3
+ "version": "28.2.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Run 🐊Putout plugins",
@@ -51,7 +51,6 @@
51
51
  "@putout/engine-loader": "^17.0.0",
52
52
  "@putout/plugin-minify": "*",
53
53
  "@putout/plugin-variables": "*",
54
- "c8": "^10.0.0",
55
54
  "eslint": "^10.0.0",
56
55
  "eslint-plugin-n": "^17.0.0",
57
56
  "eslint-plugin-putout": "^31.0.0",
@@ -60,6 +59,7 @@
60
59
  "montag": "^1.0.0",
61
60
  "nodemon": "^3.0.1",
62
61
  "putout": "*",
62
+ "superc8": "^12.0.0",
63
63
  "supertape": "^12.0.0"
64
64
  },
65
65
  "license": "MIT",