-
Notifications
You must be signed in to change notification settings - Fork 21
Conversation
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.
Left a couple minor comments; one's fixed by rebasing against the current develop
branch, and the only real weirdness was a comma after an argument when it's the only argument for a function. Possibly look into the prettier rule for that and update?
.eslintrc.js
Outdated
semi: ["error", "always"], | ||
"require-jsdoc": "warn", | ||
"valid-jsdoc": "warn", | ||
"max-len": ["error", 80], |
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.
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.
This rule is anyways removed in #120 since it follows the suggested config from mozilla/shield-studies-addon-template#61 as a base.
@@ -58,30 +58,44 @@ module.exports.promiseSetupDriver = async() => { | |||
.forBrowser("firefox") | |||
.setFirefoxOptions(options); | |||
|
|||
const binaryLocation = await promiseActualBinary(process.env.FIREFOX_BINARY || "firefox"); | |||
const binaryLocation = await promiseActualBinary( | |||
process.env.FIREFOX_BINARY || "firefox", |
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 would not expect a comma here after the first arg. Seems like Prettier is getting confused?
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.
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.
Does this sound related? prettier/prettier#2788, and if so, should we change https://github.com/mozilla/shield-studies-addon-utils/pull/119/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R52 and we should maybe change --trailing-comma=all
to --trailing-comma=es5
?
Trailing Commas
Print trailing commas wherever possible when multi-line. (A single-line array,
for example, never gets trailing commas.)Valid options:
- "none" - No trailing commas.
- "es5" - Trailing commas where valid in ES5 (objects, arrays, etc.)
- "all" - Trailing commas wherever possible (including function arguments). This requires node 8 or a transform.
… use a specific version from npm)
Targeting develop branch, for v5.
This is an updated version of PR #109 (see that PR for general discussion)
It includes the commits for #107 and #118 and should thus not be merged before those are merged (to the develop branch) and this PR is rebased upon the latest develop branch.