From afd2b0945301a8314907db9b9e169c2cfedf3e01 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 31 Jul 2019 09:43:21 -0700 Subject: [PATCH] Add func-call-spacing rule --- .eslintrc.json | 4 +++- tests/mocha/field_angle_test.js | 2 +- tests/mocha/field_colour_test.js | 2 +- tests/mocha/field_date_test.js | 2 +- tests/mocha/field_dropdown_test.js | 2 +- tests/mocha/field_image_test.js | 2 +- tests/mocha/field_label_serializable_test.js | 2 +- tests/mocha/field_label_test.js | 2 +- tests/mocha/field_number_test.js | 2 +- tests/mocha/field_textinput_test.js | 2 +- 10 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 84c38bbda..622b72d03 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -54,8 +54,10 @@ "_comment": "Blockly uses single quotes except for JSON blobs, which must use double quotes.", "quotes": ["off"], "semi": ["error", "always"], - "_comment": "Blockly doesn't have space before function paren", + "_comment": "Blockly doesn't have space before function paren when defining functions", "space-before-function-paren": ["error", "never"], + "_comment": "Blocklydoesn't have space before function paren when calling functions", + "func-call-spacing": ["error", "never"], "space-infix-ops": ["error"], "_comment": "Blockly uses 'use strict' in files", "strict": ["off"], diff --git a/tests/mocha/field_angle_test.js b/tests/mocha/field_angle_test.js index 9a8252834..fee8f813e 100644 --- a/tests/mocha/field_angle_test.js +++ b/tests/mocha/field_angle_test.js @@ -18,7 +18,7 @@ * limitations under the License. */ -suite ('Angle Fields', function() { +suite('Angle Fields', function() { function assertValue(angleField, expectedValue, opt_expectedText) { var actualValue = angleField.getValue(); var actualText = angleField.getText(); diff --git a/tests/mocha/field_colour_test.js b/tests/mocha/field_colour_test.js index b3c10d954..39ef4c631 100644 --- a/tests/mocha/field_colour_test.js +++ b/tests/mocha/field_colour_test.js @@ -18,7 +18,7 @@ * limitations under the License. */ -suite ('Colour Fields', function() { +suite('Colour Fields', function() { function assertValue(colourField, expectedValue, expectedText) { var actualValue = colourField.getValue(); var actualText = colourField.getText(); diff --git a/tests/mocha/field_date_test.js b/tests/mocha/field_date_test.js index 326a6eb86..05620e95b 100644 --- a/tests/mocha/field_date_test.js +++ b/tests/mocha/field_date_test.js @@ -18,7 +18,7 @@ * limitations under the License. */ -suite ('Date Fields', function() { +suite('Date Fields', function() { function assertValue(dateField, expectedValue) { var actualValue = dateField.getValue(); var actualText = dateField.getText(); diff --git a/tests/mocha/field_dropdown_test.js b/tests/mocha/field_dropdown_test.js index aec3de6de..c7499fd26 100644 --- a/tests/mocha/field_dropdown_test.js +++ b/tests/mocha/field_dropdown_test.js @@ -18,7 +18,7 @@ * limitations under the License. */ -suite ('Dropdown Fields', function() { +suite('Dropdown Fields', function() { function assertValue(dropdownField, expectedValue, expectedText) { var actualValue = dropdownField.getValue(); var actualText = dropdownField.getText(); diff --git a/tests/mocha/field_image_test.js b/tests/mocha/field_image_test.js index c1c41b2a1..e7a317cbe 100644 --- a/tests/mocha/field_image_test.js +++ b/tests/mocha/field_image_test.js @@ -18,7 +18,7 @@ * limitations under the License. */ -suite ('Image Fields', function() { +suite('Image Fields', function() { function assertValue(imageField, expectedValue, expectedText) { var actualValue = imageField.getValue(); var actualText = imageField.getText(); diff --git a/tests/mocha/field_label_serializable_test.js b/tests/mocha/field_label_serializable_test.js index 2b508dd63..09659af1a 100644 --- a/tests/mocha/field_label_serializable_test.js +++ b/tests/mocha/field_label_serializable_test.js @@ -18,7 +18,7 @@ * limitations under the License. */ -suite ('Label Serializable Fields', function() { +suite('Label Serializable Fields', function() { function assertValue(labelField, expectedValue) { var actualValue = labelField.getValue(); var actualText = labelField.getText(); diff --git a/tests/mocha/field_label_test.js b/tests/mocha/field_label_test.js index 1f9b8d0f6..8cba0f472 100644 --- a/tests/mocha/field_label_test.js +++ b/tests/mocha/field_label_test.js @@ -18,7 +18,7 @@ * limitations under the License. */ -suite ('Label Fields', function() { +suite('Label Fields', function() { function assertValue(labelField, expectedValue) { var actualValue = labelField.getValue(); var actualText = labelField.getText(); diff --git a/tests/mocha/field_number_test.js b/tests/mocha/field_number_test.js index 781cf9bfa..d78b5e29c 100644 --- a/tests/mocha/field_number_test.js +++ b/tests/mocha/field_number_test.js @@ -18,7 +18,7 @@ * limitations under the License. */ -suite ('Number Fields', function() { +suite('Number Fields', function() { function assertValue(numberField, expectedValue, opt_expectedText) { var actualValue = numberField.getValue(); var actualText = numberField.getText(); diff --git a/tests/mocha/field_textinput_test.js b/tests/mocha/field_textinput_test.js index 9b4e943be..27855a90e 100644 --- a/tests/mocha/field_textinput_test.js +++ b/tests/mocha/field_textinput_test.js @@ -18,7 +18,7 @@ * limitations under the License. */ -suite ('Text Input Fields', function() { +suite('Text Input Fields', function() { function assertValue(textInputField, expectedValue, opt_expectedText) { var actualValue = textInputField.getValue(); var actualText = textInputField.getText();