Skip to content

Commit dffcc06

Browse files
committed
feature: @putout/plugin-apply-destructuring: array: second
1 parent 3980816 commit dffcc06

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
[, volume] = current;
2+
const [, options] = rules.aleman;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
volume = current[1];
2+
const options = rules.aleman[1];

packages/plugin-apply-destructuring/lib/array/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const exclude = () => [
1111
export const replace = () => ({
1212
'__a = __b[0]': '[__a] = __b',
1313
'__a = __b[1]': '[, __a] = __b',
14+
'const __a = __b[1]': 'const [, __a] = __b',
1415
'const __a = __b[0]': convertTo('const [__a] = __b'),
1516
'let __a = __b[0]': convertTo('let [__a] = __b'),
1617
});

0 commit comments

Comments
 (0)