@samitouri / QOS-React-2 / commits / 90ce7f67d7

lint vendor/*.js

chico committed Feb 20, 2015 at 04:37 UTC 90ce7f67d73e863491abb909eaad75c9d6c6dfed
3 files changed +6 -5
.eslintignore
-1
@@ -11,7 +11,6 @@ test/the-files-to-test.generated.js
11 vendor/fbtransform/syntax.js
12 vendor/jasmine/
13 vendor/jasmine-jsreporter/
14 -vendor/*.js
14 # But not in docs/_js/examples/*
15 docs/_js/*.js
16 docs/js/
vendor/browser-transforms.js
+5 -3
@@ -8,6 +8,8 @@
8 */
9 /* jshint browser: true */
10 /* jslint evil: true */
11 +/*eslint-disable no-eval */
12 +/*eslint-disable block-scoped-var */
13
14 'use strict';
15
@@ -141,7 +143,7 @@ function transformCode(code, url, options) {
143
144 var source;
145 if (url == null) {
144 - source = "Inline JSX script";
146 + source = 'Inline JSX script';
147 inlineScriptCount++;
148 if (inlineScriptCount > 1) {
149 source += ' (' + inlineScriptCount + ')';
@@ -202,7 +204,7 @@ function load(url, successCallback, errorCallback) {
204 successCallback(xhr.responseText);
205 } else {
206 errorCallback();
205 - throw new Error("Could not load " + url);
207 + throw new Error('Could not load ' + url);
208 }
209 }
210 };
@@ -316,7 +318,7 @@ function runScripts() {
318
319 // Listen for load event if we're in a browser and then kick off finding and
320 // running of scripts.
319 -if (typeof window !== "undefined" && window !== null) {
321 +if (typeof window !== 'undefined' && window !== null) {
322 headEl = document.getElementsByTagName('head')[0];
323 dummyAnchor = document.createElement('a');
324
vendor/inline-source-map.js
+1 -1
@@ -8,7 +8,7 @@
8 */
9
10 'use strict';
11 -
11 +/*eslint-disable no-undef*/
12 var Buffer = require('buffer').Buffer;
13
14 function inlineSourceMap(sourceMap, sourceCode, sourceFilename) {