aleburrascano
  • Joined on 2026-09-27

@aleburrascano/eslint-plugin-candor (1.0.0)

Published 2026-10-26 19:11:55 +00:00 by aleburrascano

Installation

@aleburrascano:registry=https://altune-git.duckdns.org/api/packages/aleburrascano/npm/
npm install @aleburrascano/eslint-plugin-candor@1.0.0
"@aleburrascano/eslint-plugin-candor": "1.0.0"

About this package

Lint rules for TypeScript that says what it means. Runs in oxlint (jsPlugins) and ESLint.

eslint-plugin-candor

Lint rules for TypeScript that says what it means. Each rule bans a pattern that hides a fact from the reader or the compiler.

rule bans instead
no-comments any code comment a name, a type or a test
no-unnamed-regex a regex literal used in place a named constant (DIGITS_ONLY) or predicate
no-empty-fallbacks ?? [], || {}, cond ? x : [] one default at the boundary, or a union type
no-inline-object-types { … } types in a signature a named type
no-double-cast as unknown as T parse the value at the boundary
no-relative-imports ./ and ../ imports the repo's import alias
no-wall-clock-assertions asserting on Date.now() or performance.now() differences in tests fake timers

Use with oxlint

{
  "jsPlugins": [{ "name": "candor", "specifier": "@aleburrascano/eslint-plugin-candor" }],
  "rules": { "candor/no-comments": "error" }
}

Install

Published to this Gitea's npm registry. Add to the project's .npmrc:

@aleburrascano:registry=http://localhost:3300/api/packages/aleburrascano/npm/

Release

Bump version, run npm test, then npm publish.

Dependencies

Development Dependencies

ID Version
@typescript-eslint/parser 8.71.1
eslint 10.12.0
Details
npm
2026-10-26 19:11:55 +00:00
54
UNLICENSED
latest
2.9 KiB
Assets (1)
Versions (1) View all
1.0.0 2026-10-26