for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import template from './template.html';
import './style.scss';
export class Control {
constructor( options ) {
this.options = _.defaults( options || {}, {
_
/** global: _ */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
name: _.random( 0, 10000 ),
label: 'My Checkbox'
} );
this.template = _.template( template );
}
/**
* Create a checkbox and return the html.
*
* @since 1.0.0
* @return {jQuery} Control created.
*/
render() {
this.$element = $( this.template( this.options ) );
this.$input = this.$element.find( 'input' );
return this.$element;
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.