Instead of all file I use 'use strict' in node project. Can I use 'use strict' at one place and that will apply in all files ?
Asked
Active
Viewed 38 times
0
-
Sorry It's my bad, I found the solution. I added my start script and it works great "start": "node --use_strict ./bin/www" and npm start for run project and works as expected – Bhavin Padiya Jun 12 '18 at 05:45
-
Yes Duplicate.. But Thanks @Mureinik – Bhavin Padiya Jun 12 '18 at 05:47
-
I also realize. Not to use it globally. Always use that in individual files else It will problematic in other's npm package because they not code in strict mode. So, I decide to use in my all project files. – Bhavin Padiya Jun 12 '18 at 05:52