Search code examples
configurationeslintspacemacs

How/where I can set eslint config file in spacemacs


I have project with eslint already setup and I would like to use it in Spacemacs. Unfortunately Spacemacs seems to ignore .eslintrc.js file in project root.

enter image description here

enter image description here

I'm on Windows 10 ...

Can anyone help?


Solution

  • Spacemacs (and flycheck, the autocompletion plugin that interfaces with eslint) don't look for eslint configs, they delegate that to eslint itself. If you're getting this issue it means eslint itself is erroring out when it tries to load your project config.

    Run eslint --print-config . from your project directory and resolve all errors it prints out, and that should fix it.