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 ;)" | |
} | |
] | |
} |