Skip to content

Commit

Permalink
Follow review
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Nov 25, 2023
1 parent cf1675c commit f325ea2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ if (!rules) {
);
}

function getConfig(type) {
return {
rules: Object.fromEntries(Object.keys(rules).map((rule) => {
return [`local-rules/${rule}`, type]
}))
}
}
var getConfig = (type) => ({
rules: Object.fromEntries(
Object
.keys(rules)
.map((rule) => [`local-rules/${rule}`, type])
);
});

module.exports = {
configs: {
error: getConfig("error"),
warn: getConfig("warn"),
all: getConfig("error"),
'all-warn': getConfig("warn"),
},
rules: rules,
};

0 comments on commit f325ea2

Please sign in to comment.