denoland / deno_lint

Blazing fast linter for JavaScript and TypeScript written in Rust
https://lint.deno.land/
MIT License
1.53k stars 172 forks source link

suggestion: `ban-untagged-deprecation` #1266

Open iuioiua opened 5 months ago

iuioiua commented 5 months ago

Ensures that all @deprecated tags have an accompanying message. I created https://github.com/denoland/deno_std/pull/4577 to compensate for this in std.

Fails:

/**
 * @deprecated
 */
export const foo = 42;

Passes:

/**
 * @deprecated This will be removed in 1.0.0.
 */
export const foo = 42;
bartlomieju commented 4 months ago

Seems reasonable 👍 contributions are welcome