mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
lint vendor/*.js
This commit is contained in:
parent
ed6d02e1a8
commit
90ce7f67d7
|
|
@ -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/
|
||||
|
|
|
|||
8
vendor/browser-transforms.js
vendored
8
vendor/browser-transforms.js
vendored
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
2
vendor/inline-source-map.js
vendored
2
vendor/inline-source-map.js
vendored
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/*eslint-disable no-undef*/
|
||||
var Buffer = require('buffer').Buffer;
|
||||
|
||||
function inlineSourceMap(sourceMap, sourceCode, sourceFilename) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user