We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceca8d5 commit 011fa27Copy full SHA for 011fa27
.eslintrc
@@ -11,7 +11,7 @@
11
},
12
"rules": {
13
"array-bracket-newline": "off",
14
- "array-bracket-spacing": "off",
+ "array-bracket-spacing": ["error", "never"],
15
"complexity": "off",
16
"func-style": ["error", "declaration"],
17
"no-magic-numbers": "off",
example/array.js
@@ -7,9 +7,9 @@ test('array', function (t) {
7
t.plan(5);
8
9
var src = '(' + function () {
10
- var xs = [ 1, 2, [ 3, 4 ] ];
- var ys = [ 5, 6 ];
- g([ xs, ys ]);
+ var xs = [1, 2, [3, 4]];
+ var ys = [5, 6];
+ g([xs, ys]);
} + ')()';
var output = falafel(src, function (node) {
@@ -22,7 +22,7 @@ test('array', function (t) {
22
[3, 4],
23
[1, 2, [3, 4]],
24
[5, 6],
25
- [[ 1, 2, [3, 4]], [5, 6]]
+ [[1, 2, [3, 4]], [5, 6]]
26
];
27
28
Function('fn', 'g', String(output))(
@@ -31,7 +31,7 @@ test('array', function (t) {
31
return xs;
32
33
function (xs) {
34
- t.same(xs, [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]);
+ t.same(xs, [[1, 2, [3, 4]], [5, 6]]);
35
}
36
);
37
});
example/fail.js
@@ -19,10 +19,10 @@ test('array', function (t) {
19
20
21
var arrays = [
- [ 3, 4 ],
- [ 1, 2, [ 3, 4 ] ],
- [ 5, 6 ],
- [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
+ [3, 4],
+ [1, 2, [3, 4]],
+ [5, 6],
- t.same(xs, [ [ 1, 2, [ 3, 4444 ] ], [ 5, 6 ] ]);
+ t.same(xs, [[1, 2, [3, 4444]], [5, 6]]);
example/nested.js
@@ -9,7 +9,7 @@ test('nested array test', function (t) {
var xs = [1, 2, [3, 4]];
var ys = [5, 6];
example/nested_fail.js
@@ -7,9 +7,9 @@ test('nested array test', function (t) {
@@ -28,10 +28,10 @@ test('nested array test', function (t) {
29
30
@@ -40,7 +40,7 @@ test('nested array test', function (t) {
40
41
42
43
44
45
46
example/too_many_fail.js
@@ -9,7 +9,7 @@ test('array', function (t) {
0 commit comments