diff --git a/docs/rules/README.md b/docs/rules/README.md index f97c1bf881f..0a3ac392195 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -168,7 +168,7 @@ These rules relate to style guidelines, and are therefore quite subjective: * [id-match](id-match.md): require identifiers to match a specified regular expression * [indent](indent.md): enforce consistent indentation (fixable) * [jsx-quotes](jsx-quotes.md): enforce the consistent use of either double or single quotes in JSX attributes (fixable) -* [key-spacing](key-spacing.md): enforce consistent spacing between keys and values in object literal properties +* [key-spacing](key-spacing.md): enforce consistent spacing between keys and values in object literal properties (fixable) * [keyword-spacing](keyword-spacing.md): enforce consistent spacing before and after keywords (fixable) * [linebreak-style](linebreak-style.md): enforce consistent linebreak style (fixable) * [lines-around-comment](lines-around-comment.md): require empty lines around comments diff --git a/docs/rules/key-spacing.md b/docs/rules/key-spacing.md index 031a2f434cc..3b32151f944 100644 --- a/docs/rules/key-spacing.md +++ b/docs/rules/key-spacing.md @@ -1,5 +1,7 @@ # enforce consistent spacing between keys and values in object literal properties (key-spacing) +(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problems reported by this rule. + This rule enforces spacing around the colon in object literal properties. It can verify each property individually, or it can ensure horizontal alignment of adjacent properties in an object literal. ## Rule Details