@putout/plugin-putout-config 12.1.0 → 12.2.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 CHANGED
@@ -16,6 +16,7 @@ npm i @putout/plugin-putout-config -D
16
16
  - ✅ [apply-arguments](#apply-arguments);
17
17
  - ✅ [apply-assignment](#apply-assignment);
18
18
  - ✅ [apply-conditions](#apply-conditions);
19
+ - ✅ [apply-coverage](#apply-coverage);
19
20
  - ✅ [apply-destructuring](#apply-destructuring);
20
21
  - ✅ [apply-esm](#apply-esm);
21
22
  - ✅ [apply-filesystem](#apply-filesystem);
@@ -47,6 +48,7 @@ npm i @putout/plugin-putout-config -D
47
48
  "putout-config/apply-arguments": "on",
48
49
  "putout-config/apply-assignment": "on",
49
50
  "putout-config/apply-conditions": "on",
51
+ "putout-config/apply-coverage": "on",
50
52
  "putout-config/apply-destructuring": "on",
51
53
  "putout-config/apply-esm": "on",
52
54
  "putout-config/apply-for-of": "on",
@@ -393,6 +395,24 @@ Apply [`conditions`](https://github.com/coderaiser/putout/tree/master/packages/p
393
395
  }
394
396
  ```
395
397
 
398
+ ## apply-coverage
399
+
400
+ Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/5c661e8f319d6eba7185dfcc7b91d57c/db082d172b8fb896a3f608569c323c3ac0c36ef3).
401
+
402
+ Apply [`coverage`](https://github.com/coderaiser/putout/tree/master/packages/plugin-coverage#readme) according to:
403
+
404
+ - 🐊[**Putout v42**](https://github.com/coderaiser/putout/releases/tag/v42.0.0):
405
+
406
+ ```diff
407
+ {
408
+ "rules": {
409
+ - "filesystem/remove-nyc-output": "off"
410
+ + "coverage/remove-files": "off"
411
+ }
412
+ }
413
+ }
414
+ ```
415
+
396
416
  ## apply-for-of
397
417
 
398
418
  Apply [`for-of`](https://github.com/coderaiser/putout/tree/master/packages/plugin-for-of#readme) according to 🐊[**Putout v29**](https://github.com/coderaiser/putout/releases/tag/v29.0.0).
@@ -0,0 +1,12 @@
1
+ import {operator} from 'putout';
2
+
3
+ const {renameProperties} = operator;
4
+ const v42 = [
5
+ ['filesystem/remove-nyc-output', 'coverage/remove-files'],
6
+ ];
7
+
8
+ export const {
9
+ fix,
10
+ traverse,
11
+ report,
12
+ } = renameProperties([...v42]);
package/lib/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import * as applyCoverage from './apply-coverage/index.js';
1
2
  import * as sortIgnore from './sort-ignore/index.js';
2
3
  import * as applyArguments from './apply-arguments/index.js';
3
4
  import * as applyDestructuring from './apply-destructuring/index.js';
@@ -46,4 +47,5 @@ export const rules = {
46
47
  'remove-empty': removeEmpty,
47
48
  'remove-empty-file': ['off', removeEmptyFile],
48
49
  'sort-ignore': sortIgnore,
50
+ 'apply-coverage': applyCoverage,
49
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout-config",
3
- "version": "12.1.0",
3
+ "version": "12.2.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps to maintain putout config",