for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
const joinProject = slug => fetch(`/projects/${slug}/join`, {
joinProject
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
credentials: 'include'
}).then(response => response.json())
.then(membership => {
var list = document.querySelector("#project-members > section");
var element = document.createElement('div');
element.classList.add('member');
element.innerText = membership.user.username;
list.appendChild(element);
document.querySelector('#project-members > footer').removeChild(document.querySelector('#join-button'));
});
const putProjectDetails = slug => fetch(`/projects/${slug}/details`, {
putProjectDetails
method: 'PUT',
body: JSON.stringify({
need_description: editors.needDescription.getData(),
editors
/** global: editors */
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.
target_description: editors.targetDescription.getData(),
goal_description: editors.goalDescription.getData()
}),
.then(data => {
data
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.
window.location = `/projects/${slug}/workspace`;