main
js 24 lines 880 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @flow strict
8 */
9
10 // This fork provides www-specific feature flag values for
11 // eslint-plugin-react-hooks without pulling in the full
12 // ReactFeatureFlags.www.js fork. The full fork imports dynamic flags
13 // via require('ReactFeatureFlags'), which is a www Haste module that
14 // doesn't exist in Node.js environments where the ESLint plugin runs.
15 //
16 // Only eprh_* flags are needed by the ESLint plugin.
17
18 export const eprh_enableUseKeyedStateCompilerLint: boolean = true;
19 export const eprh_enableVerboseNoSetStateInEffectCompilerLint: boolean = true;
20 export const eprh_enableExhaustiveEffectDependenciesCompilerLint:
21 | 'off'
22 | 'all'
23 | 'extra-only'
24 | 'missing-only' = 'extra-only';