@putout/plugin-putout-config 12.1.0 → 12.2.1
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 +20 -0
- package/lib/apply-coverage/index.js +12 -0
- package/lib/apply-esm/index.js +2 -2
- package/lib/index.js +2 -0
- package/package.json +1 -1
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).
|
package/lib/apply-esm/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import {operator} from 'putout';
|
|
|
2
2
|
|
|
3
3
|
const {renameProperties} = operator;
|
|
4
4
|
const v41 = [
|
|
5
|
-
['esm/
|
|
5
|
+
['esm/add-index-to-import', ''],
|
|
6
6
|
];
|
|
7
7
|
|
|
8
8
|
const v40 = [
|
|
9
|
-
['putout/
|
|
9
|
+
['putout/add-index-to-import', 'esm/add-index-to-import'],
|
|
10
10
|
];
|
|
11
11
|
|
|
12
12
|
const v37 = [
|
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