Supported Scope
FlagLint currently supports LaunchDarkly Node.js server-side SDK evaluation calls in JavaScript and TypeScript from:
@launchdarkly/node-server-sdk- legacy
launchdarkly-node-server-sdk
React SDK hooks, HOC, and provider are detected and reported for manual review. Browser SDKs, non-Node SDKs, and non-LaunchDarkly providers are outside current detection coverage and do not appear in reports.
API Coverage
Section titled “API Coverage”| Pattern | Scan | Apply | Manual Review | Unsupported |
|---|---|---|---|---|
variation("key", ctx, false) with literal fallback | Yes | Yes, when type and OpenFeature binding are proven | No | No |
boolVariation("key", ctx, false) | Yes | Yes, when OpenFeature binding is proven | No | No |
stringVariation("key", ctx, "control") | Yes | Yes, when OpenFeature binding is proven | No | No |
numberVariation("key", ctx, 100) | Yes | Yes, when OpenFeature binding is proven | No | No |
jsonVariation("key", ctx, {...}) | Yes | Yes, when OpenFeature binding is proven | No | No |
| Dynamic flag keys | Yes | No | Yes | No |
*VariationDetail(...) methods | Yes | No | Yes | No |
allFlags() and allFlagsState() | Yes | No | Yes | No |
| Unknown fallback type | Yes | No | Yes | No |
| Configured wrappers | Yes | No | Yes | No |
| Ambiguous OpenFeature client binding | Yes | No | Yes | No |
| Browser SDKs | No | No | No | Yes |
React SDK hooks (useFlags, useLDClient, useVariation) | Yes | No | Yes | No |
React SDK HOC (withLDConsumer) | Yes | No | Yes | No |
React SDK provider (LDProvider, asyncWithLDProvider) | Yes | No | Yes | No |
| Go, Java, Python, or other SDKs | No | No | No | Yes |
| Non-LaunchDarkly providers | No | No | No | Yes |
Supported Import Provenance
Section titled “Supported Import Provenance”FlagLint resolves LaunchDarkly client provenance from supported SDK imports only:
import * as LaunchDarkly from "@launchdarkly/node-server-sdk";const client = LaunchDarkly.init("sdk-key");import { init as ldInit } from "@launchdarkly/node-server-sdk";const client = ldInit("sdk-key");const { init: ldInit } = require("@launchdarkly/node-server-sdk");const client = ldInit("sdk-key");Unrelated functions named init, ldInit, client, feature, flag, or similar do not establish LaunchDarkly provenance.
React SDK Detection
Section titled “React SDK Detection”React SDK hooks, HOC, and provider are detected via verified import chains from launchdarkly-react-client-sdk:
import { useFlags, useLDClient } from "launchdarkly-react-client-sdk";// useFlags() and useLDClient() calls are reported for manual reviewimport { withLDConsumer } from "launchdarkly-react-client-sdk";// withLDConsumer()(Component) is reported for manual reviewimport { LDProvider, asyncWithLDProvider } from "launchdarkly-react-client-sdk";// Provider usage is reported for manual reviewReact SDK patterns are reported for manual review and are not auto-migrated. They fall outside the current flaglint migrate --apply scope because they require browser/React-specific OpenFeature provider setup that cannot be inferred statically.