eslint/rules/library
Library: the sources of a library, whose generic API may write any (a constructor type) and void in a union (a callback returning T | void). Using an any value stays an error (no-unsafe-*).
2 rules, 0 on. Source: lint/eslint/rules/library.mjs.
| Rule | Setting | Files | What it checks | Why |
|---|---|---|---|---|
@typescript-eslint/no-explicit-any | off | src/**/*.ts | — | Off: a generic API may need any: new (...parameters: any[]) => T. |
@typescript-eslint/no-invalid-void-type | off | src/**/*.ts | — | Off: a callback type may return T | void. |