Setting up IntelliJ - guardian/support-frontend GitHub Wiki
Set project root for clientside assets
- Right click on
assetsdir in left-hand directory view and clickMark 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,Importstab. TickUse 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 projectPreferences > Editor > Code Style > Javascript,Spacestab. TickES6 import/export bracesunderWithin
Quotes
Preferences > Editor > Code Style > Javascript,Punctuationtab choose single quotes always