Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is strict mode disallowed in .eslintrc? #30

Closed
kmoe opened this issue Jul 12, 2015 · 2 comments
Closed

Why is strict mode disallowed in .eslintrc? #30

kmoe opened this issue Jul 12, 2015 · 2 comments

Comments

@kmoe
Copy link

kmoe commented Jul 12, 2015

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

Why is this?

@gaearon
Copy link
Owner

gaearon commented Jul 13, 2015

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
Copy link
Author

kmoe commented Jul 15, 2015

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

Closing as resolved.

@kmoe kmoe closed this as completed Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants