diff --git a/src/configs/yaml.ts b/src/configs/yaml.ts index e7ffa569fb..f5fb1a3892 100644 --- a/src/configs/yaml.ts +++ b/src/configs/yaml.ts @@ -49,9 +49,9 @@ export function yaml( 'yaml/flow-mapping-curly-spacing': 'error', 'yaml/flow-sequence-bracket-newline': 'error', 'yaml/flow-sequence-bracket-spacing': 'error', - 'yaml/indent': ['error', indent], + 'yaml/indent': ['error', indent === 'tab' ? 2 : indent], 'yaml/key-spacing': 'error', - 'yaml/no-tab-indent': indent === 'tab' ? 'off' : 'error', + 'yaml/no-tab-indent': 'error', 'yaml/quotes': ['error', { avoidEscape: false, prefer: quotes }], 'yaml/spaced-comment': 'error', }