1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 07:37:57 +02:00

Update Prettier to version 2.0

Please note that these changes were done automatically, using `gulp lint --fix`.

Given that the major version number was increased, there's a fair number of (primarily whitespace) changes; please see https://prettier.io/blog/2020/03/21/2.0.0.html
In order to reduce the size of these changes somewhat, this patch maintains the old "arrowParens" style for now (once mozilla-central updates Prettier we can simply choose the same formatting, assuming it will differ here).
This commit is contained in:
Jonas Jenwald 2020-04-14 12:28:14 +02:00
parent a4dd081d7b
commit 426945b480
145 changed files with 2005 additions and 2009 deletions

View file

@ -9,13 +9,13 @@ var errors = 0;
var baseDir = path.join(__dirname, "fixtures");
var files = fs
.readdirSync(baseDir)
.filter(function(name) {
.filter(function (name) {
return /-expected\./.test(name);
})
.map(function(name) {
.map(function (name) {
return path.join(baseDir, name);
});
files.forEach(function(expectationFilename) {
files.forEach(function (expectationFilename) {
var inFilename = expectationFilename.replace("-expected", "");
var expectation = fs
.readFileSync(expectationFilename)
@ -24,7 +24,7 @@ files.forEach(function(expectationFilename) {
.replace(/__filename/g, fs.realpathSync(inFilename));
var outLines = [];
var outFilename = function(line) {
var outFilename = function (line) {
outLines.push(line);
};
var defines = {