Skip to content

Commit 4ecad02

Browse files
committed
chore: putout: actions: lint ☘️
1 parent bbce761 commit 4ecad02

File tree

15 files changed

+41
-41
lines changed

15 files changed

+41
-41
lines changed

docs/the-book-of-ast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function say(...vegatables) {}
258258

259259
"Tell me please something about it!".
260260

261-
"Well, **SpreadElement** takes any [**Expression**](#expression-and-statement) as an `argument`, and takes items that metters from `animals` and put them to `funny`, or call a **FunctionExpression** `say` and passing `vegatables` as an `arguments`. It can even collect all `arguments` into a variable `vegatable` with help of **RestElement**.
261+
"Well, **SpreadElement** takes any [**Expression**](#expression-and-statement) as an `argument`, and takes items that metters from `animals` and put them to `funny`, or call a **FunctionExpression** `say` and passing `vegatables` as an `arguments`. It can even collect all `arguments` into a variable `vegetable` with help of **RestElement**.
262262
"Nice!", said Rabbit keeping eating carrots, "Now things got more clear to me! Take a carrot, friend, they so sweet I can't break away!".
263263

264264
"Thank you to, Rabbit", Putout answered and take carrot, he loved fruits and vegatables and was always happy to eat it.

packages/engine-parser/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const code = print(ast, {
4747

4848
print(ast, {
4949
printer: ['babel', {
50-
alginSpaces: false, // when you don't want to add spaces on empty lines
50+
alignSpaces: false, // when you don't want to add spaces on empty lines
5151
}],
5252
});
5353
```

packages/formatter-frame/README.md

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

6-
`putout` fromatter with `progress` + `codeframe`.
6+
`putout` formatter with `progress` + `codeframe`.
77

88
## Install
99

packages/operate/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Manipulate with `path` nodes and keep `comments` and `loc` information.
1313
npm i @putout/operate
1414
```
1515

16-
If you write plugin for `putout` you already have `operator` in `putout`, all exampes will get `operator` from `putout`, but you can use direct `require('@putout/operate')` as well.
16+
If you write plugin for `putout` you already have `operator` in `putout`, all examples will get `operator` from `putout`, but you can use direct `require('@putout/operate')` as well.
1717

1818
## API
1919

packages/operate/lib/get-export-default.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {getExportDefault} = require('./get-export-default');
1111

1212
const {traverse} = operator;
1313

14-
test('operate: getExportDefault', (t) => {
14+
test('operate: getExportDefault: found', (t) => {
1515
const ast = parse(`export default {}`);
1616

1717
traverse(ast, {

packages/operate/test/operate.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -644,49 +644,49 @@ test('operate: getPathAfterImports: couple imports', (t) => {
644644
t.end();
645645
});
646646

647-
test('opreate: getBinding', (t) => {
647+
test('operate: getBinding', (t) => {
648648
const {getBinding} = require('../lib/get-binding');
649649

650650
t.equal(operate.getBinding, getBinding);
651651
t.end();
652652
});
653653

654-
test('opreate: getBindingPath', (t) => {
654+
test('operate: getBindingPath', (t) => {
655655
const {getBindingPath} = require('../lib/get-binding');
656656

657657
t.equal(operate.getBindingPath, getBindingPath);
658658
t.end();
659659
});
660660

661-
test('opreate: extract', (t) => {
661+
test('operate: extract', (t) => {
662662
const {extract} = require('../lib/extract');
663663

664664
t.equal(operate.extract, extract);
665665
t.end();
666666
});
667667

668-
test('opreate: compute', (t) => {
668+
test('operate: compute', (t) => {
669669
const {compute} = require('../lib/compute');
670670

671671
t.equal(operate.compute, compute);
672672
t.end();
673673
});
674674

675-
test('opreate: getProperties', (t) => {
675+
test('operate: getProperties', (t) => {
676676
const {getProperties} = require('../lib/properties');
677677

678678
t.equal(operate.getProperties, getProperties);
679679
t.end();
680680
});
681681

682-
test('opreate: getProperty', (t) => {
682+
test('operate: getProperty', (t) => {
683683
const {getProperty} = require('../lib/properties');
684684

685685
t.equal(operate.getProperty, getProperty);
686686
t.end();
687687
});
688688

689-
test('opreate: getExportDefault', (t) => {
689+
test('operate: getExportDefault', (t) => {
690690
const {getExportDefault} = require('../lib/get-export-default');
691691

692692
t.equal(operate.getExportDefault, getExportDefault);
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
import {createTest} from '@putout/test';
2-
import * as convertQuotesToBacktics from '../lib/convert-quotes-to-backticks.js';
2+
import * as convertQuotesToBackticks from '../lib/convert-quotes-to-backticks.js';
33

44
const test = createTest(import.meta.url, {
55
plugins: [
6-
['convert-quotes-to-backtics', convertQuotesToBacktics],
6+
['convert-quotes-to-backticks', convertQuotesToBackticks],
77
],
88
});
99

10-
test('plugin-convert-quotes-to-backtics: report: quotes', (t) => {
10+
test('plugin-convert-quotes-to-backticks: report: quotes', (t) => {
1111
t.report('quotes', 'Use backticks instead of quotes');
1212
t.end();
1313
});
1414

15-
test('plugin-convert-quotes-to-backtics: transform: quotes', (t) => {
15+
test('plugin-convert-quotes-to-backticks: transform: quotes', (t) => {
1616
t.transform('quotes');
1717
t.end();
1818
});
1919

20-
test('plugin-convert-quotes-to-backtics: transform: newline', (t) => {
20+
test('plugin-convert-quotes-to-backticks: transform: newline', (t) => {
2121
t.transform('newline');
2222
t.end();
2323
});
2424

25-
test('plugin-convert-quotes-to-backtics: no report: variables', (t) => {
25+
test('plugin-convert-quotes-to-backticks: no report: variables', (t) => {
2626
t.noReport('variables');
2727
t.end();
2828
});
2929

30-
test('plugin-convert-quotes-to-backtics: transform: object-key', (t) => {
30+
test('plugin-convert-quotes-to-backticks: transform: object-key', (t) => {
3131
t.transform('object-key');
3232
t.end();
3333
});
3434

35-
test('plugin-convert-quotes-to-backtics: transform: backslash', (t) => {
35+
test('plugin-convert-quotes-to-backticks: transform: backslash', (t) => {
3636
t.transform('backslash');
3737
t.end();
3838
});
3939

40-
test('plugin-convert-quotes-to-backtics: no report: backtick', (t) => {
40+
test('plugin-convert-quotes-to-backticks: no report: backtick', (t) => {
4141
t.noReport('backtick');
4242
t.end();
4343
});

packages/plugin-for-of/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ npm i @putout/plugin-for-of
6161
>
6262
> (c) MDN
6363
64-
Chechout in 🐊[**Putout Editor**](https://putout.vercel.app/#/gist/68d114f01384084cc3bec0a5d75f2dfa/0bb5201d36ed27f74728921aca95a04efa35c82d).
64+
Checkout in 🐊[**Putout Editor**](https://putout.vercel.app/#/gist/68d114f01384084cc3bec0a5d75f2dfa/0bb5201d36ed27f74728921aca95a04efa35c82d).
6565

6666
### ❌ Example of incorrect code
6767

packages/plugin-for-of/lib/for-entries-n/fixture/not-declered-n.js renamed to packages/plugin-for-of/lib/for-entries-n/fixture/not-declared-n.js

File renamed without changes.

packages/plugin-for-of/lib/for-entries-n/index.spec.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,36 @@ import * as entriesN from './index.js';
44

55
const test = createTest(import.meta.url, {
66
plugins: [
7-
['convert-for-to-for-of/entries-n', entriesN],
7+
['for-for-of/for-entries-n', entriesN],
88
],
99
});
1010

11-
test('plugin-convert-for-to-for-of: entries-n: report', (t) => {
11+
test('plugin-for-of: entries-n: report', (t) => {
1212
t.report('entries-n', `Use 'for...of' instead of 'for'`);
1313
t.end();
1414
});
1515

16-
test('plugin-convert-for-to-for-of: entries-n: no report: i-changed', (t) => {
16+
test('plugin-for-of: entries-n: no report: i-changed', (t) => {
1717
t.noReport('i-changed');
1818
t.end();
1919
});
2020

21-
test('plugin-convert-for-to-for-of: entries-n: transform: entries-n', (t) => {
21+
test('plugin-for-of: entries-n: transform: entries-n', (t) => {
2222
t.transform('entries-n');
2323
t.end();
2424
});
2525

26-
test('plugin-convert-for-to-for-of: entries-n: no transform: used-n', (t) => {
26+
test('plugin-for-of: entries-n: no transform: used-n', (t) => {
2727
t.noTransform('used-n');
2828
t.end();
2929
});
3030

31-
test('plugin-convert-for-to-for-of: entries-n: no report: not-declered-n', (t) => {
32-
t.noReport('not-declered-n');
31+
test('plugin-for-of: entries-n: no report: not-declared-n', (t) => {
32+
t.noReport('not-declared-n');
3333
t.end();
3434
});
3535

36-
test('plugin-convert-for-to-for-of: entries-n: transform: not block', (t) => {
36+
test('plugin-for-of: entries-n: transform: not block', (t) => {
3737
t.noTransformCode(montag`
3838
const n = a.length;
3939
@@ -43,15 +43,15 @@ test('plugin-convert-for-to-for-of: entries-n: transform: not block', (t) => {
4343
t.end();
4444
});
4545

46-
test('plugin-convert-for-to-for-of: entries-n: transform: not assign', (t) => {
46+
test('plugin-for-of: entries-n: transform: not assign', (t) => {
4747
t.noTransformCode(montag`
4848
const n = a.length;
4949
for (let i = 0; i < n; i++) {}\n
5050
`);
5151
t.end();
5252
});
5353

54-
test('plugin-convert-for-to-for-of: entries-n: transform: no n', (t) => {
54+
test('plugin-for-of: entries-n: transform: no n', (t) => {
5555
t.noTransformCode(montag`
5656
console.log();
5757
@@ -62,7 +62,7 @@ test('plugin-convert-for-to-for-of: entries-n: transform: no n', (t) => {
6262
t.end();
6363
});
6464

65-
test('plugin-convert-for-to-for-of: entries-n: transform: no references i', (t) => {
65+
test('plugin-for-of: entries-n: transform: no references i', (t) => {
6666
t.noTransformCode(montag`
6767
console.log();
6868

0 commit comments

Comments
 (0)