documentation/test/fixture/es6-class.input.js
Tom MacWright 25152edeb9 style(prettier): Use prettier for code formatting (#710)
* style(prettier): Use prettier for code formatting

This saves us style issues. Also adds husky and lint-staged for pre-commit testing

Refs https://github.com/documentationjs/documentation/issues/709
2017-04-10 14:25:45 -04:00

22 lines
364 B
JavaScript

/**
* This is my component. This is from issue #458
*/
class Foo extends React.Component {}
/**
* Does nothing. This is from issue #556
*/
export default class Bar {
/**
* Creates a new instance
* @param {string} str
*/
constructor(str) {
/**
* A useless property
* @type {string}
*/
this.bar = '';
}
}