dharness/max-file-lines
suggestionA file past the ceiling this project set.
Every file stays short enough to read in one sitting. The ceiling counts code, so documenting a file never pushes it over; a project that wants comments or blank lines counted turns them on.
Every file ESLint lints
src/price.ts.dharness/rules.json1{ "maxFileLines": 4 }src/price.ts1/**2 * Whether an item costs the buyer nothing.3 */4export function isFree(price: number) {5 return price <= 0;6}78export const FREE = 0;9export const LIMIT = 100;4:1This file has 5 lines, over the 4 this project allows. Split it.
{ "schema": "dharness.rules/v1", "maxFileLines": 500, "countComments": false, "countBlankLines": false, "roleSuffixes": [".types.ts", ".constants.ts", ".helpers.ts", ".schema.ts"]}The numbers live in `.dharness/rules.json`, so one project can differ from another without publishing a new version. A missing or unreadable file falls back to the defaults, and every other rule keeps running.



