question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Airbnb eslint with prettier-atom not indenting plain text children of JSX tags

See original GitHub issue

in my package.json:

  "devDependencies": {
    "babel-jest": "23.2.0",
    "babel-preset-react-native": "4.0.0",
    "eslint": "^4.19.1",
    "eslint-config-airbnb": "17.0.0",
    "eslint-plugin-import": "^2.12.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
    "eslint-plugin-react": "^7.9.1",
    "jest": "23.2.0",
    "react-test-renderer": "16.3.1"
  }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
adalbertoteixeiracommented, Jul 20, 2018

I was seeing the wrong indentation (what @MiLeung shows on his issue) when running eslint --fix as well, not just when using Atom.

He says he doesn’t get the issue when running --fix, but I do.

And I’m sorry, but isn’t this eslint-plugin-react?

1reaction
ljharbcommented, Jun 28, 2018

Sounds like it’s a bug with Atom then. I’ll close, but happy to reopen if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Airbnb eslint with prettier-atom not indenting plain text children ...
Airbnb eslint with prettier-atom not indenting plain text children of JSX tags #1844 · Comments · Footer.
Read more >
Eslint (Airbnb) indentation issues with React code(JSX)
Now I got new error messages, probably due to some incompatibility: Error: config-airbnb/rules/react.js: Configuration for rule "react/jsx-no- ...
Read more >
Airbnb JavaScript Style Guide()
7.15 Functions with multiline signatures, or invocations, should be indented just like every other multiline list in this guide: with each item on...
Read more >
eslint-config-canonical - npm
Rule CN AB GG SD XO @babel/new‑cap ❌ 👻 👻 👻 👻 @babel/no‑invalid‑this 🚨 👻 👻 👻 👻 @babel/no‑unused‑expressions 🚨 👻 👻 👻 👻
Read more >
eslint-config-airbnb | Yarn - Package Manager
This package provides Airbnb's .eslintrc as an extensible shared config. Usage. We export three ESLint configurations for your usage. eslint-config-airbnb. Our ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found