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

feat(plugins): add plugin for xo config #621

Merged
merged 2 commits into from
May 7, 2024
Merged

Conversation

bbeesley
Copy link
Contributor

@bbeesley bbeesley commented May 3, 2024

Adds a plugin for xo. Essentially its an opinionated wrapper around eslint with a bunch of bundled rules and plugins, and the config object is just the eslint config object with some extra options. So to keep it consistent with the eslint plugin and avoid duplication I've just used the eslint helper to parse out any additional eslint plugins that have been added in the xo config.

@webpro
Copy link
Collaborator

webpro commented May 3, 2024

Awesome! This is great, the only remark I'd have is that there could be a package.json#scripts using xo to make it even more complete/realistic, eg:

{
  "scripts": {
    "test": "xo && ava"
  }
}

Happy to merge this!

Adds a plugin for [xo](https://github.com/xojs/xo#config). Essentially its an opinionated wrapper
around eslint with a bunch of bundled rules and plugins, and the config object is just the eslint
config object with some extra options. So to keep it consistent with the eslint plugin and avoid
duplication I've just used the eslint helper to parse out any additional eslint plugins that have
been added in the xo config.
@bbeesley
Copy link
Contributor Author

bbeesley commented May 7, 2024

Awesome! This is great, the only remark I'd have is that there could be a package.json#scripts using xo to make it even more complete/realistic, eg:

{
  "scripts": {
    "test": "xo && ava"
  }
}

Happy to merge this!

@webpro done, thanks for the suggestion

@webpro
Copy link
Collaborator

webpro commented May 7, 2024

Sorry I forgot to tell more about how binaries work, I've just added it to prevent some ping-pong. Hope you don't mind :)

@webpro webpro merged commit 96f91df into webpro-nl:main May 7, 2024
10 of 14 checks passed
@webpro
Copy link
Collaborator

webpro commented May 7, 2024

🚀 This pull request is included in v5.13.0. See Release 5.13.0 for release notes.

Using Knip in a commercial project? Please consider sponsoring me.

@webpro
Copy link
Collaborator

webpro commented May 7, 2024

Thanks again @bbeesley!

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.

3 participants