-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Build: Enforce ECMAScript 5 in tests via ESLint #5563
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
Conversation
mgol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment, otherwise looks good
|
@neogy-akash I've just made a pull request for updating eslint-config-jquery because it is full of deprecated tags. To update the tags, it would now have to pull in @stylistic/js as a plugin. Your code only pulls in the "rules" object but not the "plugins" object that would make it work, so I think another change in jquery itself will be necessary. Of course, I don't even know if the maintainer of that project will accept my pull request, but I've done what I could. |
Summary
#5542 Changed the
ecmaVersionfor unit tests to ES5 from ES2015. Added Promise and Symbol keyword inglobalsand given them the valuefalseto ignore them while linting tests. Polyfill added for this as well as per @mgol.Checklist