-
-
Notifications
You must be signed in to change notification settings - Fork 657
Code Style Guide
michael - blurpesec edited this page Jul 30, 2020
·
10 revisions
When contributing new code to the codebase, please follow the following code style guide for consistency and continued ease-of-maintenance! Thank you for your help! 🚀
Keep to the ordered format for imports as follows:
- External module imports
- Absolute imports (Use the
@operator to reference things in the/srcdirectory) - Relative imports ex.
import React from 'react';
import { Heading } from '@mycrypto/ui';
import { AccountContext, StoreContext } from '@services/Store';
import { actions } from './constants';
import './Dashboard.scss';Please avoid adding new libraries. If you do add one, please note it in your PR and a short description of what it is used for so that the person reviewing has a simple time understanding what it is/what it is used for.
If you add a ToDo somewhere in the code, please use the format @todo: <explanation> so it's easily-searchable in the future.