You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-f, --format [formatter] use a specific output format, the default is: 'progress-bar' localy and 'dump' on CI
130
+
-f, --format [formatter] use a specific output format, the default is: 'progress-bar' locally and 'dump' on CI
131
131
-s, --staged add staged files when in git repository
132
132
--fix apply fixes of errors to code
133
133
--fix-count [count = 10] count of fixes rounds
@@ -241,7 +241,7 @@ async function promise() {
241
241
242
242
But for some reason you don't want so many changes.
243
243
244
-
☝️ *Remember, **safe** mode of **[eslint-plugin-putout](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout#safe-mode)** has the most dengerous rules **disabled**, so it can be used as **auto fix** on each **save** in your **IDE***.
244
+
☝️ *Remember, **safe** mode of **[eslint-plugin-putout](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout#safe-mode)** has the most dangerous rules **disabled**, so it can be used as **auto fix** on each **save** in your **IDE***.
245
245
246
246
So, if you want to convert it to [`ESM`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) keeping everything else untouched use **Ruler**: it can easily disable all rules 🐊**Putout** finds.
This command will **disable all rules** that 🐊**Putout** can find right now and **enable** a single rule. All built-in rules made for good and highly suggested to be used, all of them are enabled in all my repositories, since they have auto fix.
313
313
314
-
☝️*You can always disable what you don't need, so give it a try you wan't regret 🐊.*
314
+
☝️*You can always disable what you don't need, so give it a try. You won't regret 🐊.*
315
315
316
316
Happy coding 🎈!
317
317
@@ -502,7 +502,7 @@ As you see, `places` is empty, but the code is changed: there is no `hi` variabl
502
502
503
503
From the beginning, 🐊**Putout** developed with ability to split the main process into two concepts: `find` (find places that could be fixed) and `fix` (apply the fixes to the files).
504
504
It is therefore easy to find sections that could be fixed.
505
-
In the following example reduntand variables are found without making changes to the source file:
505
+
In the following example redundant variables are found without making changes to the source file:
506
506
507
507
```js
508
508
putout(source, {
@@ -1921,7 +1921,7 @@ Here is list of options:
1921
1921
-`filesCount` - count of files with errors
1922
1922
-`errorsCount` count of errors
1923
1923
1924
-
You can avoid any of this and use only what you nead. To make your formatter usable with `putout`, add the prefix `putout-formatter-` to your `npm` package,
1924
+
You can avoid any of this and use only what you need. To make your formatter usable with `putout`, add the prefix `putout-formatter-` to your `npm` package,
1925
1925
and add the tags `putout`, `formatter`, `putout-formatter`.
1926
1926
1927
1927
### ESLint Formatters
@@ -2051,7 +2051,7 @@ Let's dive into plugin types that you can use for you next code transformation.
2051
2051
2052
2052
### Replacer
2053
2053
2054
-
The simplest 🐊**Putout** plugin type, consits of 2 functions:
2054
+
The simplest 🐊**Putout** plugin type consists of 2 functions:
2055
2055
2056
2056
-`report` - report error message to `putout` cli;
2057
2057
-`replace` - replace `key` template into `value` template;
@@ -2170,7 +2170,7 @@ Where `__` is a placeholder for anything.
2170
2170
2171
2171
*☝️Remember: template key should be valid **JavaScript**, or **Node Type**, like in previous example.*
2172
2172
2173
-
You can also use `include` and/or `exclude`insead of `traverse` and `filter` ([more sophisticated example](https://github.com/coderaiser/putout/blob/v25.4.1/packages/plugin-add-return-await/lib/add-return-await.js)):
2173
+
You can also use `include` and/or `exclude`instead of `traverse` and `filter` ([more sophisticated example](https://github.com/coderaiser/putout/blob/v25.4.1/packages/plugin-add-return-await/lib/add-return-await.js)):
2174
2174
2175
2175
```js
2176
2176
// should be always used include/or exclude, when traverse not used
@@ -2226,7 +2226,7 @@ To see a more sophisticated example look at [@putout/plugin-remove-console](http
2226
2226
2227
2227
### 🤷♂️ What if I don't want to publish a plugin?
2228
2228
2229
-
If you don't want to publish a **plugin** you developed, you can pass it to 🐊**Putout** as an `object` described earler. Here is [how it can look like](https://github.com/coderaiser/mock-import/blob/v1.0.8/lib/convert-imports/index.js#L19-L33):
2229
+
If you don't want to publish a **plugin** you developed, you can pass it to 🐊**Putout** as an `object` described earlier. Here is [how it can look like](https://github.com/coderaiser/mock-import/blob/v1.0.8/lib/convert-imports/index.js#L19-L33):
🐊[**Putout**](https://github.com/coderaiser/putout) operator adds ability to determine that provided [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) can be
7
-
converted to [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) without loosing it's sense.
7
+
converted to [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) without losing it's sense.
8
8
9
9
It is used for example in [regexp/convert-replace-to-relace-all](https://github.com/coderaiser/putout/tree/master/packages/plugin-regexp#regexpconvert-replace-to-replace-all):
0 commit comments