Skip to content

Commit 599d798

Browse files
committed
chore(putout) lint using actions
1 parent c6db3be commit 599d798

6 files changed

Lines changed: 6 additions & 13 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,14 @@ async function promise(a) {
212212
You call `putout --fix index.js` and see that file is changed:
213213

214214
```js
215-
216215
'use strict';
217216

218217
module.exports = async function() {
219218
return await promise();
220-
}
219+
};
221220

222221
async function promise() {
223-
throw Error('x');
222+
throw Error('x');
224223
}
225224
```
226225

@@ -294,7 +293,7 @@ So in case of `src` directory, it will look like:
294293
putout src --disable-all && putout src --enable convert-commonjs-to-esm && putout src --fix
295294
```
296295

297-
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.
296+
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.
298297

299298
☝️*You can always disable what you don't need, so give it a try you wan't regret 🐊.*
300299

docs/putout-script.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 🦎 PutoutScript
22

3-
>**Among the maxims on Lord Naoshige’s wall there was this one: ”Matters of’ great concern should be treated lightly.”
4-
>Master lttei commented, “Matters of small concern should be treated seriously.”**
3+
> **Among the maxims on Lord Naoshige’s wall there was this one: ”Matters of’ great concern should be treated lightly.”
4+
> Master lttei commented, “Matters of small concern should be treated seriously.”**
55
>
66
> **(c) Yamamoto Tsunetomo "Hagakure"**
77

packages/eslint-plugin-putout/lib/array-element-newline/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ It exists because [`array-element-newline`](https://eslint.org/docs/rules/array-
55

66
Part of [`eslint-plugin-putout`](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout#rules).
77

8-
9-
108
## ❌ Example of incorrect code
119

1210
```js

packages/eslint-plugin-putout/lib/for-of-multiple-properties-destructuring/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
This rule aims to shorten destructuring in `for-of` statements, keeping all properties in one line.
44
Part of [**eslint-plugin-putout**](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout#rules).
55

6-
7-
86
## ❌ Example of incorrect code
97

108
```js
@@ -25,4 +23,3 @@ for ({username, password} of users) {
2523
## Options
2624

2725
`maxProperties` - maximum properties count to work with, defaults to **8**.
28-

packages/eslint-plugin-putout/lib/long-properties-destructuring/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ Part of [**eslint-plugin-putout**](https://github.com/coderaiser/putout/tree/mas
66

77
## ❌ Example of incorrect code
88

9-
10-
119
```js
1210
const {isIdentifier} = user;
1311
```

packages/plugin-declare-undefined-variables/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Add `.putout.json` with:
3737
## Rules
3838

3939
Use options:
40+
4041
-`dismiss` for variables you don't want to declare;
4142
-`declarations` to declare variables;
4243

0 commit comments

Comments
 (0)