Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Conversation

@dflupu
Copy link
Contributor

@dflupu dflupu commented Jan 30, 2020

This lets you run xo with whatever options you like.

@sindresorhus
Copy link
Member

I intentionally didn't do this as it's better to put the config in package.json so other things can read it too, like editor plugins.

@dflupu
Copy link
Contributor Author

dflupu commented Feb 1, 2020

@sindresorhus There are some cases in which you'd like to use settings different from those in package.json. For example I'm using this with {fix: true} as part of a yeoman generator (it supports gulp plugins) and I want to let the user pass in xo options for the generated files/project.

@dflupu dflupu closed this Feb 4, 2020
@sindresorhus
Copy link
Member

Alright. I'm willing to add it if you can document when to use it and not to use it.

@sindresorhus sindresorhus reopened this Feb 8, 2020
@dflupu dflupu force-pushed the pass-options-to-xo branch from c16317e to dbbaf82 Compare February 13, 2020 18:04
@dflupu dflupu force-pushed the pass-options-to-xo branch from dbbaf82 to 6453ce6 Compare February 13, 2020 18:11
@dflupu
Copy link
Contributor Author

dflupu commented Feb 13, 2020

Gave it a shot. Let me know if the description isn't clear enough.

@sindresorhus sindresorhus changed the title pass options to xo Add ability to pass options directly to XO Feb 17, 2020
@sindresorhus sindresorhus merged commit ea77871 into xojs:master Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants