- English in the codebase and Git messages
- Romanian on issues and comments
- we use the Google Javascript Style Guide
- run the linter with
gulp lint
- indentation of 2 spaces in all the files.
- strive to keep the line width under 80 characters
- order of methods in a file:
- React lifecycle with
render
at the end renderSomething
sub-methodsonActionCallback
methods- other
- React lifecycle with
- use milestones for structuring your work
- labels:
minor
- can be tackled by a newbiebug
important
- somebody thinks this has a higher priorityurgent
- somebody important thinks this has a higher priorityproject
- a collection of tasks that should be done in separate issues
- keep in README.md a living documentation of the directory and files structure
- currently we don't have tests... but that will change in the future
- in
mixins
add code that usesthis
and inlib
add pure functions
use strict
- use ES6 classes
- add a
my-class.less
file and import it frommain.less
"use strict";
import React from "react";
import "../main.less";
export default class MyClass extends React.Component {
static displayName = "MyClass"
static propTypes = { initialCount: React.PropTypes.number }
state = { count: props.initialCount }
render() {
return <div className="my-class">
</div>;
}
}