lint(curly): consistent use of curly brackets in codebase (#3584)
This commit is contained in:
1 parent
9ae3d9f769
commit
5d435424e2
113 files changed
+1501
-1056
No files matched your search
@@ -26,9 +26,9 @@ TableHead.defaultProps = {
|
||||
};
|
||||
|
||||
TableHead.propTypes = {
|
||||
children: function (props, propName, componentName) {
|
||||
children: function(props, propName, componentName) {
|
||||
const elements = React.Children.toArray(props.children);
|
||||
const isString = elements.some((child) => typeof child === 'string');
|
||||
const isString = elements.some(child => typeof child === 'string');
|
||||
|
||||
if (isString) {
|
||||
return new Error(
|
||||
@@ -37,7 +37,7 @@ TableHead.propTypes = {
|
||||
}
|
||||
|
||||
const isInvalidElement = elements.some(
|
||||
(child) => !React.isValidElement(child)
|
||||
child => !React.isValidElement(child)
|
||||
);
|
||||
|
||||
if (isInvalidElement) {
|
||||
|
||||
Reference in new issue
Block a user