You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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):
foo/bar.js
file that uses spaces instead of tabspackage.json
) run:$ cd foo $ xo bar.js
The text was updated successfully, but these errors were encountered: