Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = ({name, places, index, count, filesCount, errorsCount}) => {
const json = jsonFormatter({
name, places, index, count, filesCount, errorsCount,
});
if (!json)
return '';
if (!json.errors.length)
return '';
const output = [];
for (const {name, places} of json.errors) {
const line = buildLine(places);
output.push([
underline(name),
table(line, {
module.exports = ({name, source, places, index, count, filesCount, errorsCount}) => {
const json = jsonFormatter({
name, source, places, index, count, filesCount, errorsCount,
});
if (!json)
return '';
if (!json.errors.length)
return;
const output = [];
for (const {name, places} of json.errors) {
const messages = places.map(convertPlace);
output.push({
filePath: name,
source,
module.exports = ({name, source, places, index, count, filesCount, errorsCount}) => {
const json = jsonFormatter({
name, source, places, index, count, filesCount, errorsCount,
});
if (!json)
return '';
if (!json.errors.length)
return;
const output = [];
for (const {name, places, source} of json.errors) {
for (const {rule, position, message} of places) {
const {line, column} = position;
const location = {
start: {
line,