Skip to content

Commit abc6f3e

Browse files
committed
[Docs] make section title consistent
1 parent 4b824e0 commit abc6f3e

16 files changed

+16
-16
lines changed

docs/rules/forbid-elements.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ React.createElement(Namespaced.Element);
5353
React.createElement('div', {}, React.createElement('button', {}, React.createElement('input')));
5454
```
5555

56-
## When not to use
56+
## When Not To Use It
5757

5858
If you don't want to forbid any elements.

docs/rules/forbid-foreign-prop-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Examples of **correct** code for this rule:
2525
import SomeComponent, {propTypes as someComponentPropTypes} from './SomeComponent';
2626
```
2727

28-
## When not to use
28+
## When Not To Use It
2929

3030
This rule aims to make a certain production optimization, removing prop types, less prone to error. This rule may not be relevant to you if you do not wish to make use of this optimization.
3131

docs/rules/forbid-prop-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ Whether or not to check `contextTypes` for forbidden prop types. The default val
6060

6161
Whether or not to check `childContextTypes` for forbidden prop types. The default value is `false`.
6262

63-
## When not to use
63+
## When Not To Use It
6464

6565
This rule is a formatting/documenting preference and not following it won't negatively affect the quality of your code. This rule encourages prop types that more specifically document their usage.

docs/rules/function-component-definition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,6 @@ function getComponent() {
249249

250250
```
251251

252-
## When not to use
252+
## When Not To Use It
253253

254254
If you are not interested in consistent types of function components.

docs/rules/jsx-closing-bracket-location.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,6 @@ var x = function() {
212212
</Say>;
213213
```
214214

215-
## When not to use
215+
## When Not To Use It
216216

217217
If you are not using JSX then you can disable this rule.

docs/rules/jsx-closing-tag-location.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ Examples of **correct** code for this rule:
3333
<Hello>marklar</Hello>
3434
```
3535

36-
## When not to use
36+
## When Not To Use It
3737

3838
If you do not care about closing tag JSX alignment then you can disable this rule.

docs/rules/jsx-first-prop-new-line.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ Examples of **correct** code for this rule, when configured with `"multiline-mul
105105
"react/jsx-first-prop-new-line": `"always" | "never" | "multiline" | "multiline-multiprop"`
106106
```
107107

108-
## When not to use
108+
## When Not To Use It
109109

110110
If you are not using JSX then you can disable this rule.

docs/rules/jsx-indent-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ firstName="John"
119119
/>
120120
```
121121
122-
## When not to use
122+
## When Not To Use It
123123
124124
If you are not using JSX then you can disable this rule.

docs/rules/jsx-indent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ Examples of **correct** code for this rule:
110110
</App>
111111
```
112112

113-
## When not to use
113+
## When Not To Use It
114114

115115
If you are not using JSX then you can disable this rule.

docs/rules/jsx-key.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Examples of **incorrect** code for this rule:
5757
<span {...spread} key={"key-after-spread"} />;
5858
```
5959

60-
## When not to use
60+
## When Not To Use It
6161

6262
If you are not using JSX then you can disable this rule.
6363

docs/rules/jsx-max-depth.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ Examples of **correct** code for this rule:
7979
</App>
8080
```
8181

82-
## When not to use
82+
## When Not To Use It
8383

8484
If you are not using JSX then you can disable this rule.

docs/rules/jsx-max-props-per-line.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ Examples of **correct** code for this rule:
9494
/>
9595
```
9696

97-
## When not to use
97+
## When Not To Use It
9898

9999
If you are not using JSX then you can disable this rule.

docs/rules/jsx-sort-default-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,6 @@ export default class ClassWithSpreadInPropTypes extends BaseClass {
180180

181181
When `true` the rule ignores the case-sensitivity of the declarations order.
182182

183-
## When not to use
183+
## When Not To Use It
184184

185185
This rule is a formatting preference and not following it won't negatively affect the quality of your code. If alphabetizing `defaultProps` declarations isn't a part of your coding standards, then you can leave this rule off.

docs/rules/jsx-sort-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ With `reservedFirst: ["key"]`, the following will **not** warn:
9898
<Hello key={'uuid'} name="John" ref="ref" />
9999
```
100100

101-
## When not to use
101+
## When Not To Use It
102102

103103
This rule is a formatting preference and not following it won't negatively affect the quality of your code. If alphabetizing props isn't a part of your coding standards, then you can leave this rule off.

docs/rules/no-namespace.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ The following patterns are **not** considered warnings:
2424
<testComponent />
2525
```
2626

27-
## When not to use
27+
## When Not To Use It
2828

2929
If you are not using React.

docs/rules/sort-prop-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ var Component = createReactClass({
159159
});
160160
```
161161

162-
## When not to use
162+
## When Not To Use It
163163

164164
This rule is a formatting preference and not following it won't negatively affect the quality of your code. If alphabetizing props declarations isn't a part of your coding standards, then you can leave this rule off.

0 commit comments

Comments
 (0)