[lint] Fix reasonable lines to 80
I don't agree with 80 on principal but it's what we have for now. This fixes the reasonable cases. Most of the long lines are in docblocks with long type information or containing links.
Paul O’Shannessy committed
Dec 25, 2014 at 14:33 UTC
847357e42e5267b04dd6e297219eaa125ab2f9f4
4 files changed
+20
-11
src/browser/server/ReactServerRendering.js
+2
-1
@@ -38,7 +38,8 @@ function renderToString(element) {
38
39
return transaction.perform(function() {
40
var componentInstance = instantiateReactComponent(element, null);
41
- var markup = componentInstance.mountComponent(id, transaction, emptyObject);
41
+ var markup =
42
+ componentInstance.mountComponent(id, transaction, emptyObject);
43
return ReactMarkupChecksum.addChecksumToMarkup(markup);
44
}, null);
45
} finally {
src/browser/ui/dom/HTMLDOMPropertyConfig.js
+11
-6
@@ -160,12 +160,17 @@ var HTMLDOMPropertyConfig = {
160
/**
161
* Non-standard Properties
162
*/
163
- autoCapitalize: null, // Supported in Mobile Safari for keyboard hints
164
- autoCorrect: null, // Supported in Mobile Safari for keyboard hints
165
- itemProp: MUST_USE_ATTRIBUTE, // Microdata: http://schema.org/docs/gs.html
166
- itemScope: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, // Microdata: http://schema.org/docs/gs.html
167
- itemType: MUST_USE_ATTRIBUTE, // Microdata: http://schema.org/docs/gs.html
168
- property: null // Supports OG in meta tags
163
+ // autoCapitalize and autoCorrect are supported in Mobile Safari for
164
+ // keyboard hints.
165
+ autoCapitalize: null,
166
+ autoCorrect: null,
167
+ // itemProp, itemScope, itemType are for Microdata support. See
168
+ // http://schema.org/docs/gs.html
169
+ itemProp: MUST_USE_ATTRIBUTE,
170
+ itemScope: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
171
+ itemType: MUST_USE_ATTRIBUTE,
172
+ // property is supported for OpenGraph in meta tags.
173
+ property: null
174
},
175
DOMAttributeNames: {
176
acceptCharset: 'accept-charset',
src/core/ReactCompositeComponent.js
+1
-1
@@ -935,7 +935,7 @@ var ReactCompositeComponentMixin = assign({},
935
var refs = this.getPublicInstance().refs;
936
delete refs[ref];
937
},
938
-
938
+
939
/**
940
* Get a text description of the component that can be used to identify it
941
* in error messages.
src/core/shouldUpdateReactComponent.js
+6
-3
@@ -44,14 +44,17 @@ function shouldUpdateReactComponent(prevElement, nextElement) {
44
if (prevElement._owner != null &&
45
prevElement._owner.getPublicInstance() != null &&
46
prevElement._owner.getPublicInstance().constructor != null) {
47
- prevName = prevElement._owner.getPublicInstance().constructor.displayName;
47
+ prevName =
48
+ prevElement._owner.getPublicInstance().constructor.displayName;
49
}
50
if (nextElement._owner != null &&
51
nextElement._owner.getPublicInstance() != null &&
52
nextElement._owner.getPublicInstance().constructor != null) {
52
- nextName = nextElement._owner.getPublicInstance().constructor.displayName;
53
+ nextName =
54
+ nextElement._owner.getPublicInstance().constructor.displayName;
55
}
54
- if (nextElement.type != null && nextElement.type.displayName != null) {
56
+ if (nextElement.type != null &&
57
+ nextElement.type.displayName != null) {
58
nextDisplayName = nextElement.type.displayName;
59
}
60
monitorCodeUse(