UNPKG

ruins

Version:

> [!IMPORTANT] > This is in beta. Not everything is ironed out and some modules might misbehave

11 lines 435 B
import { basename } from "node:path"; export const getEslintIgnoreByFile = (input, preferOff, filenameOnly) => { return input.issues.map((issue) => ({ files: [filenameOnly ? basename(issue.filePath) : issue.filePath], rules: issue.messages.reduce((acc, message) => { acc[message.ruleId] = preferOff ? "off" : "warn"; return acc; }, {}), })); }; //# sourceMappingURL=errors.js.map