gaearon / react-hot-boilerplate

Minimal live-editing example for React
MIT License
3.91k stars 879 forks source link

Why is strict mode disallowed in .eslintrc? #30

Closed kmoe closed 9 years ago

kmoe commented 9 years ago

Strict mode is disallowed using the ESLint "never" setting: https://github.com/gaearon/react-hot-boilerplate/blob/master/.eslintrc#L13

Why is this?

gaearon commented 9 years ago

We're using ES6 modules and they imply use strict anyway by the spec. Babel's output generates 'use strict' automatically so there's no need to add it manually.

(As far as I know.)

kmoe commented 9 years ago

Thanks! Found this which explains it further http://babeljs.io/docs/advanced/transformers/other/strict/

Closing as resolved.