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

We can remove 'use strict' since we use ES6 modules #149

Closed
Reinmar opened this issue May 4, 2016 · 4 comments
Closed

We can remove 'use strict' since we use ES6 modules #149

Reinmar opened this issue May 4, 2016 · 4 comments
Assignees
Labels
intro Good first ticket. type:improvement This issue reports a possible enhancement of an existing feature.
Milestone

Comments

@Reinmar
Copy link
Member

Reinmar commented May 4, 2016

AFAIR (needs to be confirmed) ES6 modules enable strict mode out of the box.

@Reinmar Reinmar added type:improvement This issue reports a possible enhancement of an existing feature. module:project labels May 4, 2016
@oskarwrobel
Copy link
Contributor

According to documentation http://www.ecma-international.org/ecma-262/6.0/#sec-strict-mode-code

Module code is always strict mode code.

So looks like we can remove 'use strict' from source code, but probably we need to add it automatically to CommonJS and AMD versions of builded packages.

We can also configure eslint for it http://eslint.org/docs/rules/strict

@Reinmar
Copy link
Member Author

Reinmar commented May 11, 2016

Thanks for confirming this.

We can also configure eslint for it http://eslint.org/docs/rules/strict

We use JSHint (and JSCS). However, since JSCS is being merged to ESLint we'll have to migrate some day.

@Reinmar Reinmar added the intro Good first ticket. label Jun 7, 2016
@Reinmar
Copy link
Member Author

Reinmar commented Jun 15, 2016

@maxbarnas maxbarnas self-assigned this Jul 4, 2016
@maxbarnas maxbarnas added this to the iteration 2 milestone Jul 11, 2016
Reinmar added a commit to ckeditor/ckeditor5-basic-styles that referenced this issue Jul 19, 2016
Reinmar added a commit to ckeditor/ckeditor5-editor-classic that referenced this issue Jul 19, 2016
Reinmar added a commit to ckeditor/ckeditor5-paragraph that referenced this issue Jul 19, 2016
Reinmar added a commit to ckeditor/ckeditor5-theme-lark that referenced this issue Jul 19, 2016
Reinmar added a commit to ckeditor/ckeditor5-ui-default that referenced this issue Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intro Good first ticket. type:improvement This issue reports a possible enhancement of an existing feature.
Projects
None yet
Development

No branches or pull requests

5 participants