mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-15 17:02:38 +00:00
Lint
This commit is contained in:
@@ -9,7 +9,7 @@ const ErrorBar = (props)=>{
|
|||||||
if(!props.errors.length) return null;
|
if(!props.errors.length) return null;
|
||||||
let hasOpenError = false, hasCloseError = false, hasMatchError = false;
|
let hasOpenError = false, hasCloseError = false, hasMatchError = false;
|
||||||
|
|
||||||
props.errors.map( err => {
|
props.errors.map((err)=>{
|
||||||
if(err.id === 'OPEN') hasOpenError = true;
|
if(err.id === 'OPEN') hasOpenError = true;
|
||||||
if(err.id === 'CLOSE') hasCloseError = true;
|
if(err.id === 'CLOSE') hasCloseError = true;
|
||||||
if(err.id === 'MISMATCH') hasMatchError = true;
|
if(err.id === 'MISMATCH') hasMatchError = true;
|
||||||
@@ -18,9 +18,9 @@ const ErrorBar = (props)=>{
|
|||||||
const renderErrors = ()=>(
|
const renderErrors = ()=>(
|
||||||
<ul>
|
<ul>
|
||||||
{props.errors.map((err, idx)=>{
|
{props.errors.map((err, idx)=>{
|
||||||
<li key={idx}>
|
<li key={idx}>
|
||||||
Line {err.line} : {err.text}, '{err.type}' tag
|
Line {err.line} : {err.text}, '{err.type}' tag
|
||||||
</li>
|
</li>;
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user