You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followup after fd838c3
I didn't generate the docs because I misunderstood the contribution guide. This commit fixes it and updates the contribution guide a little bit.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,6 @@ Run them with `npm test`.
31
31
32
32
Run with `npm run lint`.
33
33
34
-
## Submitting a PR
35
-
36
-
Just before submitting a PR, run `npm run create-readme` to generate the new README.md
37
-
38
34
## Adding a Rule
39
35
40
36
### Source & Tests
@@ -51,7 +47,6 @@ Just before submitting a PR, run `npm run create-readme` to generate the new REA
51
47
* Use [./.README/rules/require-valid-file-annotation.md](./.README/rules/require-valid-file-annotation.md) as a template.
52
48
* Ensure that rule documentation document includes `<!-- assertions spaceAfterTypeColon -->` declaration.
53
49
1. Update [./.README/README.md](/.README/README.md) to include the new rule.
54
-
55
-
A CI service will build and publish the new documentation.
50
+
1. Run `npm run create-readme` to generate the new `README.md` (you should be on `master` branch for this command to work)
56
51
57
52
Note: Sections "The following patterns are considered problems:" and "The following patterns are not considered problems:" are **generated automatically** using the test cases.
Warns against using internal Flow types such as `React$Node`, `React$Ref` and others and suggests using public alternatives instead (`React.Node`, `React.Ref`, …).
2028
+
2029
+
The following patterns are considered problems:
2030
+
2031
+
```js
2032
+
type X= React$AbstractComponent<Config, Instance>
2033
+
// Message: Type identifier 'React$AbstractComponent' is not allowed. Use 'React.AbstractComponent' instead.
2034
+
2035
+
type X= React$ChildrenArray<string>
2036
+
// Message: Type identifier 'React$ChildrenArray' is not allowed. Use 'React.ChildrenArray' instead.
2037
+
2038
+
type X= React$ComponentType<Props>
2039
+
// Message: Type identifier 'React$ComponentType' is not allowed. Use 'React.ComponentType' instead.
2040
+
2041
+
type X= React$Config<Prosp, DefaultProps>
2042
+
// Message: Type identifier 'React$Config' is not allowed. Use 'React.Config' instead.
2043
+
2044
+
type X= React$Element<typeof Component>
2045
+
// Message: Type identifier 'React$Element' is not allowed. Use 'React.Element' instead.
2046
+
2047
+
type X= React$ElementConfig<typeof Component>
2048
+
// Message: Type identifier 'React$ElementConfig' is not allowed. Use 'React.ElementConfig' instead.
2049
+
2050
+
type X= React$ElementProps<typeof Component>
2051
+
// Message: Type identifier 'React$ElementProps' is not allowed. Use 'React.ElementProps' instead.
2052
+
2053
+
type X= React$ElementRef<typeof Component>
2054
+
// Message: Type identifier 'React$ElementRef' is not allowed. Use 'React.ElementRef' instead.
2055
+
2056
+
type X= React$ElementType
2057
+
// Message: Type identifier 'React$ElementType' is not allowed. Use 'React.ElementType' instead.
2058
+
2059
+
type X= React$Key
2060
+
// Message: Type identifier 'React$Key' is not allowed. Use 'React.Key' instead.
2061
+
2062
+
type X= React$Node
2063
+
// Message: Type identifier 'React$Node' is not allowed. Use 'React.Node' instead.
2064
+
2065
+
type X= React$Ref<typeof Component>
2066
+
// Message: Type identifier 'React$Ref' is not allowed. Use 'React.Ref' instead.
2067
+
2068
+
type X= React$StatelessFunctionalComponent<Props>
2069
+
// Message: Type identifier 'React$StatelessFunctionalComponent' is not allowed. Use 'React.StatelessFunctionalComponent' instead.
2070
+
```
2071
+
2072
+
The following patterns are not considered problems:
0 commit comments