Commit 1294b6d9 authored by David Gonçalves's avatar David Gonçalves 📖


parent bbe86c2a
......@@ -10,7 +10,39 @@ Hero Fighter story editor is a program for making custom stages that can be down
## Development Requirements
- Install NodeJS
- NodeJS
- [Atom Editor]( *(optional)*
## Naming Conventions
[JS Conventions](
The only exception to the rules above is that we use tabs for indentation and spaces
for alignment. Eg.
**JavaScript good practices**
1. Place `"use strict";` on top of every JavaScript file.
2. Use `let` instead of `var` for variables.
3. Use strict equality operator `===` and `!==` for comparisons instead of regular equality operator `==` and `!=`.
4. Use Automated Linters (JSLint, JSHint, ESLint). ~~I also use `linter-gjslint` on Atom editor.~~ I use `linter-eslint` because it is compatible with ReactJS.
5. Test using [Mocha](, [Chai](, [Sinon]( Tutorial [here](
6. Use [Babel]( for compatibility with older browsers.
**Interesting ES6 JavaScript tricks**
1. [Template literals](
2. Exponentiation operator `2 ** 3 = 2 * 2 * 2`.
3. Unary `+` operator coverts string to number.
4. Double NOT `!!` converts value to boolean.
5. [Labels](
6. [Arrow functions](
7. [Debugging](
## Running the project
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment