Skip to content

Commit

Permalink
Chore: enable default-param-last
Browse files Browse the repository at this point in the history
note: this is a breaking change in eslint-config-eslint.

refs:0313441
  • Loading branch information
aladdin-add committed Sep 8, 2019
1 parent 0313441 commit 2807290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/capitalized-comments.js
Expand Up @@ -59,7 +59,7 @@ const DEFAULTS = {
* @param {string} which Either "line" or "block".
* @returns {Object} The normalized options.
*/
function getNormalizedOptions(rawOptions = {}, which) {
function getNormalizedOptions(rawOptions, which) {
return Object.assign({}, DEFAULTS, rawOptions[which] || rawOptions);
}

Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-eslint/default.yml
Expand Up @@ -20,6 +20,7 @@ rules:
consistent-return: "error"
curly: ["error", "all"]
default-case: "error"
default-param-last: "error"
dot-location: ["error", "property"]
dot-notation: ["error", { allowKeywords: true }]
eol-last: "error"
Expand Down

0 comments on commit 2807290

Please sign in to comment.