eslint-plugin-comment-length
Version:
An ESLint plugin that provides rules that limit the line length of your comments
30 lines (25 loc) • 638 B
text/typescript
import type { TSESTree } from "@typescript-eslint/utils";
import type { Options } from "./typings.options.js";
export type Context = Options & {
/**
* specifies the amount and format of whitespace a particular comment has to
* the left of it.
*/
whitespace: {
string: string;
size: number;
};
/**
* specifies the amount if characters that a particular comment boilerplate
* takes (e.g. '// '.length --> 3)
*/
boilerplateSize: number;
/**
* contains context related to the currently analyzed comment
*/
comment: {
value: string;
lines: string[];
range: TSESTree.Range;
};
};