-
Notifications
You must be signed in to change notification settings - Fork 1.1k
package.json not being found #2016
Comments
Please explain what did you do, what did you expect to happen, and what happened instead.
Not sure what you're trying to achieve here, but this
This is probably not relevant to your problem, but you should keep in mind that running syntastic from Neovim is not supported. It "should work", but when you report a problem I'll look at it only if it can be reproduced with plain Vim. |
Sorry, I didn't know that Neovim is not officially supported. The What I did was using eslint to lint my JavaScript files, and it throws errors on lines where I have used imports saying that I haven't declared packages in a package.json - which is in the same directory from which I start Neovim, but my source files are always in subdirectories. So if I have a project:
and I start vim/neovim from Syntastic is a great achievement and I appreciate all the hard work that has been done on it but there is no way that I am going back to regular vim for the majority of my work so if you feel that this is not something that can be quickly answered or you that don't want to answer, please close it. I appreciate your time for looking at this issue and responding so quickly. |
Yes, but to what purpose do you want to find On a side note: you can enable debugging to see the way checkers are run (cf. Also, the right syntax for finding a file in the current directory and upwards is
Not unless you have
As I said, syntastic should work with Neovim. It's just that I have no way to debug some Neovim-specific behaviour. |
Ok, then I didn't understand it totally. I am going to debug and see what command is sent to Thanks for the help! |
In case anyone reads this, I ran into a nested package.json problem, and not a problem with syntastic. This import-js/eslint-plugin-import#685 pull request will eventually help with that. |
I am using eslint for JavaScript and I have a
.eslintrc
file at the root of my project's directory alongsidepackage.json
.The eslintrc seems to be read, but when I am linting a file that is in a subdirectory it appears that the package.json has not been found causing many
import/no-extraneous-dependancies
errors for imports.In my
.vimrc
the main configuration line for using eslint is:autocmd FileType javascript let b:syntastic_checkers = findfile('.eslintrc', '.,..,../..,../../..;') != '' ? ['eslint'] : ['standard']
Perhaps it's a really simple fix
NVIM v0.2.0-150-g33319b1
Syntastic version: 3.8.0-24 (Vim 704, Neovim, Darwin)
The text was updated successfully, but these errors were encountered: