1

Is there a method to tell the indent rule of ESLint to accept that? What I want

    <BottomNavigation
       showLabels
       value={value}
       onChange= {(…) => {
          …
       }}
    >
       <BottomNavigationAction component={Link} to="/contacts"…
                               icon={<ContactsIcon/>}/>
       <BottomNavigationAction … />
       <BottomNavigationAction
          component={Link} to="/groups" … icon={<GroupIcon/>}/>
    </BottomNavigation>

What it forces me to do: What it forces me

    <BottomNavigation
       showLabels
       value={value}
       onChange= {(…) => {
          …
       }}
    >
       <BottomNavigationAction component={Link} to="/contacts"…
          icon={<ContactsIcon/>}/>
       <BottomNavigationAction … />
       <BottomNavigationAction component={Link} to="/groups" …
          icon={<GroupIcon/>}/>
    </BottomNavigation>

My indent rule values: Indent rule

    "indent: [
      "error",
      4
     ],

I checked the documentation of the indent rule but they never mention HTML nodes. So I'm a bit lost there. (ESLint documentation on indent)

greybeard
  • 2,249
  • 8
  • 30
  • 66
  • Please heed [How do I ask a Good Question?](https://stackoverflow.com/help/how-to-ask) and include the gist of information needed to usefully answer your question in the post body. Hyperlinks welcome for reference&detail. – greybeard Aug 21 '22 at 09:45
  • (You seem to want alignment of `"MemberExpression"`s. "The force" may depend on `"error"`.) – greybeard Aug 21 '22 at 09:52
  • 1
    @greybeard I tried "MemberExpression" to "off" and it still do the error – JesusChrisse Aug 21 '22 at 18:14

0 Answers0