@react-native/eslint-plugin-specs 0.73.0 → 0.73.2

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/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @react-native/eslint-plugin-specs
2
+
3
+ [![Version][version-badge]][package]
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ yarn add --dev @react-native/eslint-plugin-specs
9
+ ```
10
+
11
+ *Note: We're using `yarn` to install deps. Feel free to change commands to use `npm` 3+ and `npx` if you like*
12
+
13
+ [version-badge]: https://img.shields.io/npm/v/@react-native/eslint-plugin-specs?style=flat-square
14
+ [package]: https://www.npmjs.com/package/@react-native/eslint-plugin-specs
15
+
16
+ ## Testing
17
+
18
+ To run the tests in this package, run the following commands from the React Native root folder:
19
+
20
+ 1. `yarn` to install the dependencies. You just need to run this once
21
+ 2. `yarn jest packages/eslint-plugin-specs`.
package/package.json CHANGED
@@ -1,27 +1,40 @@
1
1
  {
2
2
  "name": "@react-native/eslint-plugin-specs",
3
- "version": "0.73.0",
3
+ "version": "0.73.2",
4
4
  "description": "ESLint rules to validate NativeModule and Component Specs",
5
- "main": "index.js",
5
+ "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git@github.com:facebook/react-native.git",
8
+ "url": "https://github.com/facebook/react-native.git",
9
9
  "directory": "packages/eslint-plugin-specs"
10
10
  },
11
+ "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-plugin-specs#readme",
12
+ "keywords": [
13
+ "eslint",
14
+ "rules",
15
+ "react-native",
16
+ "native-modules",
17
+ "components",
18
+ "specs"
19
+ ],
20
+ "bugs": "https://github.com/facebook/react-native/issues",
21
+ "engines": {
22
+ "node": ">=18"
23
+ },
24
+ "main": "index.js",
11
25
  "scripts": {
12
26
  "prepack": "node prepack.js",
13
27
  "postpack": "node postpack.js"
14
28
  },
15
29
  "dependencies": {
16
30
  "@babel/core": "^7.20.0",
17
- "@babel/eslint-parser": "^7.19.0",
18
- "@babel/plugin-transform-flow-strip-types": "^7.0.0",
19
- "@babel/preset-flow": "^7.18.0",
20
- "@react-native/codegen": "*",
21
- "flow-parser": "^0.185.0",
31
+ "@babel/eslint-parser": "^7.20.0",
32
+ "@babel/plugin-transform-flow-strip-types": "^7.20.0",
33
+ "@babel/preset-flow": "^7.20.0",
34
+ "@react-native/codegen": "0.73.2",
35
+ "flow-parser": "^0.206.0",
22
36
  "make-dir": "^2.1.0",
23
37
  "pirates": "^4.0.1",
24
38
  "source-map-support": "0.5.0"
25
- },
26
- "license": "MIT"
39
+ }
27
40
  }
@@ -69,7 +69,6 @@ function requireModuleParser() {
69
69
  buildModuleSchema: RNParserCommons.buildModuleSchema,
70
70
  createParserErrorCapturer: RNParserUtils.createParserErrorCapturer,
71
71
  parser: new RNFlowParser.FlowParser(),
72
- resolveTypeAnnotation: RNFlowParserUtils.resolveTypeAnnotation,
73
72
  translateTypeAnnotation: RNModuleParser.flowTranslateTypeAnnotation,
74
73
  };
75
74
  }
@@ -149,7 +148,6 @@ function rule(context) {
149
148
  buildModuleSchema,
150
149
  createParserErrorCapturer,
151
150
  parser,
152
- resolveTypeAnnotation,
153
151
  translateTypeAnnotation,
154
152
  } = requireModuleParser();
155
153
 
@@ -164,7 +162,6 @@ function rule(context) {
164
162
  ast,
165
163
  tryParse,
166
164
  parser,
167
- resolveTypeAnnotation,
168
165
  translateTypeAnnotation,
169
166
  );
170
167
  });
package/BUCK DELETED
@@ -1,23 +0,0 @@
1
- load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace")
2
-
3
- yarn_workspace(
4
- name = "yarn-workspace",
5
- srcs = glob(
6
- ["**/*.js"],
7
- exclude = [
8
- "**/__fixtures__/**",
9
- "**/__flowtests__/**",
10
- "**/__mocks__/**",
11
- "**/__server_snapshot_tests__/**",
12
- "**/__tests__/**",
13
- "**/node_modules/**",
14
- "**/node_modules/.bin/**",
15
- "**/.*",
16
- "**/.*/**",
17
- "**/.*/.*",
18
- "**/*.xcodeproj/**",
19
- "**/*.xcworkspace/**",
20
- ],
21
- ),
22
- visibility = ["PUBLIC"],
23
- )