Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

docs update - Add hasFix metadata for the indent rule #3529

Merged
merged 3 commits into from
Dec 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/rules/indentRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export class Rule extends Lint.Rules.AbstractRule {
* \`${OPTION_INDENT_SIZE_2.toString()}\` enforces 2 space indentation.
* \`${OPTION_INDENT_SIZE_4.toString()}\` enforces 4 space indentation.

Indentation size is required for auto-fixing, but not for rule checking.
Indentation size is **required** for auto-fixing, but not for rule checking.

**NOTE**: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.
`,
options: {
type: "array",
Expand All @@ -66,6 +68,7 @@ export class Rule extends Lint.Rules.AbstractRule {
[true, OPTION_USE_SPACES, OPTION_INDENT_SIZE_4],
[true, OPTION_USE_TABS, OPTION_INDENT_SIZE_2],
],
hasFix: true,
type: "maintainability",
typescriptOnly: false,
};
Expand Down