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 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
/* globals PDFJS */
/* globals PDFJS, Promise */
'use strict'; 'use strict';

2
extensions/chromium/options/options.js

@ -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 See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
/* globals chrome, Promise */ /* globals chrome */
'use strict'; 'use strict';
var storageAreaName = chrome.storage.sync ? 'sync' : 'local'; var storageAreaName = chrome.storage.sync ? 'sync' : 'local';

2
external/builder/builder.js vendored

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

1
external/builder/test.js vendored

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

1
external/builder/test2.js vendored

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

2
external/crlfchecker/crlfchecker.js vendored

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

2
make.js

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

2
src/core/worker.js

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

1
src/display/canvas.js

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

1
src/display/font_loader.js

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

1
src/display/metadata.js

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

1
src/display/text_layer.js

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

2
src/shared/util.js

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

2
test/font/jasmine-boot.js

@ -34,7 +34,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 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. // Modified jasmine's boot.js file to load PDF.js libraries async.

9
test/unit/annotation_layer_spec.js

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

7
test/unit/api_spec.js

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

5
test/unit/cff_parser_spec.js

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

3
test/unit/cmap_spec.js

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

8
test/unit/crypto_spec.js

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

3
test/unit/dom_utils_spec.js

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

4
test/unit/evaluator_spec.js

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

2
test/unit/fonts_spec.js

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

5
test/unit/function_spec.js

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

2
test/unit/jasmine-boot.js

@ -34,7 +34,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 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. // Modified jasmine's boot.js file to load PDF.js libraries async.

2
test/unit/metadata_spec.js

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

2
test/unit/murmurhash3_spec.js

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

2
test/unit/network_spec.js

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

2
test/unit/parser_spec.js

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

3
test/unit/stream_spec.js

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

3
test/unit/type1_parser_spec.js

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

6
test/unit/unicode_spec.js

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

2
test/unit/util_spec.js

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

2
web/preferences.js

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

2
web/viewer.js

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

Loading…
Cancel
Save