mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Tighten line length rule from 120 to 100
This commit is contained in:
10
.eslintrc
10
.eslintrc
@@ -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"],
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user