Skip to content

Method for Running ESLint with NPM Module Presets #76

@atomdmac

Description

@atomdmac

When developing Node.js apps, it's pretty common for a project to use NPM packages to define presets for linting settings. When a project is "docker-ized", the npm_modules directory is often installed to a Docker volume rather than within the host system. This has the drawback of making the presets unavailable to the host machine that Vim is running on.

I saw that ALE offers a g:ale_command_wrapper setting which can allow you to write a script that will run the linter within Docker. An example can be found here. The example is for a Python linter but the same approach works for Node projects when using ALE.

Is there a way to do this with coc-eslint?

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions