Update the ESLint dependencies, and also tweak the no-multiple-empty-lines
rules
Since multiple empty lines is virtually unused in the code-base, and the few cases that do exist look like "typos", let's enforce greater consistency here; please see https://eslint.org/docs/rules/no-multiple-empty-lines.
This commit is contained in:
parent
25c7a8c215
commit
2db75a2a3a
@ -124,7 +124,7 @@
|
|||||||
"new-cap": ["error", { "newIsCap": true, "capIsNew": false, }],
|
"new-cap": ["error", { "newIsCap": true, "capIsNew": false, }],
|
||||||
"new-parens": "error",
|
"new-parens": "error",
|
||||||
"no-array-constructor": "error",
|
"no-array-constructor": "error",
|
||||||
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0, "maxBOF": 1, }],
|
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0, "maxBOF": 1, }],
|
||||||
"no-new-object": "error",
|
"no-new-object": "error",
|
||||||
"no-tabs": "error",
|
"no-tabs": "error",
|
||||||
"no-trailing-spaces": ["error", { "skipBlankLines": false, }],
|
"no-trailing-spaces": ["error", { "skipBlankLines": false, }],
|
||||||
|
@ -76,7 +76,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// translate an HTML subtree
|
// translate an HTML subtree
|
||||||
function translateFragment(element) {
|
function translateFragment(element) {
|
||||||
element = element || document.querySelector("html");
|
element = element || document.querySelector("html");
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
"babel-preset-env": "^1.6.0",
|
"babel-preset-env": "^1.6.0",
|
||||||
"core-js": "^2.5.1",
|
"core-js": "^2.5.1",
|
||||||
"escodegen": "^1.9.0",
|
"escodegen": "^1.9.0",
|
||||||
"eslint": "^4.10.0",
|
"eslint": "^4.14.0",
|
||||||
"eslint-plugin-mozilla": "^0.4.9",
|
"eslint-plugin-mozilla": "^0.5.0",
|
||||||
"eslint-plugin-no-unsanitized": "^2.0.1",
|
"eslint-plugin-no-unsanitized": "^2.0.2",
|
||||||
"fancy-log": "^1.3.2",
|
"fancy-log": "^1.3.2",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-rename": "^1.2.2",
|
"gulp-rename": "^1.2.2",
|
||||||
|
@ -96,7 +96,6 @@ var CFFStandardStrings = [
|
|||||||
'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
|
'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
var CFFParser = (function CFFParserClosure() {
|
var CFFParser = (function CFFParserClosure() {
|
||||||
var CharstringValidationData = [
|
var CharstringValidationData = [
|
||||||
null,
|
null,
|
||||||
|
@ -1351,7 +1351,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
textContentItem.textRunBreakAllowed = false;
|
textContentItem.textRunBreakAllowed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
textContentItem.initialized = true;
|
textContentItem.initialized = true;
|
||||||
return textContentItem;
|
return textContentItem;
|
||||||
}
|
}
|
||||||
|
@ -676,7 +676,6 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
create: function FontRendererFactory_create(font, seacAnalysisEnabled) {
|
create: function FontRendererFactory_create(font, seacAnalysisEnabled) {
|
||||||
var data = new Uint8Array(font.data);
|
var data = new Uint8Array(font.data);
|
||||||
|
@ -251,7 +251,6 @@ ShadingIRs.Mesh = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Rasterizing on the main thread since sending/queue large canvases
|
// Rasterizing on the main thread since sending/queue large canvases
|
||||||
// might cause OOM.
|
// might cause OOM.
|
||||||
var temporaryPatternCanvas = createMeshCanvas(bounds, scale, coords,
|
var temporaryPatternCanvas = createMeshCanvas(bounds, scale, coords,
|
||||||
|
@ -219,7 +219,6 @@ var WebGLUtils = (function WebGLUtilsClosure() {
|
|||||||
var texture = createTexture(gl, layer, gl.TEXTURE0);
|
var texture = createTexture(gl, layer, gl.TEXTURE0);
|
||||||
var maskTexture = createTexture(gl, mask, gl.TEXTURE1);
|
var maskTexture = createTexture(gl, mask, gl.TEXTURE1);
|
||||||
|
|
||||||
|
|
||||||
// Create a buffer and put a single clipspace rectangle in
|
// Create a buffer and put a single clipspace rectangle in
|
||||||
// it (2 triangles)
|
// it (2 triangles)
|
||||||
var buffer = gl.createBuffer();
|
var buffer = gl.createBuffer();
|
||||||
|
@ -440,7 +440,6 @@ describe('function', function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
describe('PostScriptCompiler', function() {
|
describe('PostScriptCompiler', function() {
|
||||||
function check(code, domain, range, samples) {
|
function check(code, domain, range, samples) {
|
||||||
var compiler = new PostScriptCompiler();
|
var compiler = new PostScriptCompiler();
|
||||||
|
@ -261,5 +261,4 @@ WebBrowser.create = function (desc) {
|
|||||||
return new WebBrowser(name, path);
|
return new WebBrowser(name, path);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
exports.WebBrowser = WebBrowser;
|
exports.WebBrowser = WebBrowser;
|
||||||
|
@ -200,7 +200,6 @@ PDFPrintService.prototype = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
let print = window.print;
|
let print = window.print;
|
||||||
window.print = function print() {
|
window.print = function print() {
|
||||||
if (activeService) {
|
if (activeService) {
|
||||||
|
Loading…
Reference in New Issue
Block a user