Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Eslint doesn't work with config option #806

Answered by jose-elias-alvarez
sarmong asked this question in Q&A
Discussion options

You must be logged in to vote

Try using vim.fn.expand() to expand ~ into a full path:

    null_ls.builtins.diagnostics.eslint.with({
      extra_args = { "-c", vim.fn.expand("~/.config/.eslintrc.json") },
      prefer_local = "node_modules/.bin",
    }),

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sarmong
Comment options

@jose-elias-alvarez
Comment options

Answer selected by sarmong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants