jshint

  • install
    $ sudo npm install -g jshint
  • configuration

enforcing is making the jshint more strict, relaxing is to suppress some warning. .jshintrc option explanation.

scss-lint

  • install we need the ruby2.0 or above to install scss-lint.
    $ sudo apt-add-repository ppa:brightbox/ruby-ng
    $ sudo apt-get update
    $ sudo apt-get install ruby2.3 ruby2.3-dev    
    $ sudo gem install scss_lint
  • configure

Create a .scss-lint.yml in user home directory.

This is the default yaml config in official site.

phpcs

It’s code sniffer for php

  • install
    $ curl -sS https://getcomposer.org/installer | php;
    $ mv composer.phar /usr/local/bin/composer;
    $ composer help
    $ composer global require "squizlabs/php_codesniffer=*"
  • config

Create a phpcs.xml in home directory, use --standard=/path/to/phpcs.xml to setup the customized configuration.

eslint

  • install
sudo npm i -g eslint
sudo npm i -g estraverse estraverse-fb eslint-plugin-react babel-eslint
  • config

Create a .eslintrc in project directory, please refer my dotfile