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.

Better interop with ESLint?

See original GitHub issue

Ok, this is hard to explain. I really like XO, but it is just a very thin wrapper around eslint nowadays, with eslint config in package.json and the various editor plugins for eslint having also discovered the fix capabilities of eslint.

Furthermore, eslint plugins have npm dependencies for eslint, but XO pulls in eslint so it is missing from the project’s package.json, leading to warnings, or else you have to manage eslint anyway.

It is really nice that XO plays the role of curator, pulling in useful eslint configs and plugins as they become available (❤️ AVA) .

So I am wondering if it would not be better if XO was only a CLI tool to run eslint and manage the eslint config and dependencies in package.json, but as far as npm and the editors are concerned, there is only eslint… I would like to run xo update-config and it would do all the things that would have happened with xo as a direct dependency, except that the rest of the eslint ecosystem understands what’s going on…

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:5
  • Comments:23 (22 by maintainers)

github_iconTop GitHub Comments

6reactions
wmertenscommented, Jul 23, 2016

I just found another use for this: codeclimate.com uses eslint as part of their analysis, and they need an eslintrc…

0reactions
sindresorhuscommented, Nov 28, 2017

Continued in #272

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with Rules - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Integrating with Linters - Prettier
eslint -config-prettier · stylelint-config-prettier ... for both Prettier and your linter on the Internet you'll probably find more related projects.
Read more >
From TSLint to ESLint, or How I Learned to Lint GraphQL Code
Fixing TSLint to operate more efficiently would require a different API which would break existing rules (unless an interop API was built ...
Read more >
Angular Basics: Using ESLint to Boost Code Quality - Telerik
TSLint got deprecated to focus on improving ESLint's (another linter) TypeScript support. Angular Without Linters. TSLint was still supported by ...
Read more >
The State of babel-eslint
The challenges above have added up to babel-eslint requiring more ... and ESLint, is uniquely positioned to focus on the interoperability of ...
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