[ nodejs ] eslint

installation

$ npm install eslint --save

init

$ ./node_modules/.bin/eslint --init
Answer the question about my style

.eslintrc.json will be created in the folder
ref : http://eslit.org/docs/rules

run again

$ ./node_modules/.bin/eslint folder 

eslint package for sublime

  1. Package : SublimeLinter

setup : SublimeText > Preferences > Package Settings > SublimeLinter

setup : Tools > SublimeLinter

2) sublimelinter-contrib-eslint

3) restart sublime

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s