From 743799078bbfae81c4b18579a03b78d4d5e4653f Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Tue, 1 Aug 2023 11:17:07 -0700 Subject: [PATCH] Parse .js.flow files with hermes-parser (#38726) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38726 Changelog: [Internal] Needed to fix spurious parser errors Reviewed By: pieterv Differential Revision: D47959263 fbshipit-source-id: 95ce244de41c5b4b53fd56c542d660944b7e216f --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 6cae9fc20d4125..e1272358538527 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -24,7 +24,7 @@ module.exports = { // overriding the JS config from @react-native/eslint-config to ensure // that we use hermes-eslint for all js files { - files: ['*.js'], + files: ['*.js', '.js.flow'], parser: 'hermes-eslint', rules: { // These rules are not required with hermes-eslint