eslint-plugin-putout 17.0.0 → 17.0.2

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.
@@ -14,7 +14,7 @@ const regExp = /^;?\n( +)?\n( +)?/;
14
14
  module.exports.category = 'layout';
15
15
  module.exports.report = () => 'Add newline after function call';
16
16
 
17
- module.exports.filter = ({text, node, getText, getCommentsAfter, getSpacesAfterNode}) => {
17
+ module.exports.filter = ({node, getCommentsAfter, getSpacesAfterNode}) => {
18
18
  if (!isExpressionStatement(node.parent))
19
19
  return false;
20
20
 
@@ -32,7 +32,7 @@ module.exports.filter = ({text, node, getText, getCommentsAfter, getSpacesAfterN
32
32
  if (n < 3)
33
33
  return false;
34
34
 
35
- const spaces = getSpacesAfterNode(node, {text});
35
+ const spaces = getSpacesAfterNode(node);
36
36
 
37
37
  if (regExp.test(spaces))
38
38
  return false;
@@ -60,7 +60,7 @@ module.exports.filter = ({text, node, getText, getCommentsAfter, getSpacesAfterN
60
60
  if (isArrayExpression(init) && init.elements.length)
61
61
  return true;
62
62
 
63
- const spacesAfterNext = getSpacesAfterNode(next, {getText});
63
+ const spacesAfterNext = getSpacesAfterNode(next);
64
64
 
65
65
  if (regExp.test(spacesAfterNext))
66
66
  break;
@@ -68,7 +68,7 @@ module.exports.filter = ({text, node, getText, getCommentsAfter, getSpacesAfterN
68
68
  if (!prev)
69
69
  return true;
70
70
 
71
- const spacesAfterPrev = getSpacesAfterNode(prev, {getText});
71
+ const spacesAfterPrev = getSpacesAfterNode(prev);
72
72
  return !regExp.test(spacesAfterPrev);
73
73
  }
74
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-putout",
3
- "version": "17.0.0",
3
+ "version": "17.0.2",
4
4
  "type": "commonjs",
5
5
  "description": "ESLint plugin for 🐊Putout",
6
6
  "release": false,
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "peerDependencies": {
74
74
  "eslint": ">=8.0.0",
75
- "putout": ">=26"
75
+ "putout": ">=29"
76
76
  },
77
77
  "license": "MIT",
78
78
  "publishConfig": {