0.1.11 • Published 10 months ago

eslint-plugin-preact-signals v0.1.11

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

eslint-plugin-preact-signals

ESLint plugin for type-aware linting of usage of Preact Signals, including from @preact/signals-core, @preact/signals, and @preact/signals-react.

Installation

Add the preact-signals plugin to your ESLint configuration, and then you can reference the rules in your config.

Rules

  • preact-signals/no-implicit-boolean-signal: disallow the implicit coercion of variables that can contain a Signal to a boolean value. This is useful for preventing accidental omissions of .value or .peek().
    • Options:
      • allowNullishCoalesce:
        • false: disallow implicit coercion via ??
        • nullish (default): allow implicit coercion via ?? when the signal variable may be null
        • always: allow all uses of ?? with signals
0.1.10

10 months ago

0.1.11

10 months ago

0.1.8

10 months ago

0.1.9

10 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.0

11 months ago