Eslint ignore .eslintrc project

I am working on a project where the file is .eslintrc

checked out in the original control at the root of the project.

The problem is that it has custom dependencies and when I use the tool to run my link (syntax with Vim) it fails. The dependencies are common and I want to skip them in my editor.

I want to use a different .eslintrc file than the one in the root of the project.

How can I ignore <projectroot>/.eslintrc

and use instead /custom/path/.eslintrc

?

+3


source to share


1 answer


A look at the ESLint docs tells us that you want to pass a parameter --no-eslintrc

to ignore .eslintrc

in the project root and --config /custom/path/.eslintrc

to use that file instead.

The Syntastic README says that you can customize the arguments given to eslint like so:



let g:syntastic_javascript_eslint_args = "--no-eslintrc --config /custom/path/.eslintrc"

      

+7


source







All Articles