Skip to content

Commit

Permalink
Parse .js.flow files with hermes-parser (#38726)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #38726

Changelog: [Internal]

Needed to fix spurious parser errors

Reviewed By: pieterv

Differential Revision: D47959263

fbshipit-source-id: 95ce244de41c5b4b53fd56c542d660944b7e216f
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Aug 1, 2023
1 parent 4b84a2b commit 7437990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7437990

Please sign in to comment.