mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
switch to hermes for eslint-plugin-specs (#56023)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56023 Switch js/react-native-github/packages/eslint-plugin-specs/package.json to use hermes instead of babel Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D95867106 fbshipit-source-id: 422d6fbb939cd0067731024d6181523cc471bab6
This commit is contained in:
1 parent
64a1a1080f
commit
1c79fd5bff
2 files changed
+13
-3
No files matched your search
@@ -29,10 +29,10 @@
|
||||
"@react-native/codegen": "0.86.0-main",
|
||||
"make-dir": "^2.1.0",
|
||||
"pirates": "^4.0.1",
|
||||
"babel-plugin-syntax-hermes-parser": "0.33.3",
|
||||
"source-map-support": "0.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-plugin-syntax-hermes-parser": "0.33.3",
|
||||
"hermes-eslint": "0.33.3"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
+12
-2
@@ -32,8 +32,13 @@ function requireModuleParser() {
|
||||
// If using this externally, we leverage @react-native/codegen as published form
|
||||
if (!PACKAGE_USAGE) {
|
||||
const config = {
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
only: [/react-native-codegen\/src\//],
|
||||
plugins: [require('@babel/plugin-transform-flow-strip-types').default],
|
||||
plugins: [
|
||||
require('babel-plugin-syntax-hermes-parser'),
|
||||
require('@babel/plugin-transform-flow-strip-types').default,
|
||||
],
|
||||
};
|
||||
|
||||
withBabelRegister(config, () => {
|
||||
@@ -45,8 +50,13 @@ function requireModuleParser() {
|
||||
});
|
||||
} else {
|
||||
const config = {
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
only: [/@react-native\/codegen\/lib\//],
|
||||
plugins: [require('@babel/plugin-transform-flow-strip-types').default],
|
||||
plugins: [
|
||||
require('babel-plugin-syntax-hermes-parser'),
|
||||
require('@babel/plugin-transform-flow-strip-types').default,
|
||||
],
|
||||
};
|
||||
|
||||
withBabelRegister(config, () => {
|
||||
|
||||
Reference in new issue
Block a user