Skip to content

Instantly share code, notes, and snippets.

@MarkGalloway
Last active April 28, 2017 16:54
Show Gist options
  • Save MarkGalloway/0ec8f0d26e83ff3b086f93e8ca3b1232 to your computer and use it in GitHub Desktop.
Save MarkGalloway/0ec8f0d26e83ff3b086f93e8ca3b1232 to your computer and use it in GitHub Desktop.
Sublime setup for Javascript/React

Setting up Sublime for React development

General Sublime

Syntax Highlighting

Error/Linting highlighting

{
   // ...
 "syntax_map": {
   "javascript (babel)": "javascript"
 }
}

Create React App specific config

  • extend CRA esling in package.json
{
  // ...
  "eslintConfig": {
    "extends": "react-app"
  }
}
npm install -g eslint-config-react-app@0.3.0 eslint@3.8.1 babel-eslint@7.0.0 eslint-plugin-react@6.4.1 eslint-plugin-import@2.0.1 eslint-plugin-jsx-a11y@4.0.0 eslint-plugin-flowtype@2.21.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment