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

This commit is contained in:
Jonas Jenwald 2016-12-15 18:10:43 +01:00
parent 2f3805efbc
commit c850968fa7
34 changed files with 38 additions and 59 deletions

View File

@ -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';

View File

@ -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';

View File

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

View File

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

View File

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

View File

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

View File

@ -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';

View File

@ -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';

View File

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

View File

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

View File

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

View File

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

View File

@ -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';

View File

@ -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.

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

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

View File

@ -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';

View File

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

View File

@ -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';

View File

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

View File

@ -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';

View File

@ -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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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';

View File

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

View File

@ -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';

View File

@ -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';