Skip to content
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

Add default-param-last ESLint rule #1419

Merged
merged 1 commit into from
Oct 22, 2020
Merged

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Oct 16, 2020

This adds the default-param-last ESLint rule.

@ehmicky ehmicky added the type: chore work needed to keep the product and development running smoothly label Oct 16, 2020
@ehmicky ehmicky requested a review from erezrokah October 16, 2020 13:01
@ehmicky ehmicky requested a review from a team as a code owner October 16, 2020 13:01
@ehmicky ehmicky self-assigned this Oct 16, 2020
@@ -356,7 +356,7 @@ async function createFunctionAddon({ api, addons, siteId, addonName, siteData, l
}
}

async function installAddons(functionAddons = [], fnPath) {
async function installAddons(functionAddons, fnPath) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

functionAddons cannot be undefined here.

@@ -298,7 +298,7 @@ function initializeProxy(port, distDir, projectDir) {
return handlers
}

async function startProxy(settings = {}, addonUrls, configPath, projectDir) {
async function startProxy(settings, addonUrls, configPath, projectDir) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

settings cannot be undefined here.

@ehmicky ehmicky force-pushed the chore/lint-default-param-last branch 2 times, most recently from 5e17bcc to 088c2f5 Compare October 20, 2020 19:15
@ehmicky ehmicky force-pushed the chore/lint-default-param-last branch from 088c2f5 to 31d0dbb Compare October 22, 2020 10:32
@ehmicky ehmicky merged commit 250ff62 into master Oct 22, 2020
@ehmicky ehmicky deleted the chore/lint-default-param-last branch October 22, 2020 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants