Skip to content
Permalink
Browse files

Chore: enable default-param-last (#12244)

note: this is a breaking change in eslint-config-eslint.

refs:0313441
  • Loading branch information
aladdin-add committed Sep 14, 2019
1 parent 9984c3e commit f9fc695d77c19cd5ecb3f0e97e1ea124c8543409
Showing with 3 additions and 2 deletions.
  1. +2 −2 lib/rules/capitalized-comments.js
  2. +1 −0 packages/eslint-config-eslint/default.yml
@@ -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);
}

@@ -70,7 +70,7 @@ function getNormalizedOptions(rawOptions = {}, which) {
* @returns {Object} An object with "Line" and "Block" keys and corresponding
* normalized options objects.
*/
function getAllNormalizedOptions(rawOptions) {
function getAllNormalizedOptions(rawOptions = {}) {
return {
Line: getNormalizedOptions(rawOptions, "line"),
Block: getNormalizedOptions(rawOptions, "block")
@@ -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"

0 comments on commit f9fc695

Please sign in to comment.
You can’t perform that action at this time.