mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +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:
parent
00d67371ec
commit
7560f12a17
21 changed files with 99 additions and 85 deletions
|
@ -19,9 +19,9 @@ import { Dict } from '../../src/core/primitives';
|
|||
describe('stream', function() {
|
||||
beforeEach(function() {
|
||||
jasmine.addMatchers({
|
||||
toMatchTypedArray: function(util, customEqualityTesters) {
|
||||
toMatchTypedArray(util, customEqualityTesters) {
|
||||
return {
|
||||
compare: function (actual, expected) {
|
||||
compare(actual, expected) {
|
||||
var result = {};
|
||||
if (actual.length !== expected.length) {
|
||||
result.pass = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue