web/src/inc/Admin.js
Function render
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
return (
<div className="adminPage">
<table className="userList">
<tr>
Function registerUser
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerUser: function(){
//TODO check username is unique
//email password reset?
//fix 0 to null authyId
//check on frontend
Consider simplifying this complex logical expression. Open
Open
if(username && password && name && isValidEmail && (!authyID || this.validateAuthyID(authyID))){
$.ajax({
url: common.API_URL + common.REGISTER_USER,
type: "POST",
contentType: "application/json",
TODO found Open
Open
//TODO check username is unique
- Exclude checks
Parsing error: Unexpected token < Open
Open
<ul id={type} className="connectedSortable">
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/