RN: Add @noflow to ESLint & Babel Preset Files (#51778)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51778

Adds `noflow` to a bunch of ESLint and Babel files that are expected to be evaluated using Node.js without Babel. Additioanlly, these files tend to depend on ESLint and Babel type definitions that are not currently readily available.

In the future, these files could be migrated to use `flow strict-local` or `flow strict` using comment syntax for type annotations. But for now, adding `noflow` makes it explicit that these are known to not be typechecked.

Changelog:
[Internal]

Reviewed By: SamChou19815

Differential Revision: D75883642

fbshipit-source-id: 54236d123ca8773de42bce81189dfb5c0671563e
This commit is contained in:
Tim Yung authored and Facebook GitHub Bot committed 2025-06-04 12:03:52 -07:00
1 parent c1216d99f8
commit b344aec2ae
42 files changed
+42

No files matched your search

@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
import eslintConfigReactNative from '..';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
module.exports = {
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
exports.rules = {
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
module.exports = {
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
+1
View File
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
+1
View File
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
const fs = require('fs');
+1
View File
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
const fs = require('fs');
+1
View File
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
const fs = require('fs');
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
const diskCache = require('./disk-cache');
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
+1
View File
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
// This is the set of modules that React Native publicly exports and that we
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
+1
View File
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
+1
View File
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
+1
View File
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @noflow
*/
'use strict';