eslint-plugin-putout 29.1.0 → 29.1.1
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.
package/README.md
CHANGED
|
@@ -149,7 +149,7 @@ Then configure the rules you want to use under the rules section.
|
|
|
149
149
|
- ✅ [Remove empty newline after import](/packages/eslint-plugin-putout/lib/remove-empty-newline-after-import#readme)
|
|
150
150
|
- ✅ [Remove empty specifiers](/packages/eslint-plugin-putout/lib/remove-empty-specifiers#readme)
|
|
151
151
|
- ✅ [Objects braces inside array](/packages/eslint-plugin-putout/lib/objects-braces-inside-array#readme)
|
|
152
|
-
- ✅ [Nonblock statement body newline](/packages/eslint-plugin-putout/lib/
|
|
152
|
+
- ✅ [Nonblock statement body newline](/packages/eslint-plugin-putout/lib/nonblock-statement-body-newline#readme)
|
|
153
153
|
|
|
154
154
|
### Safe mode
|
|
155
155
|
|
|
@@ -28,7 +28,7 @@ module.exports.filter = ({node, text}) => {
|
|
|
28
28
|
if (textPeace.length < 60)
|
|
29
29
|
return false;
|
|
30
30
|
|
|
31
|
-
const isOpenBracket =
|
|
31
|
+
const isOpenBracket = textPeace.startsWith('(\n');
|
|
32
32
|
const isCloseBracket = /\n\s*\)$/.test(textPeace);
|
|
33
33
|
|
|
34
34
|
return !(isOpenBracket && isCloseBracket);
|