Tuesday 9 May 2017

eslint disallow es5 syntax

Is there a way of telling the linter to disallow any code that has been written in ES5 syntax, thereby forcing the use of ES6 syntax in a project?

I have been through all the rules http://eslint.org/docs/rules/ and I can't see anything like it. Perhaps there is a plugin or another tool that will do the trick?



via retroman

No comments:

Post a Comment