Skip to content

Commit 001ec7b

Browse files
committed
chore: lint
1 parent ea84745 commit 001ec7b

13 files changed

Lines changed: 29 additions & 31 deletions

File tree

packages/plugin-eslint/lib/declare/fixture/eslint-flat-fix.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ matchToFlatDir('./hello');
88
matchToFlat(config);
99
mergeESLintConfigs(['./packages', './rules']);
1010

11-
export default createESLintConfig([safeAlign]);
11+
export default createESLintConfig([
12+
safeAlign,
13+
]);

packages/plugin-for-of/lib/reduce/fixture/reduce-fix.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ const reduceRight2 = [1, 2].reduceRight((a, b) => a + b, 1);
2727

2828
// member expression: .concat();
2929

30-
const array1 = [
31-
[0, 1],
32-
[2, 3],
33-
[4, 5],
34-
].reduceRight((accumulator, currentValue) => accumulator.concat(currentValue));
30+
const array1 = [[0, 1], [2, 3], [4, 5]].reduceRight((accumulator, currentValue) => accumulator.concat(currentValue));
3531

3632
// binary operation: +
3733
const sum1 = [1, 2, 3].reduce((a, b) => a + b);

packages/plugin-for-of/test/fixture/reduce-fix.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ const reduceRight2 = [1, 2].reduceRight((a, b) => a + b, 1);
2727

2828
// member expression: .concat();
2929

30-
const array1 = [
31-
[0, 1],
32-
[2, 3],
33-
[4, 5],
34-
].reduceRight((accumulator, currentValue) => accumulator.concat(currentValue));
30+
const array1 = [[0, 1], [2, 3], [4, 5]].reduceRight((accumulator, currentValue) => accumulator.concat(currentValue));
3531

3632
// binary operation: +
3733
const sum1 = [1, 2, 3].reduce((a, b) => a + b);

packages/plugin-minify/lib/merge-variables/fixture/duplicate-fix.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ function f(e) {
2020
}
2121

2222
function h(e) {
23-
return [
24-
e,
25-
a({}).equals,
26-
];
23+
return [e, a({}).equals];
2724
}
2825

2926
function i() {

packages/plugin-minify/lib/merge-variables/fixture/used-below-fix.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ function setHydrateContext(e) {
2222
var Owner = null;
2323

2424
function createSignal(e) {
25-
return [
26-
e,
27-
assign({}).equals,
28-
];
25+
return [e, assign({}).equals];
2926
}
3027

3128
function startTransition() {

packages/plugin-nodejs/lib/declare-after-require/fixture/putout-fix.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ test('plugin-declare-after-require: transform: removed', (t) => {
66
t.transform('removed', {
77
remove: {
88
report: () => {},
9-
include: () => ['const a = 5'],
9+
include: () => [
10+
'const a = 5',
11+
],
1012
fix: (path) => {
1113
remove(path);
1214
},

packages/plugin-putout/lib/move-require-on-top-level/fixture/not-require.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ test('plugin-declare-after-require: transform: removed', (t) => {
22
t.transform('removed', {
33
remove: {
44
report: () => {},
5-
include: () => ['const a = 5'],
5+
include: () => [
6+
'const a = 5',
7+
],
68
fix: (path) => {
79
path.remove(path);
810
},
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export const report = () => '';
22
export const fix = () => {};
3-
export const include = () => ['JSXElement'];
3+
export const include = () => [
4+
'JSXElement',
5+
];
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export const report = () => '';
22
export const fix = () => {};
3-
export let include = () => ['JSXElement'];
3+
export let include = () => [
4+
'JSXElement',
5+
];
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export const report = () => '';
22
export const fix = () => {};
3-
export var include = () => ['JSXElement'];
3+
export var include = () => [
4+
'JSXElement',
5+
];

0 commit comments

Comments
 (0)