mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Add func-call-spacing rule
This commit is contained in:
@@ -54,8 +54,10 @@
|
|||||||
"_comment": "Blockly uses single quotes except for JSON blobs, which must use double quotes.",
|
"_comment": "Blockly uses single quotes except for JSON blobs, which must use double quotes.",
|
||||||
"quotes": ["off"],
|
"quotes": ["off"],
|
||||||
"semi": ["error", "always"],
|
"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"],
|
"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"],
|
"space-infix-ops": ["error"],
|
||||||
"_comment": "Blockly uses 'use strict' in files",
|
"_comment": "Blockly uses 'use strict' in files",
|
||||||
"strict": ["off"],
|
"strict": ["off"],
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
suite ('Angle Fields', function() {
|
suite('Angle Fields', function() {
|
||||||
function assertValue(angleField, expectedValue, opt_expectedText) {
|
function assertValue(angleField, expectedValue, opt_expectedText) {
|
||||||
var actualValue = angleField.getValue();
|
var actualValue = angleField.getValue();
|
||||||
var actualText = angleField.getText();
|
var actualText = angleField.getText();
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
suite ('Colour Fields', function() {
|
suite('Colour Fields', function() {
|
||||||
function assertValue(colourField, expectedValue, expectedText) {
|
function assertValue(colourField, expectedValue, expectedText) {
|
||||||
var actualValue = colourField.getValue();
|
var actualValue = colourField.getValue();
|
||||||
var actualText = colourField.getText();
|
var actualText = colourField.getText();
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
suite ('Date Fields', function() {
|
suite('Date Fields', function() {
|
||||||
function assertValue(dateField, expectedValue) {
|
function assertValue(dateField, expectedValue) {
|
||||||
var actualValue = dateField.getValue();
|
var actualValue = dateField.getValue();
|
||||||
var actualText = dateField.getText();
|
var actualText = dateField.getText();
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
suite ('Dropdown Fields', function() {
|
suite('Dropdown Fields', function() {
|
||||||
function assertValue(dropdownField, expectedValue, expectedText) {
|
function assertValue(dropdownField, expectedValue, expectedText) {
|
||||||
var actualValue = dropdownField.getValue();
|
var actualValue = dropdownField.getValue();
|
||||||
var actualText = dropdownField.getText();
|
var actualText = dropdownField.getText();
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
suite ('Image Fields', function() {
|
suite('Image Fields', function() {
|
||||||
function assertValue(imageField, expectedValue, expectedText) {
|
function assertValue(imageField, expectedValue, expectedText) {
|
||||||
var actualValue = imageField.getValue();
|
var actualValue = imageField.getValue();
|
||||||
var actualText = imageField.getText();
|
var actualText = imageField.getText();
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
suite ('Label Serializable Fields', function() {
|
suite('Label Serializable Fields', function() {
|
||||||
function assertValue(labelField, expectedValue) {
|
function assertValue(labelField, expectedValue) {
|
||||||
var actualValue = labelField.getValue();
|
var actualValue = labelField.getValue();
|
||||||
var actualText = labelField.getText();
|
var actualText = labelField.getText();
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
suite ('Label Fields', function() {
|
suite('Label Fields', function() {
|
||||||
function assertValue(labelField, expectedValue) {
|
function assertValue(labelField, expectedValue) {
|
||||||
var actualValue = labelField.getValue();
|
var actualValue = labelField.getValue();
|
||||||
var actualText = labelField.getText();
|
var actualText = labelField.getText();
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
suite ('Number Fields', function() {
|
suite('Number Fields', function() {
|
||||||
function assertValue(numberField, expectedValue, opt_expectedText) {
|
function assertValue(numberField, expectedValue, opt_expectedText) {
|
||||||
var actualValue = numberField.getValue();
|
var actualValue = numberField.getValue();
|
||||||
var actualText = numberField.getText();
|
var actualText = numberField.getText();
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
suite ('Text Input Fields', function() {
|
suite('Text Input Fields', function() {
|
||||||
function assertValue(textInputField, expectedValue, opt_expectedText) {
|
function assertValue(textInputField, expectedValue, opt_expectedText) {
|
||||||
var actualValue = textInputField.getValue();
|
var actualValue = textInputField.getValue();
|
||||||
var actualText = textInputField.getText();
|
var actualText = textInputField.getText();
|
||||||
|
|||||||
Reference in New Issue
Block a user