Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESLint v9 and flat config #774

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

ESLint v9 and flat config #774

wants to merge 4 commits into from

Conversation

spence-s
Copy link
Contributor

@spence-s spence-s commented Jan 14, 2025

My version of xo with flat config support.

It's a complete re-write obviously here in TS and this is the initial PR WIP, let me know what you think.

It seems to work pretty darn well for me so far as a drop replacement in the repos I have tested it on and it works out of the box with the vscode extension.

It also exports a createEslintConfig function, for users who'd rather use eslint directly but get (almost) all of the goodies from using xo cli directly.

The docs probably need work still and test coverage could definitely be better, I think some features are probably gone as well, I know I didn't add webpack import resolver yet and probably a few other things, so let me know if its missing something you feel is important.

You can test out a beta version https://www.npmjs.com/package/@spence-s/flat-xo which I will deprecate if this PR is accepted.

easy to replace in package.json "xo": "npm:@spence-s/flat-xo@latest"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant