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

Bug: xo ignores package.json config when run from a project subfolder #475

Open
teehemkay opened this issue May 11, 2020 · 0 comments
Open
Labels

Comments

@teehemkay
Copy link

teehemkay commented May 11, 2020

When xo is run from a project subfolder, it ignores the config in package.json.

This is regression introduced between 0.26.1 and 0.27.0 (likely in #416)

How to reproduce (see my SSCCE here):

  • setup xo with a config minimally different from the default one (e.g. use spaces instead of tab)
  • create a foo/bar.js file that uses spaces instead of tabs
  • from the top-level project folder (the one that contains package.json) run:
$ xo foo/bar.js
  • observer that there are no error or warning
  • now run the following commands:
$ cd foo
$ xo bar.js
  • observe the following error message:
bar.js:2:1
  ✖  2:1  Expected indentation of 1 tab but found 2 spaces.  indent
@teehemkay teehemkay changed the title Bug: xo ignores package.json config when run from project subfolder Bug: xo ignores package.json config when run from a project subfolder May 11, 2020
@fregante fregante added the bug label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants