Skip to content

Commit

Permalink
Add default-param-last ESLint rule (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored Oct 22, 2020
1 parent 03e96e7 commit 250ff62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
'consistent-this': 2,
'default-case': 2,
'default-case-last': 2,
'default-param-last': 2,
'func-name-matching': [2, { considerPropertyDescriptor: true }],
'func-names': [2, 'as-needed'],
'id-length': [2, { exceptions: ['t', '_'] }],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/functions/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ async function createFunctionAddon({ api, addons, siteId, addonName, siteData, l
}
}

async function installAddons(context, functionAddons = [], fnPath) {
async function installAddons(context, functionAddons, fnPath) {
if (functionAddons.length === 0) {
return
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function initializeProxy(port, distDir, projectDir) {
return handlers
}

async function startProxy(settings = {}, addonUrls, configPath, projectDir) {
async function startProxy(settings, addonUrls, configPath, projectDir) {
const functionsServer = settings.functionsPort ? `http://localhost:${settings.functionsPort}` : null

const proxy = initializeProxy(settings.frameworkPort, settings.dist, projectDir)
Expand Down

0 comments on commit 250ff62

Please sign in to comment.