@putout/plugin-putout-config 11.14.0 → 12.0.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
@@ -18,6 +18,7 @@ npm i @putout/plugin-putout-config -D
18
18
  - ✅ [apply-conditions](#apply-conditions);
19
19
  - ✅ [apply-destructuring](#apply-destructuring);
20
20
  - ✅ [apply-esm](#apply-esm);
21
+ - ✅ [apply-filesystem](#apply-filesystem);
21
22
  - ✅ [apply-for-of](#apply-for-of);
22
23
  - ✅ [apply-parens](#apply-parens);
23
24
  - ✅ [apply-return](#apply-return);
@@ -49,6 +50,7 @@ npm i @putout/plugin-putout-config -D
49
50
  "putout-config/apply-destructuring": "on",
50
51
  "putout-config/apply-esm": "on",
51
52
  "putout-config/apply-for-of": "on",
53
+ "putout-config/apply-filesystem": "on",
52
54
  "putout-config/apply-labels": "on",
53
55
  "putout-config/apply-math": "on",
54
56
  "putout-config/apply-nodejs": "on",
@@ -114,6 +116,25 @@ Apply [`return`](https://github.com/coderaiser/putout/tree/master/packages/plugi
114
116
  }
115
117
  ```
116
118
 
119
+ ## apply-filesystem
120
+
121
+ Apply [`filesystem`](https://github.com/coderaiser/putout/tree/master/packages/plugin-filesystem#readme) according to:
122
+
123
+ - 🐊[**Putout v42**](https://github.com/coderaiser/putout/releases/tag/v42.0.0):
124
+
125
+ ```diff
126
+ {
127
+ "rules": {
128
+ - "filesystem/remove-travis-yml-file": "off",
129
+ - "filesystem/remove-vim-swap-file": "off",
130
+ - "filesystem/remove-nyc-output-file": "off",
131
+ - "filesystem/remove-ds-store-file": "off",
132
+ - "filesystem/remove-empty-directory": "off",
133
+ + "filesystem/remove-files": "off",
134
+ }
135
+ }
136
+ ```
137
+
117
138
  ## apply-esm
118
139
 
119
140
  Apply [`esm`](https://github.com/coderaiser/putout/tree/master/packages/plugin-esm#readme) according to:
@@ -0,0 +1,13 @@
1
+ import {createRenameProperty} from '../rename-property.js';
2
+
3
+ export const {
4
+ report,
5
+ fix,
6
+ traverse,
7
+ } = createRenameProperty([
8
+ ['filesystem/remove-travis-yml', 'filesystem/remove-file'],
9
+ ['filesystem/remove-vim-swap-file', 'filesystem/remove-file'],
10
+ ['filesystem/remove-nyc-output-file', 'filesystem/remove-file'],
11
+ ['filesystem/remove-ds-store-file', 'filesystem/remove-file'],
12
+ ['filesystem/remove-empty-directory', 'filesystem/remove-file'],
13
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout-config",
3
- "version": "11.14.0",
3
+ "version": "12.0.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",
@@ -41,7 +41,7 @@
41
41
  "nodemon": "^3.0.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "putout": ">=41"
44
+ "putout": ">=42"
45
45
  },
46
46
  "license": "MIT",
47
47
  "engines": {