Tighten line length rule from 120 to 100

This commit is contained in:
Rachel Fenichel
2018-03-19 13:08:47 -07:00
parent d884c7dc85
commit 3f77ceb823
2 changed files with 11 additions and 2 deletions

View File

@@ -25,7 +25,15 @@
}
],
"linebreak-style": ["error", "unix"],
"max-len": ["error", 120, 4],
"max-len": [
"error",
{
"code": 100,
"tabWidth": 4,
"ignoreStrings": true,
"ignoreRegExpLiterals": true
}
],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-unused-vars": ["error", {"args": "after-used", "varsIgnorePattern": "^_"}],
"no-use-before-define": ["error"],

View File

@@ -269,7 +269,8 @@ Blockly.TouchGesture.prototype.handleTouchMove = function(e) {
gestureScale * Blockly.TouchGesture.ZOOM_IN_MULTIPLIER :
gestureScale * Blockly.TouchGesture.ZOOM_OUT_MULTIPLIER;
var workspace = this.startWorkspace_;
var position = Blockly.utils.mouseToSvg(e, workspace.getParentSvg(), workspace.getInverseScreenCTM());
var position = Blockly.utils.mouseToSvg(
e, workspace.getParentSvg(), workspace.getInverseScreenCTM());
workspace.zoom(position.x, position.y, delta);
}
this.previousScale_ = scale;