-
Notifications
You must be signed in to change notification settings - Fork 27
Issue #582: Add ESLint to package.json test script #586
Conversation
'posttest' automatically runs after 'npm test'
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.
I like it. We have some merge conflicts now.
@vertein Resolved merge conflicts |
📓 Note that the Google styleguide recommends some ES6 features be preferred over their ES5 counterparts. |
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.
I admit to a lack of expertise in ES best style practices.
I nonetheless passionately believe that we should just adopt whatever Google Style is, and do so with a minimum of exceptions.
The difference from a project standpoint is browser compatibility.
Source: https://kangax.github.io/compat-table/es6/ |
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.
We can't drop support for IE, so we're going to have to disable the es6 rules from the google plugin. Adding the following to the "rules" block takes care of it:
"arrow-parens": 0,
"constructor-super": 0,
"generator-star-spacing": 0,
"no-new-symbol": 0,
"no-this-before-super": 0,
"no-var": 0,
"prefer-rest-params": 0,
"prefer-spread": 0,
"rest-spread-spacing": 0,
"yield-star-spacing": 0
Merging as-is would break MyUW in IE
IE11 does not support ES2015 features such as arrow functions, classes, symbols, block scoped variables, constants, etc. Google code style rules that recommend these features have been disabled to allow for IE support.
Thanks for following up @thevoiceofzeke! |
Changes Unknown when pulling 7cd7713 on ChristianMurphy:eslint into ** on UW-Madison-DoIT:master**. |
'posttest' automatically runs after 'npm test'