mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[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.
This commit is contained in:
1 parent
e27da99731
commit
847357e42e
4 files changed
+20
-11
No files matched your search
@@ -38,7 +38,8 @@ function renderToString(element) {
|
||||
|
||||
return transaction.perform(function() {
|
||||
var componentInstance = instantiateReactComponent(element, null);
|
||||
var markup = componentInstance.mountComponent(id, transaction, emptyObject);
|
||||
var markup =
|
||||
componentInstance.mountComponent(id, transaction, emptyObject);
|
||||
return ReactMarkupChecksum.addChecksumToMarkup(markup);
|
||||
}, null);
|
||||
} finally {
|
||||
|
||||
@@ -160,12 +160,17 @@ var HTMLDOMPropertyConfig = {
|
||||
/**
|
||||
* Non-standard Properties
|
||||
*/
|
||||
autoCapitalize: null, // Supported in Mobile Safari for keyboard hints
|
||||
autoCorrect: null, // Supported in Mobile Safari for keyboard hints
|
||||
itemProp: MUST_USE_ATTRIBUTE, // Microdata: http://schema.org/docs/gs.html
|
||||
itemScope: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, // Microdata: http://schema.org/docs/gs.html
|
||||
itemType: MUST_USE_ATTRIBUTE, // Microdata: http://schema.org/docs/gs.html
|
||||
property: null // Supports OG in meta tags
|
||||
// autoCapitalize and autoCorrect are supported in Mobile Safari for
|
||||
// keyboard hints.
|
||||
autoCapitalize: null,
|
||||
autoCorrect: null,
|
||||
// itemProp, itemScope, itemType are for Microdata support. See
|
||||
// http://schema.org/docs/gs.html
|
||||
itemProp: MUST_USE_ATTRIBUTE,
|
||||
itemScope: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
|
||||
itemType: MUST_USE_ATTRIBUTE,
|
||||
// property is supported for OpenGraph in meta tags.
|
||||
property: null
|
||||
},
|
||||
DOMAttributeNames: {
|
||||
acceptCharset: 'accept-charset',
|
||||
|
||||
@@ -935,7 +935,7 @@ var ReactCompositeComponentMixin = assign({},
|
||||
var refs = this.getPublicInstance().refs;
|
||||
delete refs[ref];
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Get a text description of the component that can be used to identify it
|
||||
* in error messages.
|
||||
|
||||
@@ -44,14 +44,17 @@ function shouldUpdateReactComponent(prevElement, nextElement) {
|
||||
if (prevElement._owner != null &&
|
||||
prevElement._owner.getPublicInstance() != null &&
|
||||
prevElement._owner.getPublicInstance().constructor != null) {
|
||||
prevName = prevElement._owner.getPublicInstance().constructor.displayName;
|
||||
prevName =
|
||||
prevElement._owner.getPublicInstance().constructor.displayName;
|
||||
}
|
||||
if (nextElement._owner != null &&
|
||||
nextElement._owner.getPublicInstance() != null &&
|
||||
nextElement._owner.getPublicInstance().constructor != null) {
|
||||
nextName = nextElement._owner.getPublicInstance().constructor.displayName;
|
||||
nextName =
|
||||
nextElement._owner.getPublicInstance().constructor.displayName;
|
||||
}
|
||||
if (nextElement.type != null && nextElement.type.displayName != null) {
|
||||
if (nextElement.type != null &&
|
||||
nextElement.type.displayName != null) {
|
||||
nextDisplayName = nextElement.type.displayName;
|
||||
}
|
||||
monitorCodeUse(
|
||||
|
||||
Reference in new issue
Block a user