@react-native/eslint-plugin-specs 0.71.1 → 0.72.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/eslint-plugin-specs",
3
- "version": "0.71.1",
3
+ "version": "0.72.1",
4
4
  "description": "ESLint rules to validate NativeModule and Component Specs",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -13,14 +13,14 @@
13
13
  "postpack": "node postpack.js"
14
14
  },
15
15
  "dependencies": {
16
- "@babel/core": "^7.14.0",
17
- "@babel/eslint-parser": "^7.18.2",
16
+ "@babel/core": "^7.20.0",
17
+ "@babel/eslint-parser": "^7.19.0",
18
18
  "@babel/plugin-transform-flow-strip-types": "^7.0.0",
19
- "@babel/preset-flow": "^7.17.12",
19
+ "@babel/preset-flow": "^7.18.0",
20
+ "@react-native/codegen": "*",
20
21
  "flow-parser": "^0.185.0",
21
22
  "make-dir": "^2.1.0",
22
23
  "pirates": "^4.0.1",
23
- "react-native-codegen": "*",
24
24
  "source-map-support": "0.5.0"
25
25
  },
26
26
  "license": "MIT"
@@ -26,7 +26,7 @@ let RNParserUtils;
26
26
 
27
27
  function requireModuleParser() {
28
28
  if (RNModuleParser == null || RNParserUtils == null) {
29
- // If using this externally, we leverage react-native-codegen as published form
29
+ // If using this externally, we leverage @react-native/codegen as published form
30
30
  if (!PACKAGE_USAGE) {
31
31
  const config = {
32
32
  only: [/react-native-codegen\/src\//],
@@ -34,18 +34,18 @@ function requireModuleParser() {
34
34
  };
35
35
 
36
36
  withBabelRegister(config, () => {
37
- RNModuleParser = require('react-native-codegen/src/parsers/flow/modules');
38
- RNParserUtils = require('react-native-codegen/src/parsers/utils');
37
+ RNModuleParser = require('@react-native/codegen/src/parsers/flow/modules');
38
+ RNParserUtils = require('@react-native/codegen/src/parsers/utils');
39
39
  });
40
40
  } else {
41
41
  const config = {
42
- only: [/react-native-codegen\/lib\//],
42
+ only: [/@react-native\/codegen\/lib\//],
43
43
  plugins: [require('@babel/plugin-transform-flow-strip-types').default],
44
44
  };
45
45
 
46
46
  withBabelRegister(config, () => {
47
- RNModuleParser = require('react-native-codegen/lib/parsers/flow/modules');
48
- RNParserUtils = require('react-native-codegen/lib/parsers/utils');
47
+ RNModuleParser = require('@react-native/codegen/lib/parsers/flow/modules');
48
+ RNParserUtils = require('@react-native/codegen/lib/parsers/flow/utils');
49
49
  });
50
50
  }
51
51
  }