Skip to content

Commit 471fffe

Browse files
committed
feature: eslint-plugin-putout: safe: return/remove-last-empty: off
1 parent d427b0f commit 471fffe

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

packages/eslint-plugin-putout/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ Disabled 🐊**Putout** rules:
180180
-[`variables/remove-unreferenced`](https://github.com/coderaiser/putout/tree/v41.0.0/packages/plugin-variables#remove-unreferenced);
181181
-[`remove-useless-arguments`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-arguments#readme);
182182
-[`return/remove-useless`](https://github.com/coderaiser/putout/tree/v38.0.0/packages/plugin-return#remove-useless);
183+
-[`return/remove-last-empty`](https://github.com/coderaiser/putout/tree/v42.0.26/packages/plugin-return#remove-last-empty);
183184
-[`remove-useless-spread`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-useless-spread/#readme);
184185
-[`tape/remove-skip`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-tape#remove-skip);
185186
-[`tape/remove-only`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-tape#remove-only);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function x() {
2+
return;
3+
}

packages/eslint-plugin-putout/test/safe/safe.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ test('eslint-plugin-putout: safe: convert-template-to-string: off', async ({noPr
3434
await noProcess('convert-template-to-string', SAFE);
3535
});
3636

37+
test('eslint-plugin-putout: safe: return-remove-last-empty: off', async ({noProcess}) => {
38+
await noProcess('return-remove-last-empty', SAFE);
39+
});
40+
3741
test('eslint-plugin-putout: safe: convert-const-to-let: on', async ({process}) => {
3842
await process('convert-const-to-let', SAFE);
3943
});

0 commit comments

Comments
 (0)