Search code examples
javascripteslintc9.io

Use eslint on cloud 9 ide


I have installed eslint correctly, like the following on my cloud 9 (c9) environment:

npm install -g eslint 
eslint --init

I would like to actively use eslint with c9 on the one hand to get errors fixed, but on the other hand to point out inconsistencies within my js. However, I haven`t found any configuration page or way to add it directly to the ide.

Any suggestions how to add my configuration to c9 and run the eslint command automatically?

Appreciate your replies!


Solution

  • Cloud9 has eslint built in by default, however the default implementation of eslint uses a browser copy of eslint that does not support the same features as the cli tool, This plugin supports eslint properly.

    https://github.com/michaelmitchell/c9.ide.language.javascript.eslintd