Skip to content

Commit

Permalink
[Docs] make section title consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 2, 2021
1 parent 4b824e0 commit abc6f3e
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/rules/forbid-elements.md
Expand Up @@ -53,6 +53,6 @@ React.createElement(Namespaced.Element);
React.createElement('div', {}, React.createElement('button', {}, React.createElement('input')));
```

## When not to use
## When Not To Use It

If you don't want to forbid any elements.
2 changes: 1 addition & 1 deletion docs/rules/forbid-foreign-prop-types.md
Expand Up @@ -25,7 +25,7 @@ Examples of **correct** code for this rule:
import SomeComponent, {propTypes as someComponentPropTypes} from './SomeComponent';
```

## When not to use
## When Not To Use It

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.

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/forbid-prop-types.md
Expand Up @@ -60,6 +60,6 @@ Whether or not to check `contextTypes` for forbidden prop types. The default val

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

## When not to use
## When Not To Use It

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.
2 changes: 1 addition & 1 deletion docs/rules/function-component-definition.md
Expand Up @@ -249,6 +249,6 @@ function getComponent() {

```

## When not to use
## When Not To Use It

If you are not interested in consistent types of function components.
2 changes: 1 addition & 1 deletion docs/rules/jsx-closing-bracket-location.md
Expand Up @@ -212,6 +212,6 @@ var x = function() {
</Say>;
```

## When not to use
## When Not To Use It

If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-closing-tag-location.md
Expand Up @@ -33,6 +33,6 @@ Examples of **correct** code for this rule:
<Hello>marklar</Hello>
```

## When not to use
## When Not To Use It

If you do not care about closing tag JSX alignment then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-first-prop-new-line.md
Expand Up @@ -105,6 +105,6 @@ Examples of **correct** code for this rule, when configured with `"multiline-mul
"react/jsx-first-prop-new-line": `"always" | "never" | "multiline" | "multiline-multiprop"`
```

## When not to use
## When Not To Use It

If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-indent-props.md
Expand Up @@ -119,6 +119,6 @@ firstName="John"
/>
```
## When not to use
## When Not To Use It
If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-indent.md
Expand Up @@ -110,6 +110,6 @@ Examples of **correct** code for this rule:
</App>
```

## When not to use
## When Not To Use It

If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-key.md
Expand Up @@ -57,7 +57,7 @@ Examples of **incorrect** code for this rule:
<span {...spread} key={"key-after-spread"} />;
```

## When not to use
## When Not To Use It

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

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/jsx-max-depth.md
Expand Up @@ -79,6 +79,6 @@ Examples of **correct** code for this rule:
</App>
```

## When not to use
## When Not To Use It

If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-max-props-per-line.md
Expand Up @@ -94,6 +94,6 @@ Examples of **correct** code for this rule:
/>
```

## When not to use
## When Not To Use It

If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-sort-default-props.md
Expand Up @@ -180,6 +180,6 @@ export default class ClassWithSpreadInPropTypes extends BaseClass {

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

## When not to use
## When Not To Use It

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.
2 changes: 1 addition & 1 deletion docs/rules/jsx-sort-props.md
Expand Up @@ -98,6 +98,6 @@ With `reservedFirst: ["key"]`, the following will **not** warn:
<Hello key={'uuid'} name="John" ref="ref" />
```

## When not to use
## When Not To Use It

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.
2 changes: 1 addition & 1 deletion docs/rules/no-namespace.md
Expand Up @@ -24,6 +24,6 @@ The following patterns are **not** considered warnings:
<testComponent />
```

## When not to use
## When Not To Use It

If you are not using React.
2 changes: 1 addition & 1 deletion docs/rules/sort-prop-types.md
Expand Up @@ -159,6 +159,6 @@ var Component = createReactClass({
});
```

## When not to use
## When Not To Use It

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 comments on commit abc6f3e

Please sign in to comment.