Remove globals
that are now unnecessary thanks to the use of various ESLint environments (e.g. Node, ShellJS, Jasmine)
This commit is contained in:
parent
2f3805efbc
commit
c850968fa7
@ -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';
|
||||||
|
|
||||||
|
@ -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
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
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
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
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
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';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
/* globals expect, it, describe, StringStream, CMapFactory, Name, CMap,
|
/* globals StringStream, CMapFactory, CMap, IdentityCMap, Name */
|
||||||
IdentityCMap */
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
/* globals expect, it, describe, PDFJS, isExternalLinkTargetSet, LinkTarget,
|
/* globals getFilenameFromUrl, PDFJS, LinkTarget, isExternalLinkTargetSet */
|
||||||
getFilenameFromUrl, beforeAll, afterAll */
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* globals describe, it, expect, checkProblematicCharRanges */
|
/* globals checkProblematicCharRanges */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* globals expect, it, describe, Metadata */
|
/* globals Metadata */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* globals jasmine, expect, it, describe, MurmurHash3_64 */
|
/* globals MurmurHash3_64 */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* globals expect, it, describe, PDFNetworkStream */
|
/* globals PDFNetworkStream */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* globals expect, it, describe, StringStream, Lexer, Name, Linearization */
|
/* globals StringStream, Lexer, Name, Linearization */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
/* globals jasmine, expect, it, describe, beforeEach, Stream, PredictorStream,
|
/* globals Stream, PredictorStream, Dict */
|
||||||
Dict */
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
/* globals describe, it, expect, StringStream, Type1Parser,
|
/* globals StringStream, Type1Parser, SEAC_ANALYSIS_ENABLED */
|
||||||
SEAC_ANALYSIS_ENABLED */
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* globals describe, it, expect, stringToPDFString, removeNullCharacters */
|
/* globals stringToPDFString, removeNullCharacters */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -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…
Reference in New Issue
Block a user