Skip to content

yml/no-trailing-spaces

disallow trailing whitespace at the end of lines

  • ⚙️ This rule is included in configs.standard.
  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule disallows trailing whitespace at the end of lines.

Now loading...

🔧 Options

yaml
yml/no-trailing-spaces:
  - error
  - skipBlankLines: false
    ignoreComments: false
  • skipBlankLines ... Ignores whitespace-only lines. Default is false.
  • ignoreComments ... Ignores trailing whitespace in YAML comments. Default is false.

Same as no-trailing-spaces rule option. See here for details.

🚀 Version

This rule was introduced in eslint-plugin-yml v3.5.0

🔍 Implementation

Taken with ❤️ from ESLint core