Skip to content

Instantly share code, notes, and snippets.

@skfarhat
Last active October 10, 2018 13:09
Show Gist options
  • Save skfarhat/bf7c002997196f7f6086c6eb5d578d17 to your computer and use it in GitHub Desktop.
Save skfarhat/bf7c002997196f7f6086c6eb5d578d17 to your computer and use it in GitHub Desktop.
SublimeText 3 setup for ReactJs development

Global installs

npm install -g eslint
npm install -g esformatter 

Sublime installs

Open SublimeText Command + Shift + P (or whatever you use to open the command palette) Install Package:

  • Esformatter
  • Eslint

Find out what the keyboard shortcuts for linting and formatting are:

  • Click Preferences > Package Settings > ESLint > "Key Bindings - Default"
  • Click Preferences > Package Settings > ESFormatter > "Key Bindings - Default"

Setup formatting/linting for local project

cd /to/project/root/
eslint --init 

This should create a .eslintrc.(json/js/yaml) You can also create an .esformatter file. There's no tool for automatic generation of that one as far as I'm aware.

Note: The steps above haven't been tested for Windows. I don't care much for Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment