mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
chore: fix more lint (#5700)
* chore: fix 918 violations of comma-dangle rule * chore: fix 2 violations of comma-spacing * chore: fix 13 violations of padded-blocks * chore: fix 50 violations of block-spacing * chore: fix one violation of semi-spacing * chore: fix 4 violations of space-before-blocks * chore: fix 38 violations of object-curly-spacing * chore: fix 30 violations of key-spacing * chore: fix 3 violations of quote-props * chore: fix 5 violations of arrow-parens * chore: fix 8 violations of no-tabs * chore: allow uncommented helper functions in mocha tests * chore: fix several more lint errors * chore: tweak eslint configuration in core and tests * chore: rebuild for tests
This commit is contained in:
@@ -82,7 +82,7 @@ suite('Block JSON initialization', function() {
|
||||
|
||||
test('Strings to labels', function() {
|
||||
this.assertInterpolation(
|
||||
['test1', 'test2', 'test3', { 'type': 'input_dummy'}],
|
||||
['test1', 'test2', 'test3', {'type': 'input_dummy'}],
|
||||
[],
|
||||
undefined,
|
||||
[
|
||||
@@ -100,13 +100,13 @@ suite('Block JSON initialization', function() {
|
||||
},
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
}
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
test('Ignore empty strings', function() {
|
||||
this.assertInterpolation(
|
||||
['test1', '', ' ', { 'type': 'input_dummy'}],
|
||||
['test1', '', ' ', {'type': 'input_dummy'}],
|
||||
[],
|
||||
undefined,
|
||||
[
|
||||
@@ -116,13 +116,13 @@ suite('Block JSON initialization', function() {
|
||||
},
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
}
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
test('Insert args', function() {
|
||||
this.assertInterpolation(
|
||||
[1, 2, 3, { 'type': 'input_dummy'}],
|
||||
[1, 2, 3, {'type': 'input_dummy'}],
|
||||
[
|
||||
{
|
||||
'type': 'field_number',
|
||||
@@ -153,13 +153,13 @@ suite('Block JSON initialization', function() {
|
||||
},
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
}
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
test('String args to labels', function() {
|
||||
this.assertInterpolation(
|
||||
[1, 2, 3, { 'type': 'input_dummy'}],
|
||||
[1, 2, 3, {'type': 'input_dummy'}],
|
||||
['test1', 'test2', 'test3'],
|
||||
undefined,
|
||||
[
|
||||
@@ -177,13 +177,13 @@ suite('Block JSON initialization', function() {
|
||||
},
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
}
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
test('Ignore empty string args', function() {
|
||||
this.assertInterpolation(
|
||||
[1, 2, 3, { 'type': 'input_dummy'}],
|
||||
[1, 2, 3, {'type': 'input_dummy'}],
|
||||
['test1', ' ', ' '],
|
||||
undefined,
|
||||
[
|
||||
@@ -193,7 +193,7 @@ suite('Block JSON initialization', function() {
|
||||
},
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
}
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -217,7 +217,7 @@ suite('Block JSON initialization', function() {
|
||||
},
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
}
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -226,7 +226,7 @@ suite('Block JSON initialization', function() {
|
||||
[
|
||||
{
|
||||
'type': 'no_field_prefix_field',
|
||||
}
|
||||
},
|
||||
],
|
||||
[],
|
||||
undefined,
|
||||
@@ -236,7 +236,7 @@ suite('Block JSON initialization', function() {
|
||||
},
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
}
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -245,7 +245,7 @@ suite('Block JSON initialization', function() {
|
||||
[
|
||||
{
|
||||
'type': 'input_prefix_field',
|
||||
}
|
||||
},
|
||||
],
|
||||
[],
|
||||
undefined,
|
||||
@@ -255,7 +255,7 @@ suite('Block JSON initialization', function() {
|
||||
},
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
}
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -280,7 +280,7 @@ suite('Block JSON initialization', function() {
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
'align': 'CENTER',
|
||||
}
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
@@ -361,7 +361,7 @@ suite('Block JSON initialization', function() {
|
||||
'type': 'field_undefined',
|
||||
'alt': {
|
||||
'type': 'field_number',
|
||||
'name': 'FIELDNAME'
|
||||
'name': 'FIELDNAME',
|
||||
},
|
||||
}, 'field_number');
|
||||
});
|
||||
@@ -398,7 +398,7 @@ suite('Block JSON initialization', function() {
|
||||
'type': 'field_undefined5',
|
||||
'alt': {
|
||||
'type': 'field_number',
|
||||
'name': 'FIELDNAME'
|
||||
'name': 'FIELDNAME',
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -409,7 +409,7 @@ suite('Block JSON initialization', function() {
|
||||
|
||||
test('No alt', function() {
|
||||
this.assertField({
|
||||
'type': 'field_undefined'
|
||||
'type': 'field_undefined',
|
||||
}, null);
|
||||
});
|
||||
|
||||
@@ -418,7 +418,7 @@ suite('Block JSON initialization', function() {
|
||||
'type': 'field_undefined',
|
||||
'alt': {
|
||||
'type': 'field_undefined',
|
||||
}
|
||||
},
|
||||
}, null);
|
||||
});
|
||||
|
||||
@@ -524,7 +524,7 @@ suite('Block JSON initialization', function() {
|
||||
this.assertInput(
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
'check': 'Integer'
|
||||
'check': 'Integer',
|
||||
},
|
||||
'input_dummy',
|
||||
'Integer');
|
||||
@@ -534,7 +534,7 @@ suite('Block JSON initialization', function() {
|
||||
this.assertInput(
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
'check': ['Integer', 'Number']
|
||||
'check': ['Integer', 'Number'],
|
||||
},
|
||||
'input_dummy',
|
||||
['Integer', 'Number']);
|
||||
@@ -544,7 +544,7 @@ suite('Block JSON initialization', function() {
|
||||
this.assertInput(
|
||||
{
|
||||
'type': 'input_dummy',
|
||||
'check': ''
|
||||
'check': '',
|
||||
},
|
||||
'input_dummy');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user