-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
xo ignoring configuration file? #506
Comments
The first thing I would do is to try to place the config in package.json to rule out a problem with the config file resolution. There's some special Prettier handling that might not take into account the |
Is there a way to tell XO to output the config tree? IE --debug? NM I see #188 EDIT: looks like that task is open and in the help wanted category right now. EDIT 2: def seeing the same issue, it's not hunting a folder up for a xo-config.js file. In that file have I have defined some rule overrides that are not applying in a nested folder that has its own package json. I have not defined a xo config in the child project, just the root. Tried package.json based config and a xo-config.json and xo-config.js etc. |
I was encountering the same issue in one of our repositories. |
Closing as stale and likely duplicate of: For newcomers: Please read the existing comments or open a new issue with up to date details if this happens to you. |
This could be a configuration problem, but I started first encountered these issues after upgrading xo. I'm seeing 2 different issues where it looks like
xo
is ignoring the config I've given it and using some default settings. I have no configuration inpackage.json
that could override any of these settings.So defined at the root I've got:
xo.config.js
prettier.config.js
Yet both the rules in the xo config (
space: true
) and the rules in the prettier config (trailingComma: "es5"
) seem to not being used. When I runxo .
at the root of the project:The text was updated successfully, but these errors were encountered: