0.1.11 • Published 8 months ago

eslint-plugin-preact-signals v0.1.11

Weekly downloads
-
License
ISC
Repository
github
Last release
8 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

8 months ago

0.1.11

8 months ago

0.1.8

8 months ago

0.1.9

8 months ago

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.0

10 months ago