putout 25.0.7 → 25.0.8
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 +13 -0
- package/README.md +7 -7
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
2022.03.01, v25.0.8
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- chore(actions) add auto fix
|
|
5
|
+
- docs(readme) Ruler: auto fix example
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
feature:
|
|
9
|
+
- (package) @putout/plugin-promises v8.0.0
|
|
10
|
+
- (@putout/plugin-promises) drop support of node < 16
|
|
11
|
+
- (@putout/plugin-promises) remove-useless-await: add support of primitives used as argument
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
2022.02.28, v25.0.7
|
|
2
15
|
|
|
3
16
|
feature:
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
|
-
🐊[
|
|
12
|
+
🐊[**Putout**](https://github.com/coderaiser/putout) find and fix problems in your `JavaScript`, `JSX`, `Typescript`, `Flow`, `Yaml, `Json`and`Markdown`. It can:
|
|
13
13
|
|
|
14
14
|
- remove unused `variables`;
|
|
15
15
|
- remove unused `for-of variables`;
|
|
@@ -144,7 +144,7 @@ putout lib test --fix
|
|
|
144
144
|
|
|
145
145
|
## Plugins
|
|
146
146
|
|
|
147
|
-
By default
|
|
147
|
+
By default 🐊**Putout** uses all enabled by default plugins, anyways it can be run with a couple mentioned plugins (splitted with ","):
|
|
148
148
|
|
|
149
149
|
```sh
|
|
150
150
|
putout lib --plugins remove-debugger,remove-unused-variables
|
|
@@ -152,10 +152,10 @@ putout lib --plugins remove-debugger,remove-unused-variables
|
|
|
152
152
|
|
|
153
153
|
## Environment variables
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
🐊**Putout** supports next `environment variables`:
|
|
156
156
|
|
|
157
157
|
- `PUTOUT_FILES` - files that should be processed by putout, divided by ",";
|
|
158
|
-
- `PUTOUT_CONFIG_FILE` - path to
|
|
158
|
+
- `PUTOUT_CONFIG_FILE` - path to 🐊**Putout** config file;
|
|
159
159
|
- `ESLINT_CONFIG_FILE` - path to `ESLint` config file;
|
|
160
160
|
|
|
161
161
|
```sh
|
|
@@ -194,9 +194,9 @@ When you need to ignore some routes no metter what, you can use `ignore` section
|
|
|
194
194
|
|
|
195
195
|
## Plugins
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
🐊**Putout** supports `plugins`, there is two types: with prefix official `@putout/plugin-` and user plugins with prefix `putout-plugin-`. To use your plugin create plugin as `npm` package with keywords `putout`, `putout-plugin` and add it to `.putout.json`.
|
|
198
198
|
|
|
199
|
-
For example if you need to `remove-something` create 🐊[
|
|
199
|
+
For example if you need to `remove-something` create 🐊[**Putout**](https://github.com/coderaiser/putout) plugin with name `putout-plugin-remove-something` and it to `package.json`:
|
|
200
200
|
|
|
201
201
|
```json
|
|
202
202
|
{
|
|
@@ -208,7 +208,7 @@ For example if you need to `remove-something` create 🐊[`Putout`](https://gith
|
|
|
208
208
|
|
|
209
209
|
## Codemods
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
🐊**Putout** supports `codemodes` in the similar to plugins way, just create a directory `~/.putout` and put your plugins there. Here is example: [convert-tape-to-supertape](https://github.com/coderaiser/putout/tree/master/codemods/plugin-convert-tape-to-supertape) and [this is example of work](https://github.com/coderaiser/putout/commit/ad02cebc344ce73cdee668cffc5078bf08830d52).
|
|
212
212
|
|
|
213
213
|
## API
|
|
214
214
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "25.0.
|
|
3
|
+
"version": "25.0.8",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊 Pluggable and configurable code transformer with built-in eslint and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@putout/plugin-nodejs": "^4.0.0",
|
|
116
116
|
"@putout/plugin-npmignore": "^2.0.0",
|
|
117
117
|
"@putout/plugin-package-json": "^3.0.0",
|
|
118
|
-
"@putout/plugin-promises": "^
|
|
118
|
+
"@putout/plugin-promises": "^8.0.0",
|
|
119
119
|
"@putout/plugin-putout": "^10.0.0",
|
|
120
120
|
"@putout/plugin-putout-config": "^2.0.0",
|
|
121
121
|
"@putout/plugin-regexp": "^5.0.0",
|