Skip to content

Commit

Permalink
fix: update eslint-plugin-specs paths for react-native/codegen in rea…
Browse files Browse the repository at this point in the history
…ct-native-modules
  • Loading branch information
Ruslan Lesiutin committed Nov 26, 2022
1 parent 720b05d commit 512523e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin-specs/react-native-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ function requireModuleParser() {
// If using this externally, we leverage @react-native/codegen as published form
if (!PACKAGE_USAGE) {
const config = {
only: [/@react-native\/codegen\/src\//],
only: [/react-native-codegen\/src\//],
plugins: [require('@babel/plugin-transform-flow-strip-types').default],
};

withBabelRegister(config, () => {
RNModuleParser = require('@react-native/codegen/src/parsers/flow/modules');
RNParserUtils = require('@react-native/codegen/src/parsers/flow/utils');
RNParserUtils = require('@react-native/codegen/src/parsers/utils');
});
} else {
const config = {
Expand Down

0 comments on commit 512523e

Please sign in to comment.