
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@textlint/linter-formatter
Advanced tools
textlint output formatter.
npm install @textlint/linter-formatter
See formatters/.
Currently, you can use "stylish" (defaults), "checkstyle", "compact", "jslint-xml", "json", "junit", "pretty-error", "table", "tap", and "unix".
const { loadFormatter } = require("@textlint/linter-formatter");
const formatter = await loadFormatter({
formatterName: "stylish"
});
const output = formatter.format([
{
filePath: "./README.md",
messages: [
{
ruleId: "semi",
line: 1,
column: 23,
message: "Expected a semicolon."
}
]
}
]);
console.log(output);
/*
./README.md
1:23 warning Expected a semicolon semi
✖ 1 problem (0 errors, 1 warning)
*/
export declare type FormatterConfig = {
color?: boolean;
formatterName: string;
};
export interface FormatterDetail {
name: string;
}
export declare function getFormatterList(): FormatterDetail[];
$ textlint -f json README.md --rule no-todo | textlint-formatter -f pretty-error --stdin
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT
FAQs
textlint output formatter
The npm package @textlint/linter-formatter receives a total of 308,624 weekly downloads. As such, @textlint/linter-formatter popularity was classified as popular.
We found that @textlint/linter-formatter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.