Skip to content

Commit 689568a

Browse files
committed
feature: @putout/eslint-config: no-useless-assignment: off
1 parent a4d8d56 commit 689568a

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

packages/eslint-config/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const rules = {
99
'always',
1010
],
1111
'dot-notation': 'off',
12+
'no-useless-assignment': 'off',
1213
'no-unassigned-vars': 'off',
1314
'no-global-assign': 'off',
1415
'no-debugger': 'off',

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,7 @@ test('eslint-config: no-unused-vars', async ({comparePlaces}) => {
121121
test('eslint-config: no-unassigned-vars', async ({comparePlaces}) => {
122122
await comparePlaces('no-unassigned-vars', []);
123123
});
124+
125+
test('eslint-config: no-useless-assignment', async ({comparePlaces}) => {
126+
await comparePlaces('no-useless-assignment', []);
127+
});
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
let a = 3;
2+
--a;

0 commit comments

Comments
 (0)