1,658 matches across 25 files for TODO lang:JavaScript
snippet_mode: grep · sorted by relevance
.eslintrc.js JAVASCRIPT 4 matches view file →
41 rules: {
42 'ft-flow/array-style-complex-type': [OFF, 'verbose'],
43 'ft-flow/array-style-simple-type': [OFF, 'verbose'], // TODO should be WARNING
44 'ft-flow/boolean-style': ERROR,
45 'ft-flow/no-dupe-keys': ERROR,
· · ·
46 'ft-flow/no-primitive-constructor-types': ERROR,
47 'ft-flow/no-types-missing-file-annotation': OFF, // TODO should be ERROR
48 'ft-flow/no-unused-expressions': ERROR,
49 // 'ft-flow/no-weak-types': WARNING,
· · ·
104 'no-process-env': OFF,
105 'no-proto': ERROR,
106 'no-redeclare': OFF, // TODO should be WARNING?
107 'no-return-assign': OFF,
108 'no-script-url': ERROR,
· · ·
267
268 // Enforced by Prettier
269 // TODO: Prettier doesn't handle long strings or long comments. Not a big
270 // deal. But I turned it off because loading the plugin causes some obscure
271 // syntax error and it didn't seem worth investigating.
compiler/apps/playground/colors.js JAVASCRIPT 1 matches view file →
49 'blue-30': '#58C4DC', // unused
50 'blue-20': '#ABE2ED',
51 'blue-10': '#E6F7FF', // todo: doesn't match illustrations
52 'blue-5': '#E6F6FA',
53
compiler/packages/babel-plugin-react-compiler/scripts/build-react-hooks-fixures.js JAVASCRIPT 3 matches view file →
77 let prefix = '';
78 if (error !== null) {
79 prefix = `todo.bail.`;
80 code = `// @skip\n// Unsupported input\n${code}`;
81 } else if (fixture.valid === false) {
· · ·
82 if (passes) {
83 prefix = `todo.error.invalid-`;
84 code = `// @skip\n// Passed but should have failed\n${code}`;
85 } else {
· · ·
89 } else if (!passes) {
90 // oops, error when it should have passed
91 prefix = `todo.`;
92 code = `// @skip\n// Failed but should have passed\n${code}`;
93 }
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/array-from-arg1-captures-arg0.js JAVASCRIPT 1 matches view file →
2
3/**
4 * TODO: Note that this `Array.from` is inferred to be mutating its first
5 * argument. This is because React Compiler's typing system does not yet support
6 * annotating a function with a set of argument match cases + distinct
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/array-from-captures-arg0.js JAVASCRIPT 1 matches view file →
2
3/**
4 * TODO: Note that this `Array.from` is inferred to be mutating its first
5 * argument. This is because React Compiler's typing system does not yet support
6 * annotating a function with a set of argument match cases + distinct
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/array-spread-mutable-iterator.js JAVASCRIPT 1 matches view file →
1/**
2 * TODO: object spreads should have conditionally mutate semantics
3 * Found differences in evaluator results
4 * Non-forget (expected):
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capture-indirect-mutate-alias.js JAVASCRIPT 2 matches view file →
15export const FIXTURE_ENTRYPOINT = {
16 fn: component,
17 params: ['TodoAdd'],
18 isComponent: 'TodoAdd',
19};
· · ·
18 isComponent: 'TodoAdd',
19};
20
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capture_mutate-across-fns.js JAVASCRIPT 2 matches view file →
13export const FIXTURE_ENTRYPOINT = {
14 fn: component,
15 params: ['TodoAdd'],
16 isComponent: 'TodoAdd',
17};
· · ·
16 isComponent: 'TodoAdd',
17};
18
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-arrow-function-1.js JAVASCRIPT 2 matches view file →
9export const FIXTURE_ENTRYPOINT = {
10 fn: component,
11 params: ['TodoAdd'],
12 isComponent: 'TodoAdd',
13};
· · ·
12 isComponent: 'TodoAdd',
13};
14
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-func-mutate-3.js JAVASCRIPT 2 matches view file →
11export const FIXTURE_ENTRYPOINT = {
12 fn: component,
13 params: ['TodoAdd'],
14 isComponent: 'TodoAdd',
15};
· · ·
14 isComponent: 'TodoAdd',
15};
16
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-func-mutate-nested.js JAVASCRIPT 2 matches view file →
10export const FIXTURE_ENTRYPOINT = {
11 fn: component,
12 params: ['TodoAdd'],
13 isComponent: 'TodoAdd',
14};
· · ·
13 isComponent: 'TodoAdd',
14};
15
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-function-1.js JAVASCRIPT 2 matches view file →
9export const FIXTURE_ENTRYPOINT = {
10 fn: component,
11 params: ['TodoAdd'],
12 isComponent: 'TodoAdd',
13};
· · ·
12 isComponent: 'TodoAdd',
13};
14
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-function-alias-computed-load-iife.js JAVASCRIPT 1 matches view file →
11export const FIXTURE_ENTRYPOINT = {
12 fn: bar,
13 params: ['TodoAdd'],
14};
15
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-function-alias-computed-load.js JAVASCRIPT 2 matches view file →
12export const FIXTURE_ENTRYPOINT = {
13 fn: bar,
14 params: ['TodoAdd'],
15 isComponent: 'TodoAdd',
16};
· · ·
15 isComponent: 'TodoAdd',
16};
17
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-function-decl.js JAVASCRIPT 2 matches view file →
10export const FIXTURE_ENTRYPOINT = {
11 fn: component,
12 params: ['TodoAdd'],
13 isComponent: 'TodoAdd',
14};
· · ·
13 isComponent: 'TodoAdd',
14};
15
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-function-skip-computed-path.js JAVASCRIPT 2 matches view file →
6export const FIXTURE_ENTRYPOINT = {
7 fn: StoreLandingUnseenGiftModalContainer,
8 params: ['TodoAdd'],
9 isComponent: 'TodoAdd',
10};
· · ·
9 isComponent: 'TodoAdd',
10};
11
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-function-within-block.js JAVASCRIPT 2 matches view file →
12export const FIXTURE_ENTRYPOINT = {
13 fn: component,
14 params: ['TodoAdd'],
15 isComponent: 'TodoAdd',
16};
· · ·
15 isComponent: 'TodoAdd',
16};
17
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-member-expr.js JAVASCRIPT 2 matches view file →
9export const FIXTURE_ENTRYPOINT = {
10 fn: component,
11 params: ['TodoAdd'],
12 isComponent: 'TodoAdd',
13};
· · ·
12 isComponent: 'TodoAdd',
13};
14
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-nested-member-call.js JAVASCRIPT 2 matches view file →
9export const FIXTURE_ENTRYPOINT = {
10 fn: component,
11 params: ['TodoAdd'],
12 isComponent: 'TodoAdd',
13};
· · ·
12 isComponent: 'TodoAdd',
13};
14
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-nested-member-expr-in-nested-func.js JAVASCRIPT 2 matches view file →
11export const FIXTURE_ENTRYPOINT = {
12 fn: component,
13 params: ['TodoAdd'],
14 isComponent: 'TodoAdd',
15};
· · ·
14 isComponent: 'TodoAdd',
15};
16
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-nested-member-expr.js JAVASCRIPT 2 matches view file →
9export const FIXTURE_ENTRYPOINT = {
10 fn: component,
11 params: ['TodoAdd'],
12 isComponent: 'TodoAdd',
13};
· · ·
12 isComponent: 'TodoAdd',
13};
14
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-variable-in-nested-block.js JAVASCRIPT 2 matches view file →
11export const FIXTURE_ENTRYPOINT = {
12 fn: component,
13 params: ['TodoAdd'],
14 isComponent: 'TodoAdd',
15};
· · ·
14 isComponent: 'TodoAdd',
15};
16
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-variable-in-nested-function.js JAVASCRIPT 2 matches view file →
11export const FIXTURE_ENTRYPOINT = {
12 fn: component,
13 params: ['TodoAdd'],
14 isComponent: 'TodoAdd',
15};
· · ·
14 isComponent: 'TodoAdd',
15};
16
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/complex-while.js JAVASCRIPT 2 matches view file →
12export const FIXTURE_ENTRYPOINT = {
13 fn: foo,
14 params: ['TodoAdd'],
15 isComponent: 'TodoAdd',
16};
· · ·
15 isComponent: 'TodoAdd',
16};
17
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/component.js JAVASCRIPT 2 matches view file →
28export const FIXTURE_ENTRYPOINT = {
29 fn: Component,
30 params: ['TodoAdd'],
31 isComponent: 'TodoAdd',
32};
· · ·
31 isComponent: 'TodoAdd',
32};
33
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.