mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46699 Switch from legacy Babel Flow parser integrations to the Meta-maintained `hermes-eslint` and `babel-plugin-syntax-hermes-parser` packages (both part of the `hermes-parser` codebase). Required to unblock D63535216. Changelog: [Internal] Reviewed By: hoxyq Differential Revision: D63541483 fbshipit-source-id: 04ccfa04c9a2b8c0a87ef1a5c38e952971838b77
27 lines
583 B
JavaScript
27 lines
583 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const ESLintTester = require('eslint').RuleTester;
|
|
|
|
ESLintTester.setDefaultConfig({
|
|
parser: require.resolve('hermes-eslint'),
|
|
parserOptions: {
|
|
requireConfigFile: false,
|
|
ecmaVersion: 6,
|
|
sourceType: 'module',
|
|
babelOptions: {
|
|
presets: [require.resolve('babel-plugin-syntax-hermes-parser')],
|
|
},
|
|
},
|
|
});
|
|
|
|
module.exports = ESLintTester;
|