Skip to content

Commit

Permalink
resolve gendiif - 'Error: 5:3 error Expected no linebreak before this…
Browse files Browse the repository at this point in the history
… expression implicit-arrow-linebreak'
  • Loading branch information
IvanLiVa committed Jun 26, 2024
1 parent 3a14c94 commit 685f503
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1719426124915" clover="3.2.0">
<project timestamp="1719426124915" name="All files">
<coverage generated="1719426489687" clover="3.2.0">
<project timestamp="1719426489687" name="All files">
<metrics statements="207" coveredstatements="207" conditionals="52" coveredconditionals="52" methods="12" coveredmethods="12" elements="271" coveredelements="271" complexity="0" loc="207" ncloc="207" packages="3" files="7" classes="7"/>
<package name="frontend-project-46">
<metrics statements="26" coveredstatements="26" conditionals="6" coveredconditionals="6" methods="2" coveredmethods="2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h1><a href="../../index.html">All files</a> frontend-project-46/formatters</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">frontend-pro
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">frontend-pro
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">frontend-pro
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">frontend-pro
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/frontend-project-46/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../index.html">All files</a> frontend-project-46</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/frontend-project-46/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">frontend-projec
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">frontend-pro
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/frontend-project-46/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> frontend-project-46/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">frontend-pro
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-06-26T18:22:04.901Z
at 2024-06-26T18:28:09.675Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
3 changes: 1 addition & 2 deletions src/gendifffunc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import _ from 'lodash';
import { stylish, formatPlain, formatJson } from '../formatters/index.js';

const getKey = (data1, data2) =>
_.union(Object.keys(data1), Object.keys(data2)).sort();
const getKey = (data1, data2) => _.union(Object.keys(data1), Object.keys(data2)).sort();

const difResult = (data1, data2) => {
const keys = getKey(data1, data2);
Expand Down

0 comments on commit 685f503

Please sign in to comment.