ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit ad3147cd9ec7e2a971394f4df7d7519aa9297043
parent 54293a16d88769815c799f2b5223c75bbda7b8d7
Author: Konstantin Tarkus <hello@tarkus.me>
Date:   Mon, 25 Jan 2016 03:16:06 +0300

Fix ESLint, JSCS warnings

Close kriasoft/react-starter-kit#417, kriasoft/react-starter-kit#418

Diffstat:
Msrc/components/TextBox/TextBox.js | 19++++++++++++++++---
Mtools/start.js | 7+++++--
2 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/src/components/TextBox/TextBox.js b/src/components/TextBox/TextBox.js @@ -25,9 +25,22 @@ class TextBox extends Component { render() { return ( <div className={s.root}> - {this.props.maxLines > 1 ? - <textarea {...this.props} className={s.input} ref="input" key="input" rows={this.props.maxLines} /> : - <input {...this.props} className={s.input} ref="input" key="input" />} + { + this.props.maxLines > 1 ? + <textarea + {...this.props} + className={s.input} + ref="input" + key="input" + rows={this.props.maxLines} + /> : + <input + {...this.props} + className={s.input} + ref="input" + key="input" + /> + } </div> ); } diff --git a/tools/start.js b/tools/start.js @@ -31,14 +31,16 @@ async function start() { if (Array.isArray(config.entry)) { config.entry.unshift('webpack-hot-middleware/client'); } else { + /* eslint-disable no-param-reassign */ config.entry = ['webpack-hot-middleware/client', config.entry]; + /* eslint-enable no-param-reassign */ } config.plugins.push(new webpack.HotModuleReplacementPlugin()); config.plugins.push(new webpack.NoErrorsPlugin()); config.module.loaders .filter(x => x.loader === 'babel-loader') - .forEach(x => x.query = { + .forEach(x => x.query = { // eslint-disable-line no-param-reassign // Wraps all React components into arbitrary transforms // https://github.com/gaearon/babel-plugin-react-transform plugins: [ @@ -53,7 +55,8 @@ async function start() { imports: ['react', 'redbox-react'], }, ], - }], + }, + ], ], }); });