putout 20.18.0 → 21.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/ChangeLog CHANGED
@@ -1,3 +1,40 @@
1
+ 2021.10.31, v21.0.0
2
+
3
+ fix:
4
+ - (@putout/plugin-tape) drop support of putout < 21
5
+
6
+ feature:
7
+ - (putout) eslint-plugin-putout v11.0.0
8
+ - (eslint-plugin-putout) drop support of putout < 21
9
+ - (package) @putout/plugin-tape v6.0.0
10
+ - (@putout/plugin-tape) drop support of putout <= v20.20
11
+ - (@putout/plugin-tape) add remove-only, remove-skip
12
+
13
+
14
+ 2021.10.29, v20.19.2
15
+
16
+ fix:
17
+ - (putout) --help: plugins list -> plugins
18
+
19
+
20
+ 2021.10.29, v20.19.1
21
+
22
+ fix:
23
+ - (putout) --help: --match [file name] -> --match [pattern]
24
+
25
+
26
+ 2021.10.28, v20.19.0
27
+
28
+ fix:
29
+ - (@putout/plugin-remove-unused-variables) add support of computed key
30
+
31
+ feature:
32
+ - (package) @putout/processor-yaml v3.0.0
33
+ - (@putout/processor-yaml) drop support of putout < 20
34
+ - (@putout/processor-yaml) js-yaml -> yaml: useless quotes (nodeca/js-yaml#645)
35
+ - (eslint-plugin-putout) safe: disable remove-unused-types
36
+
37
+
1
38
  2021.10.22, v20.18.0
2
39
 
3
40
  feature:
package/README.md CHANGED
@@ -1,11 +1,9 @@
1
- # Putout [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
1
+ # Putout [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
2
2
 
3
3
  [NPMIMGURL]: https://img.shields.io/npm/v/putout.svg?style=flat&longCache=true
4
4
  [BuildStatusIMGURL]: https://github.com/coderaiser/putout/workflows/Node%20CI/badge.svg
5
- [DependencyStatusIMGURL]: https://david-dm.org/coderaiser/putout.svg?path=packages/putout
6
5
  [NPMURL]: https://npmjs.org/package/putout "npm"
7
6
  [BuildStatusURL]: https://github.com/coderaiser/putout/actions?query=workflow%3A%22Node+CI%22 "Build Status"
8
- [DependencyStatusURL]: https://david-dm.org/coderaiser/putout?path=packages/putout "Dependency Status"
9
7
  [CoverageURL]: https://coveralls.io/github/coderaiser/putout?branch=master
10
8
  [CoverageIMGURL]: https://coveralls.io/repos/coderaiser/putout/badge.svg?branch=master&service=github
11
9
 
@@ -116,12 +114,12 @@ Options:
116
114
  --fix-count [count = 10] count of fixes rounds
117
115
  --rulesdir use additional rules from directory
118
116
  --transform [replacer] apply Replacer, for example 'var __a = __b -> const __a = __b', read about Replacer https://git.io/JqcMn
119
- --plugins [plugins list] a comma-separated list of plugins to use
117
+ --plugins [plugins] a comma-separated list of plugins to use
120
118
  --enable [rule] enable the rule and save it to '.putout.json' walking up parent directories
121
119
  --disable [rule] disable the rule and save it to '.putout.json' walking up parent directories
122
120
  --enable-all enable all found rules and save them to '.putout.json' walking up parent directories
123
121
  --disable-all disable all found rules (set baseline) and save them '.putout.json' walking up parent directories
124
- --match [file name] read .putout.json and convert 'rules' to 'match' using pattern
122
+ --match [pattern] read .putout.json and convert 'rules' to 'match' according to 'pattern'
125
123
  --flow enable flow
126
124
  --fresh generate a fresh cache
127
125
  --no-config avoid reading '.putout.json'
package/help.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "--fix-count [count = 10] ": "count of fixes rounds",
8
8
  "--rulesdir ": "use additional rules from directory",
9
9
  "--transform [replacer] ": "apply Replacer, for example 'var __a = __b -> const __a = __b', read about Replacer https://git.io/JqcMn",
10
- "--plugins [plugins list] ": "a comma-separated list of plugins to use",
10
+ "--plugins [plugins] ": "a comma-separated list of plugins to use",
11
11
  "--enable [rule] ": "enable the rule and save it to '.putout.json' walking up parent directories",
12
12
  "--disable [rule] ": "disable the rule and save it to '.putout.json' walking up parent directories",
13
13
  "--enable-all ": "enable all found rules and save them to '.putout.json' walking up parent directories",
14
14
  "--disable-all ": "disable all found rules (set baseline) and save them to '.putout.json' walking up parent directories",
15
- "--match [file name] ": "read .putout.json and convert 'rules' to 'match' using pattern",
15
+ "--match [pattern] ": "read .putout.json and convert 'rules' to 'match' according to 'pattern'",
16
16
  "--flow ": "enable flow",
17
17
  "--fresh ": "generate a fresh cache",
18
18
  "--no-config ": "avoid reading '.putout.json'",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "20.18.0",
3
+ "version": "21.0.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "🐊 Pluggable and configurable code transformer with built-in eslint, babel plugins and jscodeshift codemods support of js, jsx typescript, flow files, markdown, yaml and json",
6
6
  "homepage": "http://github.com/coderaiser/putout",
@@ -131,9 +131,7 @@
131
131
  "@putout/plugin-remove-empty": "^6.0.0",
132
132
  "@putout/plugin-remove-iife": "^1.0.0",
133
133
  "@putout/plugin-remove-nested-blocks": "^4.0.0",
134
- "@putout/plugin-remove-only": "^5.0.0",
135
134
  "@putout/plugin-remove-process-exit": "^3.0.0",
136
- "@putout/plugin-remove-skip": "^4.0.0",
137
135
  "@putout/plugin-remove-unreachable-code": "^1.0.0",
138
136
  "@putout/plugin-remove-unreferenced-variables": "^1.0.0",
139
137
  "@putout/plugin-remove-unused-expressions": "^4.0.0",
@@ -170,14 +168,14 @@
170
168
  "@putout/plugin-split-nested-destructuring": "^1.0.0",
171
169
  "@putout/plugin-split-variable-declarations": "^2.0.0",
172
170
  "@putout/plugin-strict-mode": "^2.0.0",
173
- "@putout/plugin-tape": "^5.0.0",
171
+ "@putout/plugin-tape": "^6.0.0",
174
172
  "@putout/plugin-webpack": "^1.0.0",
175
173
  "@putout/processor-css": "^3.0.0",
176
174
  "@putout/processor-ignore": "^2.0.0",
177
175
  "@putout/processor-javascript": "^3.0.0",
178
176
  "@putout/processor-json": "^3.0.0",
179
177
  "@putout/processor-markdown": "^5.0.0",
180
- "@putout/processor-yaml": "^2.0.0",
178
+ "@putout/processor-yaml": "^3.0.0",
181
179
  "@putout/traverse": "^4.0.0",
182
180
  "chalk": "^4.0.0",
183
181
  "ci-info": "^3.1.1",
@@ -220,7 +218,7 @@
220
218
  "currify": "^4.0.0",
221
219
  "eslint": "^8.0.1",
222
220
  "eslint-plugin-node": "^11.0.0",
223
- "eslint-plugin-putout": "^10.0.0",
221
+ "eslint-plugin-putout": "^11.0.0",
224
222
  "just-camel-case": "^4.0.2",
225
223
  "lerna": "^4.0.0",
226
224
  "madrun": "^8.6.0",
package/putout.json CHANGED
@@ -73,8 +73,6 @@
73
73
  "remove-empty/import": "off"
74
74
  },
75
75
  "{test,*.spec.{js,mjs,cjs}}": {
76
- "remove-only": "on",
77
- "remove-skip": "on",
78
76
  "tape": "on"
79
77
  },
80
78
  "*.mjs": {
@@ -125,8 +123,6 @@
125
123
  "remove-useless-mapping-modifiers": "off",
126
124
  "remove-useless-types-from-constants": "off",
127
125
  "remove-unused-types": "off",
128
- "remove-only": "off",
129
- "remove-skip": "off",
130
126
  "putout": "off",
131
127
  "putout-config": "off",
132
128
  "eslint": "off",
@@ -160,8 +156,6 @@
160
156
  "package-json",
161
157
  "remove-debugger",
162
158
  "remove-iife",
163
- "remove-only",
164
- "remove-skip",
165
159
  "remove-process-exit",
166
160
  "remove-console",
167
161
  "remove-empty",