1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Enable the object-shorthand ESLint rule

Please see http://eslint.org/docs/rules/object-shorthand.

Unfortunately, based on commit 9276d1dcd9, it seems that we still need to maintain compatibility with old Node.js versions, hence certain files/directories that are executed in Node.js are currently exempt from this rule.

Furthermore, since the files specific to the Chromium extension are not run through Babel, the `/extensions/chromium/` directory is also exempt from this rule.
This commit is contained in:
Jonas Jenwald 2017-04-28 13:40:47 +02:00
parent 00d67371ec
commit 7560f12a17
21 changed files with 99 additions and 85 deletions

View file

@ -24,13 +24,13 @@ var TestReporter = function(browser, appPath) {
}
function sendInfo(message) {
send('/info', {message: message});
send('/info', { message, });
}
function sendResult(status, description, error) {
var message = {
status: status,
description: description
status,
description,
};
if (typeof error !== 'undefined') {
message['error'] = error;