Skip to content

Commit 0a20307

Browse files
committed
chore: use es5 trailing commas
1 parent 2e49f5e commit 0a20307

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,6 @@
142142
"react-native/no-unused-styles": "error",
143143
"react-native/split-platform-components": "off",
144144

145-
"prettier/prettier": ["error", {"trailingComma": "all", "singleQuote": true}],
145+
"prettier/prettier": ["error", {"trailingComma": "es5", "singleQuote": true}],
146146
}
147147
}

example/rn-cli.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ module.exports = {
1818
];
1919
},
2020
getBlacklistRE() {
21-
/* eslint-disable prettier/prettier */
2221
return blacklist([
2322
new RegExp(
24-
`^${escape(path.resolve(__dirname, '..', 'node_modules'))}\\/.*$`,
23+
`^${escape(path.resolve(__dirname, '..', 'node_modules'))}\\/.*$`
2524
),
2625
new RegExp(
27-
`^${escape(path.resolve(__dirname, '..', 'docs', 'node_modules'))}\\/.*$`,
26+
`^${escape(path.resolve(__dirname, '..', 'docs', 'node_modules'))}\\/.*$`
2827
),
2928
]);
3029
},

example/src/RootNavigator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ export default StackNavigator(
3838
Expo.Constants.statusBarHeight,
3939
},
4040
},
41-
},
41+
}
4242
);

src/components/Card/Card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Card extends Component<DefaultProps, Props, State> {
9999
index,
100100
total,
101101
siblings,
102-
}),
102+
})
103103
)}
104104
</View>
105105
</TouchableWithoutFeedback>

src/components/Card/CardActions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const CardActions = (props: Props) => {
1515
{Children.map(props.children, child =>
1616
React.cloneElement(child, {
1717
compact: child.props.compact !== false,
18-
}),
18+
})
1919
)}
2020
</View>
2121
);

src/components/Portal/Portal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class Portal extends PureComponent<void, Props, void> {
3434
) {
3535
throw new Error(
3636
"Couldn't find portal manager in the context or props. " +
37-
"You need to wrap your root component in '<PortalHost />'",
37+
"You need to wrap your root component in '<PortalHost />'"
3838
);
3939
}
4040
this._key = this.context[manager].mount(this.props);

src/core/withTheme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function withTheme<T: *>(Comp: ReactClass<T>): ReactClass<T> {
3434
if (typeof this.state.theme !== 'object' || this.state.theme === null) {
3535
throw new Error(
3636
"Couldn't find theme in the context or props. " +
37-
"You need to wrap your component in '<ThemeProvider />' or pass a 'theme' prop",
37+
"You need to wrap your component in '<ThemeProvider />' or pass a 'theme' prop"
3838
);
3939
}
4040
}

0 commit comments

Comments
 (0)