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

package.json not being found #2016

@timc3

Description

@timc3

I am using eslint for JavaScript and I have a .eslintrc file at the root of my project's directory alongside package.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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions