react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.87k stars 356 forks source link

'use strict' #159

Closed camjc closed 9 years ago

camjc commented 9 years ago

Is use strict necessary or not? Looks like some modules have it and some don't. Wondering what the difference is here and if we can standardize on one or the other.

camjc commented 9 years ago

Looks like babel writes use strict for us https://babeljs.io/docs/advanced/transformers/other/strict/ So we can remove it from the generators right?

weblogixx commented 9 years ago

Hi @camjc,

strictly speaking, it should not be possible. However I have the hope that in some time from now we will only need babel for jsx transpilation and not to make our ES2015 based projects backward compatible.

Therefore I opted to always include it. If you are using linting in editors (like atom esLint) it is also better to have it integrated because the linter does not know use strict gets automatically appended via babel.

camjc commented 9 years ago

Cheers. Closing.