Eslint-plugin-react: Extend react/jsx-props-no-multi-spaces to catch extra line breaks.

Created on 2 Apr 2019  路  5Comments  路  Source: yannickcr/eslint-plugin-react

<button
  title='Some button'

  type='button'
/>

I was unable to find a rule that would prevent this and I think react/jsx-props-no-multi-spaces would be the most relevant one to extend. The issue is not that people would really do this. Instead, the goal is to improve the autofixing benefits of an existing rule with a hopefully minor adjustment.

enhancement help wanted

All 5 comments

That sounds reasonable - want to make a PR?

is someone working on this?

nope, go for it.

so, as far as I understand, we need to add auto-fixing functionality to this plugin?

@iiison this issue is for adding additional warnings to the rule.

Separately, it would be ideal to maximize what can be safely autofixed.

Was this page helpful?
0 / 5 - 0 ratings