putout 22.0.2 → 22.1.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 +13 -1
- package/README.md +5 -5
- package/package.json +1 -1
- package/putout.json +1 -0
package/ChangeLog
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
2021.11.21, v22.1.0
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- (@putout/plugin-convert-quotes-to-backticks) a couple newlines
|
|
5
|
+
- (@putout/plugin-convert-quotes-to-backticks) newlines
|
|
6
|
+
|
|
7
|
+
feature:
|
|
8
|
+
- (putout) *.md: disable convert-quotes-to-backticks
|
|
9
|
+
- (@putout/plugin-convert-quotes-to-backtics) add suport of newlines
|
|
10
|
+
- (eslint-plugin-putout) objects-braces-inside-array: enable for json, disable for yaml
|
|
11
|
+
|
|
12
|
+
|
|
1
13
|
2021.11.19, v22.0.2
|
|
2
14
|
|
|
3
15
|
fix:
|
|
@@ -13,7 +25,7 @@ feature:
|
|
|
13
25
|
- (@putout/engine-parser) export babel parser
|
|
14
26
|
- (@putout/plugin-tape) convert-ok-to-match: exclude: keys
|
|
15
27
|
- (@putout/plugin-tape) convert-ok-to-match: rm RegExp, t.match adds it
|
|
16
|
-
- (eslint-plugin-putout) single-property-destructuring: exclude ImportSpecifier
|
|
28
|
+
- (eslint-plugin-putout) single-property-destructuring: exclude ImportSpecifier with local different then imported
|
|
17
29
|
- (@putout/compare) add support of empty template
|
|
18
30
|
- (eslint-plugin-putout) remove-empty-newline-after-last-specifier: add support of ObjectExpression
|
|
19
31
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
|
-
Putout
|
|
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`;
|
|
@@ -142,7 +142,7 @@ putout lib test --fix
|
|
|
142
142
|
|
|
143
143
|
## Plugins
|
|
144
144
|
|
|
145
|
-
By default `
|
|
145
|
+
By default 🐊`Putout` uses all enabled by default plugins, anyways it can be run with a couple mentioned plugins (splitted with ","):
|
|
146
146
|
|
|
147
147
|
```sh
|
|
148
148
|
putout lib --plugins remove-debugger,remove-unused-variables
|
|
@@ -150,7 +150,7 @@ putout lib --plugins remove-debugger,remove-unused-variables
|
|
|
150
150
|
|
|
151
151
|
## Environment variables
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
🐊`Putout` supports next `environment variables`:
|
|
154
154
|
|
|
155
155
|
- `PUTOUT_FILES` - files that should be processed by putout, divided by ",";
|
|
156
156
|
|
|
@@ -190,7 +190,7 @@ When you need to ignore some routes no metter what, you can use `ignore` section
|
|
|
190
190
|
|
|
191
191
|
## Plugins
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
🐊`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`.
|
|
194
194
|
|
|
195
195
|
For example if you need to `remove-something` create `putout` plugin with name `putout-plugin-remove-something` and it to `package.json`:
|
|
196
196
|
|
|
@@ -204,7 +204,7 @@ For example if you need to `remove-something` create `putout` plugin with name `
|
|
|
204
204
|
|
|
205
205
|
## Codemods
|
|
206
206
|
|
|
207
|
-
`
|
|
207
|
+
🐊`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).
|
|
208
208
|
|
|
209
209
|
## API
|
|
210
210
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "22.0
|
|
3
|
+
"version": "22.1.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",
|