mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
Enable operator-linebreak rule
This commit is contained in:
@@ -67,7 +67,8 @@
|
||||
"no-redeclare": ["off"],
|
||||
"valid-jsdoc": ["error", {"requireReturn": false}],
|
||||
"no-console": ["off"],
|
||||
"no-multi-spaces": ["error", { "ignoreEOLComments": true }]
|
||||
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
|
||||
"operator-linebreak": ["error", "after"]
|
||||
},
|
||||
"env": {
|
||||
"browser": true
|
||||
|
||||
@@ -246,8 +246,8 @@ Blockly.FieldDropdown.prototype.positionMenu_ = function(menu) {
|
||||
|
||||
var menuSize = Blockly.utils.uiMenu.getSize(menu);
|
||||
|
||||
var menuMaxHeightPx = Blockly.FieldDropdown.MAX_MENU_HEIGHT_VH
|
||||
* document.documentElement.clientHeight;
|
||||
var menuMaxHeightPx = Blockly.FieldDropdown.MAX_MENU_HEIGHT_VH *
|
||||
document.documentElement.clientHeight;
|
||||
if (menuSize.height > menuMaxHeightPx) {
|
||||
menuSize.height = menuMaxHeightPx;
|
||||
}
|
||||
|
||||
@@ -405,8 +405,8 @@ Blockly.Trashcan.prototype.animateLid_ = function() {
|
||||
* @private
|
||||
*/
|
||||
Blockly.Trashcan.prototype.setLidAngle_ = function(lidAngle) {
|
||||
var openAtRight = this.workspace_.toolboxPosition == Blockly.TOOLBOX_AT_RIGHT
|
||||
|| (this.workspace_.horizontalLayout && this.workspace_.RTL);
|
||||
var openAtRight = this.workspace_.toolboxPosition == Blockly.TOOLBOX_AT_RIGHT ||
|
||||
(this.workspace_.horizontalLayout && this.workspace_.RTL);
|
||||
this.svgLid_.setAttribute('transform', 'rotate(' +
|
||||
(openAtRight ? -lidAngle : lidAngle) + ',' +
|
||||
(openAtRight ? 4 : this.WIDTH_ - 4) + ',' +
|
||||
|
||||
@@ -7,8 +7,8 @@ suite('Connections', function() {
|
||||
var connections = block.getConnections_(true);
|
||||
for (var i = 0; i < connections.length; i++) {
|
||||
var connection = connections[i];
|
||||
if (connection.type == Blockly.PREVIOUS_STATEMENT
|
||||
|| connection.type == Blockly.OUTPUT_VALUE) {
|
||||
if (connection.type == Blockly.PREVIOUS_STATEMENT ||
|
||||
connection.type == Blockly.OUTPUT_VALUE) {
|
||||
// Only superior connections on inputs get hidden
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user