— use_strict flag while running your application. But those third parties libraries used in your project are out of your control, and may not work well in strict mode. Therefore this method is not recommended.) This time-consuming and error-prone process should be done with extensions.
But there are a few issues in the similar extensions on MarketPlace:
- No option to use single quote(
') or double quote(
- No option to add semicolon(
;) or not
- Repeatedly add the
'use strict'statement to the files already have it
I better write my own one. So there we have it: Insert use strict.
There are a few configurations you can adjust, should be enough for different coding styles. You may find the details and usage in the download page.
If you find any issues or if you want to submit pull requests, please visit GitHub.