eslint-plugin-putout 15.0.0 → 15.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.
@@ -7,12 +7,18 @@ Part of [**eslint-plugin-putout**](https://github.com/coderaiser/putout/tree/mas
7
7
  ## ❌ Example of incorrect code
8
8
 
9
9
  ```ts
10
- const user = {name};
10
+ const user = {
11
+ name,
12
+ };
11
13
 
12
- module.exports = {lint: 'putout lint'};
14
+ module.exports = {
15
+ lint: 'putout lint',
16
+ };
13
17
 
14
18
  type User = {name: string};
15
- interface Place {message: string}
19
+ interface Place {
20
+ message: string
21
+ }
16
22
  ```
17
23
 
18
24
  ## ✅ Example of correct code
@@ -57,6 +57,7 @@ module.exports.fix = ({text}) => {
57
57
  return text
58
58
  .replace(/,/g, ',\n ')
59
59
  .replace(/{/g, '{\n ')
60
- .replace(/}/g, '\n}');
60
+ .replace(/}/g, '\n}')
61
+ .replace(/\n(\s+)?\n/g, '\n');
61
62
  };
62
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-putout",
3
- "version": "15.0.0",
3
+ "version": "15.1.0",
4
4
  "type": "commonjs",
5
5
  "description": "ESLint plugin for 🐊Putout",
6
6
  "release": false,