From a73bbcc6e057b00c55b1daad68b62400dcd413de Mon Sep 17 00:00:00 2001 From: Sebastian Kreft Date: Sun, 12 Apr 2020 11:37:11 -0400 Subject: [PATCH] Add type to fixable rules Fixes #152. Note that in this PR I also cleaned up the rule param-names, that was wronlgy documented to be fixable. --- docs/rules/param-names.md | 3 --- rules/no-new-statics.js | 3 ++- rules/param-names.js | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/rules/param-names.md b/docs/rules/param-names.md index cafda39d..5c6f70bd 100644 --- a/docs/rules/param-names.md +++ b/docs/rules/param-names.md @@ -2,9 +2,6 @@ Enforce standard parameter names for Promise constructors -:wrench: The `--fix` option on the command line can automatically fix some of -the problems reported by this rule. - #### Valid ```js diff --git a/rules/no-new-statics.js b/rules/no-new-statics.js index 0c13def6..11d3d35e 100644 --- a/rules/no-new-statics.js +++ b/rules/no-new-statics.js @@ -8,7 +8,8 @@ module.exports = { docs: { url: getDocsUrl('no-new-statics') }, - fixable: 'code' + fixable: 'code', + type: 'suggestion' }, create(context) { return { diff --git a/rules/param-names.js b/rules/param-names.js index b16d73ab..adedca5b 100644 --- a/rules/param-names.js +++ b/rules/param-names.js @@ -6,8 +6,7 @@ module.exports = { meta: { docs: { url: getDocsUrl('param-names') - }, - fixable: 'code' + } }, create(context) { return {