@react-native/eslint-plugin 0.73.0 → 0.73.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/README.md +8 -1
- package/package.json +16 -5
- package/BUCK +0 -23
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @react-native/eslint-plugin
|
|
2
2
|
|
|
3
|
-
This plugin is intended to be used in [`@react-native/eslint-config`](https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native
|
|
3
|
+
This plugin is intended to be used in [`@react-native/eslint-config`](https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native). You probably want to install that package instead.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -25,3 +25,10 @@ Add to your eslint config (`.eslintrc`, or `eslintConfig` field in `package.json
|
|
|
25
25
|
### `platform-colors`
|
|
26
26
|
|
|
27
27
|
Enforces that calls to `PlatformColor` and `DynamicColorIOS` are statically analyzable to enable performance optimizations.
|
|
28
|
+
|
|
29
|
+
## Testing
|
|
30
|
+
|
|
31
|
+
To run the tests in this package, run the following commands from the React Native root folder:
|
|
32
|
+
|
|
33
|
+
1. `yarn` to install the dependencies. You just need to run this once
|
|
34
|
+
2. `yarn jest packages/eslint-plugin-react-native`.
|
package/package.json
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/eslint-plugin",
|
|
3
|
-
"version": "0.73.
|
|
3
|
+
"version": "0.73.1",
|
|
4
4
|
"description": "ESLint rules for @react-native/eslint-config",
|
|
5
|
-
"
|
|
5
|
+
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "
|
|
9
|
-
"directory": "packages/eslint-plugin-react-native
|
|
8
|
+
"url": "https://github.com/facebook/react-native.git",
|
|
9
|
+
"directory": "packages/eslint-plugin-react-native"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-plugin-react-native#readme",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"eslint",
|
|
14
|
+
"rules",
|
|
15
|
+
"eslint-config",
|
|
16
|
+
"react-native"
|
|
17
|
+
],
|
|
18
|
+
"bugs": "https://github.com/facebook/react-native/issues",
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"main": "index.js"
|
|
12
23
|
}
|
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
|
-
)
|