- Default rake task runs tests and linting (yes, repeating this!) (see
ci.rake
) - See file README.md for how to run ESLint
- See script
scripts/lint
. - We're using the AirBnb JavaScript style guidelines.
-
I started out trying to make RubyMine and WebStorm catch and fix linting errors. However, I find it faster to just do this with the command line. Your mileage may vary.
-
Create a custom scope like this for RubyMine, named "Inspection Scope"
file[react-rails-tutorial]:/&&!file[react-rails-tutorial]:tmp//&&!file[react-rails-tutorial]:log//&&!file[react-rails-tutorial]:client/node_modules//&&!file[react-rails-tutorial]:client/assets/fonts//&&!file[react-rails-tutorial]:app/assets/fonts//&&!file[react-rails-tutorial]:bin//&&!file[react-rails-tutorial]:app/assets/javascripts//
-
Install the code style and inspection files in client/jetbrains
-
Use the installed inspection settings and new Inspection Scope for code inspection.
-
RubyMine configuration is optional. All linters run from the command line.