Skip to content

Commit 7437990

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Parse .js.flow files with hermes-parser (#38726)
Summary: Pull Request resolved: #38726 Changelog: [Internal] Needed to fix spurious parser errors Reviewed By: pieterv Differential Revision: D47959263 fbshipit-source-id: 95ce244de41c5b4b53fd56c542d660944b7e216f
1 parent 4b84a2b commit 7437990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
// overriding the JS config from @react-native/eslint-config to ensure
2525
// that we use hermes-eslint for all js files
2626
{
27-
files: ['*.js'],
27+
files: ['*.js', '.js.flow'],
2828
parser: 'hermes-eslint',
2929
rules: {
3030
// These rules are not required with hermes-eslint

0 commit comments

Comments
 (0)