diff --git a/.eslintignore b/.eslintignore index a9e5557f7d..fbf44101c7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -11,7 +11,6 @@ test/the-files-to-test.generated.js vendor/fbtransform/syntax.js vendor/jasmine/ vendor/jasmine-jsreporter/ -vendor/*.js # But not in docs/_js/examples/* docs/_js/*.js docs/js/ diff --git a/vendor/browser-transforms.js b/vendor/browser-transforms.js index 723d4f58c6..9cedfd8377 100644 --- a/vendor/browser-transforms.js +++ b/vendor/browser-transforms.js @@ -8,6 +8,8 @@ */ /* jshint browser: true */ /* jslint evil: true */ +/*eslint-disable no-eval */ +/*eslint-disable block-scoped-var */ 'use strict'; @@ -141,7 +143,7 @@ function transformCode(code, url, options) { var source; if (url == null) { - source = "Inline JSX script"; + source = 'Inline JSX script'; inlineScriptCount++; if (inlineScriptCount > 1) { source += ' (' + inlineScriptCount + ')'; @@ -202,7 +204,7 @@ function load(url, successCallback, errorCallback) { successCallback(xhr.responseText); } else { errorCallback(); - throw new Error("Could not load " + url); + throw new Error('Could not load ' + url); } } }; @@ -316,7 +318,7 @@ function runScripts() { // Listen for load event if we're in a browser and then kick off finding and // running of scripts. -if (typeof window !== "undefined" && window !== null) { +if (typeof window !== 'undefined' && window !== null) { headEl = document.getElementsByTagName('head')[0]; dummyAnchor = document.createElement('a'); diff --git a/vendor/inline-source-map.js b/vendor/inline-source-map.js index db67bc65fe..7d0219e2cc 100644 --- a/vendor/inline-source-map.js +++ b/vendor/inline-source-map.js @@ -8,7 +8,7 @@ */ 'use strict'; - +/*eslint-disable no-undef*/ var Buffer = require('buffer').Buffer; function inlineSourceMap(sourceMap, sourceCode, sourceFilename) {