Browse Source

Remove `globals` that are now unnecessary thanks to the use of various ESLint environments (e.g. Node, ShellJS, Jasmine)

Jonas Jenwald 8 years ago
parent
commit
c850968fa7
  1. 3
      examples/mobile-viewer/viewer.js
  2. 2
      extensions/chromium/options/options.js
  3. 2
      external/builder/builder.js
  4. 1
      external/builder/test.js
  5. 1
      external/builder/test2.js
  6. 2
      external/crlfchecker/crlfchecker.js
  7. 2
      make.js
  8. 2
      src/core/worker.js
  9. 1
      src/display/canvas.js
  10. 1
      src/display/font_loader.js
  11. 1
      src/display/metadata.js
  12. 1
      src/display/text_layer.js
  13. 2
      src/shared/util.js
  14. 2
      test/font/jasmine-boot.js
  15. 9
      test/unit/annotation_layer_spec.js
  16. 7
      test/unit/api_spec.js
  17. 5
      test/unit/cff_parser_spec.js
  18. 3
      test/unit/cmap_spec.js
  19. 8
      test/unit/crypto_spec.js
  20. 3
      test/unit/dom_utils_spec.js
  21. 4
      test/unit/evaluator_spec.js
  22. 2
      test/unit/fonts_spec.js
  23. 5
      test/unit/function_spec.js
  24. 2
      test/unit/jasmine-boot.js
  25. 2
      test/unit/metadata_spec.js
  26. 2
      test/unit/murmurhash3_spec.js
  27. 2
      test/unit/network_spec.js
  28. 2
      test/unit/parser_spec.js
  29. 3
      test/unit/stream_spec.js
  30. 3
      test/unit/type1_parser_spec.js
  31. 6
      test/unit/unicode_spec.js
  32. 2
      test/unit/util_spec.js
  33. 2
      web/preferences.js
  34. 2
      web/viewer.js

3
examples/mobile-viewer/viewer.js

@ -12,8 +12,7 @@ @@ -12,8 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals PDFJS, Promise */
/* globals PDFJS */
'use strict';

2
extensions/chromium/options/options.js

@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/* globals chrome, Promise */
/* globals chrome */
'use strict';
var storageAreaName = chrome.storage.sync ? 'sync' : 'local';

2
external/builder/builder.js vendored

@ -1,5 +1,3 @@ @@ -1,5 +1,3 @@
/* globals cp, ls, test */
'use strict';
var fs = require('fs'),

1
external/builder/test.js vendored

@ -1,4 +1,3 @@ @@ -1,4 +1,3 @@
/* globals cat, cd, echo, ls */
'use strict';
require('shelljs/make');

1
external/builder/test2.js vendored

@ -1,4 +1,3 @@ @@ -1,4 +1,3 @@
/* globals cat, cd, echo, ls */
'use strict';
require('shelljs/make');

2
external/crlfchecker/crlfchecker.js vendored

@ -1,5 +1,3 @@ @@ -1,5 +1,3 @@
/* globals cat, echo, exit, ls */
'use strict';
function checkIfCrlfIsPresent(files) {

2
make.js

@ -13,8 +13,6 @@ @@ -13,8 +13,6 @@
* limitations under the License.
*/
/* eslint-env node, shelljs */
/* globals cat, cd, cp, echo, env, exec, exit, find, ls, mkdir, mv, process, rm,
sed, target, test */
'use strict';

2
src/core/worker.js

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals NetworkManager, module */
/* globals module */
'use strict';

1
src/display/canvas.js

@ -12,7 +12,6 @@ @@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals ImageData */
'use strict';

1
src/display/font_loader.js

@ -12,7 +12,6 @@ @@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals FontFace */
'use strict';

1
src/display/metadata.js

@ -12,7 +12,6 @@ @@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals Document */
'use strict';

1
src/display/text_layer.js

@ -12,7 +12,6 @@ @@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals WeakMap */
'use strict';

2
src/shared/util.js

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals URL, global */
/* globals global */
'use strict';

2
test/font/jasmine-boot.js

@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*globals jasmineRequire, jasmine, TestReporter */
/* globals jasmineRequire, TestReporter */
// Modified jasmine's boot.js file to load PDF.js libraries async.

9
test/unit/annotation_layer_spec.js

@ -1,8 +1,7 @@ @@ -1,8 +1,7 @@
/* globals expect, it, describe, Dict, Name, Annotation, AnnotationBorderStyle,
AnnotationBorderStyleType, AnnotationType, AnnotationFlag, PDFJS,
beforeEach, afterEach, stringToBytes, AnnotationFactory, Ref, isRef,
beforeAll, afterAll, AnnotationFieldFlag, stringToUTF8String,
StringStream, Lexer, Parser */
/* globals isRef, AnnotationFactory, Dict, Name, Ref, AnnotationType,
AnnotationFlag, Annotation, AnnotationBorderStyle,
AnnotationBorderStyleType, StringStream, Lexer, Parser,
stringToUTF8String, AnnotationFieldFlag, PDFJS, stringToBytes */
'use strict';

7
test/unit/api_spec.js

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
/* globals PDFJS, expect, it, describe, Promise, beforeAll,
InvalidPDFException, MissingPDFException, StreamType, FontType,
PDFDocumentProxy, PasswordException, PasswordResponses, afterAll,
PDFPageProxy, createPromiseCapability, afterEach */
/* globals PDFJS, createPromiseCapability, PDFDocumentProxy,
InvalidPDFException, MissingPDFException, PasswordResponses,
PasswordException, PDFPageProxy, StreamType, FontType */
'use strict';

5
test/unit/cff_parser_spec.js

@ -1,6 +1,5 @@ @@ -1,6 +1,5 @@
/* globals describe, it, expect, beforeAll, afterAll, beforeEach, afterEach,
Stream, CFFParser, SEAC_ANALYSIS_ENABLED, CFFIndex, CFFStrings,
CFFCompiler */
/* globals Stream, CFFParser, SEAC_ANALYSIS_ENABLED, CFFIndex, CFFParser,
CFFStrings, CFFCompiler */
'use strict';

3
test/unit/cmap_spec.js

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
/* globals expect, it, describe, StringStream, CMapFactory, Name, CMap,
IdentityCMap */
/* globals StringStream, CMapFactory, CMap, IdentityCMap, Name */
'use strict';

8
test/unit/crypto_spec.js

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
/* globals expect, it, describe, calculateMD5, ARCFourCipher, Name, beforeAll,
CipherTransformFactory, calculateSHA256, calculateSHA384, afterAll,
calculateSHA512, AES128Cipher, AES256Cipher, PDF17, PDF20, Dict,
PasswordException, PasswordResponses, stringToBytes */
/* globals stringToBytes, calculateMD5, ARCFourCipher, calculateSHA256,
calculateSHA384, calculateSHA512, AES128Cipher, AES256Cipher, PDF17,
PDF20, Dict, CipherTransformFactory, PasswordException,
PasswordResponses, Name */
'use strict';

3
test/unit/dom_utils_spec.js

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
/* globals expect, it, describe, PDFJS, isExternalLinkTargetSet, LinkTarget,
getFilenameFromUrl, beforeAll, afterAll */
/* globals getFilenameFromUrl, PDFJS, LinkTarget, isExternalLinkTargetSet */
'use strict';

4
test/unit/evaluator_spec.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/* globals expect, it, describe, PartialEvaluator, StringStream, OPS,
OperatorList, Dict, Name, Stream, WorkerTask */
/* globals OperatorList, WorkerTask, PartialEvaluator, StringStream, OPS, Dict,
Name, Stream */
'use strict';

2
test/unit/fonts_spec.js

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/* globals describe, it, expect, checkProblematicCharRanges */
/* globals checkProblematicCharRanges */
'use strict';

5
test/unit/function_spec.js

@ -1,6 +1,5 @@ @@ -1,6 +1,5 @@
/* globals jasmine, expect, it, describe, beforeEach, isArray, StringStream,
PostScriptParser, PostScriptLexer, PostScriptEvaluator,
PostScriptCompiler*/
/* globals isArray, StringStream, PostScriptParser, PostScriptLexer,
PostScriptEvaluator, PostScriptCompiler */
'use strict';

2
test/unit/jasmine-boot.js

@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*globals jasmineRequire, jasmine, TestReporter */
/* globals jasmineRequire, TestReporter */
// Modified jasmine's boot.js file to load PDF.js libraries async.

2
test/unit/metadata_spec.js

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/* globals expect, it, describe, Metadata */
/* globals Metadata */
'use strict';

2
test/unit/murmurhash3_spec.js

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/* globals jasmine, expect, it, describe, MurmurHash3_64 */
/* globals MurmurHash3_64 */
'use strict';

2
test/unit/network_spec.js

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/* globals expect, it, describe, PDFNetworkStream */
/* globals PDFNetworkStream */
'use strict';

2
test/unit/parser_spec.js

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/* globals expect, it, describe, StringStream, Lexer, Name, Linearization */
/* globals StringStream, Lexer, Name, Linearization */
'use strict';

3
test/unit/stream_spec.js

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
/* globals jasmine, expect, it, describe, beforeEach, Stream, PredictorStream,
Dict */
/* globals Stream, PredictorStream, Dict */
'use strict';

3
test/unit/type1_parser_spec.js

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
/* globals describe, it, expect, StringStream, Type1Parser,
SEAC_ANALYSIS_ENABLED */
/* globals StringStream, Type1Parser, SEAC_ANALYSIS_ENABLED */
'use strict';

6
test/unit/unicode_spec.js

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/* globals describe, it, expect, beforeAll, afterAll, mapSpecialUnicodeValues,
getUnicodeForGlyph, getGlyphsUnicode, getDingbatsGlyphsUnicode,
getUnicodeRangeFor, getNormalizedUnicodes, reverseIfRtl */
/* globals mapSpecialUnicodeValues, getUnicodeForGlyph, getGlyphsUnicode,
getDingbatsGlyphsUnicode, getUnicodeRangeFor, getNormalizedUnicodes,
reverseIfRtl */
'use strict';

2
test/unit/util_spec.js

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/* globals describe, it, expect, stringToPDFString, removeNullCharacters */
/* globals stringToPDFString, removeNullCharacters */
'use strict';

2
web/preferences.js

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals DEFAULT_PREFERENCES, chrome */
/* globals DEFAULT_PREFERENCES */
'use strict';

2
web/viewer.js

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*globals require, chrome */
/* globals chrome */
'use strict';

Loading…
Cancel
Save