0

There is a react codebase, and I would like to prettify it with the following rule:

  • Complete the prop shorthands with a value. shorthand => shorthand={true}

Current:

<Table celled unstackable />

Expected:

<Table celled={true} unstackable={true} />
Peter
  • 1,280
  • 8
  • 15

1 Answers1

1

This is an eslint rule

Just add this to your eslintrc rules to disable it;

react/jsx-boolean-value: off
Anuja
  • 908
  • 6
  • 11
  • 1
    Thanx your answer, but for my needs this config needed: `'react/jsx-boolean-value': ['error', 'always'],` – Peter Oct 23 '20 at 11:18