Skip to content

Setting up IntelliJ

Joshua edited this page Mar 14, 2019 · 3 revisions

Set correct JavaScript version

  • Preferences > Languages & Frameworks > JavaScript, select Flow from JavaScript language version dropdown
  • Make sure Use Flow server for: Type checking is ticked.
  • It should auto-detect path to Flow package or executable. If not it should be [absolute path to project root]/node_modules/flow/bin

Set project root for clientside assets

  • Right click on assets dir in left-hand directory view and click Mark directory as, Sources root
  • You'll need to do this each time you start IntelliJ. If anyone finds a way to make IntelliJ remember this, update this wiki!!

Imports

These will let auto-import work properly in keeping with the project style

  • Preferences > Editor > Code Style > Javascript, Imports tab. Tick Use paths relative to the project. This will get it to use absolute paths for JS imports rather than relative which is consistent with the style of the project
  • Preferences > Editor > Code Style > Javascript, Spaces tab. Tick ES6 import/export braces under Within

Quotes

  • Preferences > Editor > Code Style > Javascript, Punctuation tab choose single quotes always

πŸ™‹β€β™€οΈ General Information

🎨 Client-side 101

βš›οΈ React+Redux

πŸ’° Payment methods

πŸŽ› Deployment & Testing

πŸ“Š AB Testing

🚧 Helper Components

πŸ“š Other Reference

1️⃣ Quickstarts

πŸ›€οΈ Tracking

Clone this wiki locally