1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-06-05 15:36:52 +03:00

Add eslint rule to disallow spaces inside of curly braces

This commit is contained in:
Luke Barnard 2017-09-28 10:02:40 +01:00
parent e9cf25f946
commit 6eedf8b073

View File

@ -40,6 +40,10 @@ module.exports = {
}],
"react/jsx-key": ["error"],
// Assert no spacing in JSX curly brackets
// <Element prop={ consideredError} prop={notConsideredError} />
"react/jsx-curly-spacing": ["error", "never"],
/** flowtype **/
"flowtype/require-parameter-type": ["warn", {
"excludeArrowFunctions": true,