From 28072901d5c8f6f2525736d9d8dad33971fde7a0 Mon Sep 17 00:00:00 2001 From: "weiran.zsd" Date: Sun, 8 Sep 2019 22:51:16 +0800 Subject: [PATCH] Chore: enable default-param-last note: this is a breaking change in eslint-config-eslint. refs:https://github.com/eslint/eslint/commit/0313441d016c8aa0674c135f9da67a676e766ec5 --- lib/rules/capitalized-comments.js | 2 +- packages/eslint-config-eslint/default.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rules/capitalized-comments.js b/lib/rules/capitalized-comments.js index 47477743598a..42cef707b21f 100644 --- a/lib/rules/capitalized-comments.js +++ b/lib/rules/capitalized-comments.js @@ -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); } diff --git a/packages/eslint-config-eslint/default.yml b/packages/eslint-config-eslint/default.yml index 8e8c8c57ad6e..526ce5600ef0 100644 --- a/packages/eslint-config-eslint/default.yml +++ b/packages/eslint-config-eslint/default.yml @@ -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"