Recipe to test your ES6 React components.
$ npm install gulp gulp-util gulp-mocha gulp-istanbul isparta run-sequence babel jsdom
Note: You must name all your files .js
, even if they contains JSX, or istanbul will not instrument them.
"rules": { | |
"no-restricted-syntax": [ | |
"error", { | |
"selector": "BinaryExpression[left.operator='typeof'][right.value='undefined']", | |
"message": "There's no reason to do that in our codebase ;)" | |
} | |
] | |
} |
[alias] | |
patch = commit --amend --no-edit --reset-author | |
yolo = commit --amend --no-edit --reset-author --no-verify | |
update = pull --ff-only | |
draft = !sh -c 'git push origin HEAD:refs/drafts/master/${1-bugfix}' - | |
publish = !sh -c 'git push origin HEAD:refs/for/master/${1-bugfix}' - |
Install jQuery 1.9.1 and Browserify-shim
npm install [email protected] --save
npm install browserify-shim --save-dev
Add the following entries in your package.json
I hereby claim:
To claim this, I am signing this object:
{ | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch", | |
"case", |