Skip to content

Commit 6048509

Browse files
authored
docs(putout) style: spelling errors (#101)
1 parent b1a15ff commit 6048509

21 files changed

Lines changed: 36 additions & 36 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Usage: putout [options] [path]
127127
Options:
128128
-h, --help display this help and exit
129129
-v, --version output version information and exit
130-
-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
131131
-s, --staged add staged files when in git repository
132132
--fix apply fixes of errors to code
133133
--fix-count [count = 10] count of fixes rounds
@@ -241,7 +241,7 @@ async function promise() {
241241

242242
But for some reason you don't want so many changes.
243243

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***.
245245

246246
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.
247247

@@ -311,7 +311,7 @@ putout src --disable-all && putout src --enable convert-commonjs-to-esm && putou
311311

312312
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.
313313

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 🐊.*
315315

316316
Happy coding 🎈!
317317

@@ -502,7 +502,7 @@ As you see, `places` is empty, but the code is changed: there is no `hi` variabl
502502

503503
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).
504504
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:
506506

507507
```js
508508
putout(source, {
@@ -1921,7 +1921,7 @@ Here is list of options:
19211921
- `filesCount` - count of files with errors
19221922
- `errorsCount` count of errors
19231923

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,
19251925
and add the tags `putout`, `formatter`, `putout-formatter`.
19261926

19271927
### ESLint Formatters
@@ -2051,7 +2051,7 @@ Let's dive into plugin types that you can use for you next code transformation.
20512051

20522052
### Replacer
20532053

2054-
The simplest 🐊**Putout** plugin type, consits of 2 functions:
2054+
The simplest 🐊**Putout** plugin type consists of 2 functions:
20552055

20562056
- `report` - report error message to `putout` cli;
20572057
- `replace` - replace `key` template into `value` template;
@@ -2170,7 +2170,7 @@ Where `__` is a placeholder for anything.
21702170

21712171
*☝️Remember: template key should be valid **JavaScript**, or **Node Type**, like in previous example.*
21722172

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)):
21742174

21752175
```js
21762176
// should be always used include/or exclude, when traverse not used
@@ -2214,7 +2214,7 @@ test('remove debugger: report', (t) => {
22142214
t.end();
22152215
});
22162216

2217-
// stetement should be removed so result is empty
2217+
// statement should be removed so result is empty
22182218
test('remove debugger: transformCode', (t) => {
22192219
t.transformCode('debugger', '');
22202220
t.end();
@@ -2226,7 +2226,7 @@ To see a more sophisticated example look at [@putout/plugin-remove-console](http
22262226

22272227
### 🤷‍♂️ What if I don't want to publish a plugin?
22282228

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):
22302230

22312231
```js
22322232
putout('const a = 5', {

packages/engine-parser/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ npm i @putout/engine-parser
1919
- [esprima](https://esprima.org/)
2020
- [tenko](https://github.com/pvdz/tenko)
2121

22-
Any parser should be installed before use, but you can be shure that `@babel/parse` always installed.
22+
Any parser should be installed before use, but you can be sure that `@babel/parse` always installed.
2323

2424
## API
2525

@@ -50,7 +50,7 @@ You have two ways to benefit from source map generation:
5050
- using `Recast` print;
5151
- using `Babel` generator;
5252

53-
#### Generate sourcemaps usign Recast
53+
#### Generate sourcemaps using Recast
5454

5555
```js
5656
const source = `const hello = 'world';`;
@@ -63,9 +63,9 @@ print(ast, {sourceMapName: 'hello.map'});
6363
{"version":3,"sources":["hello.js"],"names":[],"mappings":"AAAA...","file":"hello.map","sourcesContent":["const hello = 'world';"]}`;
6464
```
6565

66-
#### Generate sourcemaps usign Bebel
66+
#### Generate sourcemaps using Babel
6767

68-
To generate sourcemap usig babel generator, you should use babel parser before.
68+
To generate sourcemap using babel generator, you should use babel parser before.
6969
This is low level transformation, because `Babel` doesn't preserve any formatting.
7070

7171
```js

packages/engine-processor/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[NPMIMGURL]: https://img.shields.io/npm/v/@putout/engine-loader.svg?style=flat&longCache=true
44
[NPMURL]: https://npmjs.org/package/@putout/engine-loader"npm"
55

6-
🐊[**Putout**](https://github.com/coderaiser/putout) processor that runns all engines according to supported file types.
6+
🐊[**Putout**](https://github.com/coderaiser/putout) processor that runs all engines according to supported file types.
77

88
```
99
npm i @putout/engine-processor
@@ -38,7 +38,7 @@ runProcessors({
3838

3939
## Processor Example
4040

41-
Simplest possible procesor example can look like this:
41+
Simplest possible processor example can look like this:
4242

4343
```js
4444
module.exports.files = [

packages/engine-processor/test/processor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ test('putout: engine-processor: markdown: no fix: return processed places', asyn
228228
//
229229
// In this case we can benefit from:
230230
// - simplifiyng format of remark rules (which are splited on fix/report with help of options(!));
231-
// - spliting one big rule on a couple small rules;
231+
// - splitting one big rule on a couple small rules;
232232
//
233233
// Otherwise it will mutate the tree and report all found errors, so only one big rule with
234234
// "filter" + "fix" joined and one message is supported ☝️.
235235
//
236236
// Which is hard to maintain.
237237
// So we should choose between "robotic" format 🤖 and change file with no errors found but
238238
// easy to maintain plugins similar to ones 🐊**Putout** has.
239-
// Or hard to maitain one big blob of processing with one message but change only on --fix.
239+
// Or hard to maintain one big blob of processing with one message but change only on --fix.
240240
test('putout: engine-processor: markdown: no places no fix', async (t) => {
241241
const name = join(__dirname, 'fixture', 'no-places-no-change.md');
242242
const options = {

packages/operator-add-args/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "3.0.1",
44
"type": "commonjs",
55
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6-
"description": "🐊Putout operator adds ability to add args to referenced variables that wan not defined",
6+
"description": "🐊Putout operator adds ability to add args to referenced variables that was not defined",
77
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/operator-add-args#readme",
88
"main": "lib/add-args.js",
99
"release": false,

packages/operator-declare/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const {
3939
module.exports = declare({
4040
fs: {
4141
esm: `import fs from 'fs/promises'`,
42-
comomnjs: `const fs = require('fs')`, // drop when not neaded
42+
comomnjs: `const fs = require('fs')`, // drop when not needed
4343
},
4444
});
4545
```

packages/operator-regexp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[NPMURL]: https://npmjs.org/package/@putout/operator-regexp "npm"
55

66
🐊[**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.
88

99
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):
1010

packages/operator-regexp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"type": "commonjs",
55
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6-
"description": "🐊Putout operator adds ability to check if provided regexp can be converted to string without loosing it's sense",
6+
"description": "🐊Putout operator adds ability to check if provided regexp can be converted to string without losing it's sense",
77
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/operator-regexp#readme",
88
"main": "lib/regexp.js",
99
"release": false,

packages/plugin-convert-commonjs-to-esm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
>
1010
> (c) [parceljs](https://parceljs.org/languages/javascript/)
1111
12-
🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert Commonjs to ESM.
12+
🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert CommonJS to ESM.
1313

1414
## Install
1515

packages/plugin-convert-commonjs-to-esm/lib/exports/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const {
1212
ExportNamedDeclaration,
1313
} = types;
1414

15-
module.exports.report = () => 'ESM should be used insted of Commonjs';
15+
module.exports.report = () => 'ESM should be used instead of CommonJS';
1616

1717
module.exports.exclude = () => [
1818
'__, __',

0 commit comments

Comments
 (0)