@samitouri / QOS-React-2 / commits / c34fa7f3d2

Lint fixes

Ben Alpert committed Mar 17, 2015 at 13:30 UTC c34fa7f3d22d04a7089fc8930b06be9e73f4b0d5
6 files changed +10 -10
src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js
+1 -1
@@ -51,7 +51,7 @@ describe('ReactComponentWithPureRenderMixin', function() {
51 return {
52 cut: false,
53 slices: 1,
54 - }
54 + };
55 },
56
57 cut: function() {
src/browser/ui/React.js
+2 -1
@@ -116,7 +116,8 @@ if (__DEV__) {
116
117 // If we're in IE8, check to see if we are in combatibility mode and provide
118 // information on preventing compatibility mode
119 - var ieCompatibilityMode = document.documentMode && document.documentMode < 8;
119 + var ieCompatibilityMode =
120 + document.documentMode && document.documentMode < 8;
121
122 warning(
123 !ieCompatibilityMode,
src/browser/ui/ReactDOMComponent.js
+3 -3
@@ -309,9 +309,9 @@ ReactDOMComponent.Mixin = {
309 if (newlineEatingTags[this._tag] && ret.charAt(0) === '\n') {
310 // text/html ignores the first character in these tags if it's a newline
311 // Prefer to break application/xml over text/html (for now) by adding
312 - // a newline specifically to get eaten by the parser.
313 - // (Alternately for textareas, replacing "^\n" with "\r\n" doesn't get eaten,
314 - // and the first \r is normalized out by HTMLTextAreaElement#value.)
312 + // a newline specifically to get eaten by the parser. (Alternately for
313 + // textareas, replacing "^\n" with "\r\n" doesn't get eaten, and the first
314 + // \r is normalized out by HTMLTextAreaElement#value.)
315 // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>
316 // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>
317 // See: <http://www.w3.org/TR/html5/syntax.html#newlines>
src/browser/ui/ReactMount.js
+3 -2
@@ -456,8 +456,9 @@ var ReactMount = {
456 container && container.tagName !== 'BODY',
457 'render(): Rendering components directly into document.body is ' +
458 'discouraged, since its children are often manipulated by third-party ' +
459 - 'scripts and browser extensions. This may lead to subtle reconciliation ' +
460 - 'issues. Try rendering into a container element created for your app.'
459 + 'scripts and browser extensions. This may lead to subtle ' +
460 + 'reconciliation issues. Try rendering into a container element created ' +
461 + 'for your app.'
462 );
463
464 var prevComponent = instancesByReactRootID[getReactRootID(container)];
src/browser/ui/__tests__/ReactMount-test.js
-2
@@ -171,8 +171,6 @@ describe('ReactMount', function() {
171 var proto = Object.create(HTMLElement.prototype, {
172 createdCallback: {
173 value: function() {
174 - var query = encodeURIComponent(this.innerHTML);
175 - var url = "https://www.google.com/search?q=" + query + "&btnI";
174 shadowRoot = this.createShadowRoot();
175 React.render(<div>Hi, from within a WC!</div>, shadowRoot);
176 expect(shadowRoot.firstChild.tagName).toBe('DIV')
src/utils/__tests__/shallowEqual-test.js
+1 -1
@@ -57,7 +57,7 @@ describe('shallowEqual', function() {
57 {}
58 )
59 ).toBe(false);
60 - })
60 + });
61
62 it('returns false if first argument has too many keys', function() {
63 expect(