Skip to content

Commit 04b17fd

Browse files
committed
feature: @putout/eslint-config: no-empty: off
1 parent 52e65bd commit 04b17fd

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

packages/cli-process-file/lib/process-file.spec.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -579,13 +579,6 @@ test('putout: cli: process-file: goldstein: no braces', async (t) => {
579579
line: 1,
580580
},
581581
rule: 'no-undef (eslint)',
582-
}, {
583-
message: 'Empty block statement.',
584-
position: {
585-
column: 12,
586-
line: 1,
587-
},
588-
rule: 'no-empty (eslint)',
589582
}],
590583
};
591584

packages/eslint-config/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const rules = {
3939
'no-unsafe-negation': 'off',
4040
'no-duplicate-case': 'off',
4141
'no-cond-assign': 'off',
42+
'no-empty': 'off',
4243
'no-empty-pattern': 'off',
4344
'no-control-regex': 'off',
4445
'no-useless-rename': 'error',

packages/eslint-config/test/eslint-config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ test('eslint-config: no-unused-labels', async ({comparePlaces}) => {
5858
await comparePlaces('no-unused-labels', []);
5959
});
6060

61+
test('eslint-config: no-empty', async ({comparePlaces}) => {
62+
await comparePlaces('no-empty', []);
63+
});
64+
6165
test('eslint-config: no-delete-var', async ({comparePlaces}) => {
6266
await comparePlaces('no-delete-var', [], {
6367
rules: {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
for (let i = 0; i < length; i++) {}

0 commit comments

Comments
 (0)