halenohi / lints

*lint config files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

Preparation

For vim user

If you have not installed any syntax checker, you must install syntastic.

For atom user

If you have not installed linter, you must install it before (apm install linter).

JavaScript

common

If you have not installed nodejs, you must install it.

  1. Install nvm. Please follow the instruction on the page.
  2. Install nodejs nvm install stable and set it as default nvm alias default stable.

Then npm command is available now. Install jshint

  1. npm install jshint

vim

  1. Let the variable let g:syntastic_javascript_checkers = ['jshint']

atom

  1. Install linter-jshint apm install linter-jshint

Ruby

Common

  1. Install rubocop gem install -g rubocop

vim

with syntastic (auto syntax highlight) (Recommended)

  1. Just let the variable let g:syntastic_ruby_checkers = ['rubocop']
  2. You may have some errors, then see the wiki

with vim-rubocop (manually invoke rubocop [:RuboCop])

  1. Install the plugin anyhow

atom

  1. Intall linter-rubocop apm install linter-rubocop

SCSS

common

  1. Install scss-lint gem install scss-lint

vim

  1. Just let the value let g:syntastic_scss_checkers = ['scss_lint']

atom

  1. Intall linter-scss-lint apm install linter-scss-lint

About

*lint config files