From 2cc28a1cb23388c971b4de43e46d89a1ec895ef8 Mon Sep 17 00:00:00 2001 From: cyril lopez Date: Mon, 9 Oct 2017 19:11:22 +0200 Subject: [PATCH] Change stateless component generator to follow Airbnb recos --- .../lib/internals/generators/component/stateless.js.hbs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs b/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs index 640058e587..931b2a7612 100755 --- a/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs +++ b/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs @@ -15,7 +15,7 @@ import messages from './messages'; import styles from './styles.scss'; {{/if}} -const {{ properCase name }} = () => { +function {{ properCase name}}() { return ( {{#if wantCSS}}
@@ -29,4 +29,8 @@ const {{ properCase name }} = () => { ); } +{{ properCase name }}.proptypes = { + +}; + export default {{ properCase name }};