Skip to content

Commit

Permalink
Make negative adverbs above snippets bold
Browse files Browse the repository at this point in the history
Increase legibility of negative sentences in counter examples.

Closes #1503
  • Loading branch information
felicio committed Oct 27, 2017
1 parent 329857d commit 41d9809
Show file tree
Hide file tree
Showing 64 changed files with 114 additions and 114 deletions.
4 changes: 2 additions & 2 deletions docs/rules/boolean-prop-naming.md
Expand Up @@ -15,7 +15,7 @@ var Hello = createReactClass({
});
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
var Hello = createReactClass({
Expand Down Expand Up @@ -64,4 +64,4 @@ For supporting "is" naming:

```jsx
"react/boolean-prop-naming": ["error", { "rule": "^is[A-Z]([A-Za-z0-9]?)+" }]
```
```
2 changes: 1 addition & 1 deletion docs/rules/default-props-match-prop-types.md
Expand Up @@ -98,7 +98,7 @@ MyStatelessComponent.defaultProps = {
}
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
function MyStatelessComponent({ foo, bar }) {
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/display-name.md
Expand Up @@ -14,7 +14,7 @@ var Hello = createReactClass({
});
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
var Hello = createReactClass({
Expand All @@ -37,7 +37,7 @@ var Hello = createReactClass({

When `true` the rule will ignore the name set by the transpiler and require a `displayName` property in this case.

The following patterns are considered okay and do not cause warnings:
The following patterns are considered okay and do **not** cause warnings:

```jsx
var Hello = createReactClass({
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/forbid-component-props.md
Expand Up @@ -17,7 +17,7 @@ The following patterns are considered warnings:
<Hello style={{color: 'red'}} />
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
<Hello name='Joe' />
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/forbid-elements.md
Expand Up @@ -23,7 +23,7 @@ An array of strings and/or objects. An object in this array may have the followi

A string item in the array is a shorthand for `{ element: string }`.

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
// [1, { "forbid": ["button"] }]
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/forbid-foreign-prop-types.md
Expand Up @@ -19,7 +19,7 @@ var { propTypes } = SomeComponent;
SomeComponent['propTypes'];
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```js
import SomeComponent, {propTypes as someComponentPropTypes} from './SomeComponent';
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/jsx-boolean-value.md
Expand Up @@ -16,7 +16,7 @@ The following patterns are considered warnings when configured `"never"`, or wit
var Hello = <Hello personal={true} />;
```

The following patterns are not considered warnings when configured `"never"`, or with `"always", { "never": ["personal"] }`:
The following patterns are **not** considered warnings when configured `"never"`, or with `"always", { "never": ["personal"] }`:

```jsx
var Hello = <Hello personal />;
Expand All @@ -28,7 +28,7 @@ The following patterns are considered warnings when configured `"always"`, or wi
var Hello = <Hello personal />;
```

The following patterns are not considered warnings when configured `"always"`, or with `"never", { "always": ["personal"] }`:
The following patterns are **not** considered warnings when configured `"always"`, or with `"never", { "always": ["personal"] }`:

```jsx
var Hello = <Hello personal={true} />;
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/jsx-closing-bracket-location.md
Expand Up @@ -21,7 +21,7 @@ The following patterns are considered warnings:
/>;
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
<Hello firstName="John" lastName="Smith" />;
Expand Down Expand Up @@ -138,7 +138,7 @@ var x = function() {
</Say>;
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
// 'jsx-closing-bracket-location': 1
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/jsx-closing-tag-location.md
Expand Up @@ -21,7 +21,7 @@ The following patterns are considered warnings:
marklar</Hello>
```

The following are not considered warnings:
The following are **not** considered warnings:

```jsx
<Hello>
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/jsx-curly-brace-presence.md
Expand Up @@ -139,7 +139,7 @@ will warned and fixed to:

* If the rule is set to get rid of unnecessary curly braces(JSX expression) and there are characters that need to be escaped in its JSX form, such as quote characters, [forbidden JSX text characters](https://facebook.github.io/jsx/), escaped characters and anything that looks like HTML entity names, the code will not be warned because the fix may make the code less readable.

The following pattern will not be given a warning even if `'never'` is passed.
The following pattern will **not** be given a warning even if `'never'` is passed.

```jsx
<Color text={"\u00a0"} />
Expand Down
18 changes: 9 additions & 9 deletions docs/rules/jsx-curly-spacing.md
Expand Up @@ -33,7 +33,7 @@ When `{"when": "never"}` is set, the following patterns are considered warnings:
<Hello name={firstname } />;
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx
<Hello name={firstname} />;
Expand All @@ -57,7 +57,7 @@ When `{"when": "never", "children": true}` is set, the following patterns are co
<Hello>{ firstname }</Hello>;
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx
<Hello name={firstname} />;
Expand All @@ -81,7 +81,7 @@ When `{"when": "always"}` is set, the following patterns are considered warnings
<Hello name={firstname } />;
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx
<Hello name={ firstname } />;
Expand All @@ -105,7 +105,7 @@ When `{"when": "always", "children": true}` is set, the following patterns are c
<Hello>{firstname}</Hello>;
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx
<Hello name={ firstname } />;
Expand Down Expand Up @@ -138,7 +138,7 @@ When `"never"` is used and `allowMultiline` is `false`, the following patterns a
} />;
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx
<Hello name={firstname} />;
Expand All @@ -161,7 +161,7 @@ When `"always"` is used and `allowMultiline` is `false`, the following patterns
} />;
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx
<Hello name={ firstname } />;
Expand All @@ -183,7 +183,7 @@ When `{"when": "never", "attributes": {"allowMultiline": false}, "children": tru
<Hello>{ firstname }</Hello>;
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx
<Hello name={firstname} />;
Expand All @@ -207,13 +207,13 @@ You can specify an additional `spacing` property that is an object with the foll

All spacing options accept either the string `"always"` or the string `"never"`. Note that the default value for all "spacing" options matches the first "always"/"never" option provided.

When `"always"` is used but `objectLiterals` is `"never"`, the following pattern is not considered a warning:
When `"always"` is used but `objectLiterals` is `"never"`, the following pattern is **not** considered a warning:

```jsx
<App blah={ 3 } foo={{ bar: true, baz: true }} />;
```

When `"never"` is used and `objectLiterals` is `"always"`, the following pattern is not considered a warning:
When `"never"` is used and `objectLiterals` is `"always"`, the following pattern is **not** considered a warning:

```jsx
<App blah={3} foo={ {bar: true, baz: true} } />;
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/jsx-equals-spacing.md
Expand Up @@ -31,7 +31,7 @@ When `"never"` is set, the following patterns are considered warnings:
<Hello name= {firstname} />;
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx
<Hello name={firstname} />;
Expand All @@ -49,7 +49,7 @@ When `"always"` is used, the following patterns are considered warnings:
<Hello name= {firstname} />;
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx
<Hello name = {firstname} />;
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/jsx-filename-extension.md
Expand Up @@ -11,7 +11,7 @@ function MyComponent() {
}
```

The following pattern is not considered a warning:
The following pattern is **not** considered a warning:

```jsx
// filename: MyComponent.jsx
Expand Down
8 changes: 4 additions & 4 deletions docs/rules/jsx-first-prop-new-line.md
Expand Up @@ -23,7 +23,7 @@ The following patterns are considered warnings when configured `"always"`:
/>
```

The following patterns are not considered warnings when configured `"always"`:
The following patterns are **not** considered warnings when configured `"always"`:

```jsx
<Hello
Expand All @@ -45,7 +45,7 @@ The following patterns are considered warnings when configured `"never"`:
/>
```

The following patterns are not considered warnings when configured `"never"`:
The following patterns are **not** considered warnings when configured `"never"`:

```jsx
<Hello personal={true} />
Expand All @@ -67,7 +67,7 @@ The following patterns are considered warnings when configured `"multiline"`:
}} />
```

The following patterns are not considered warnings when configured `"multiline"`:
The following patterns are **not** considered warnings when configured `"multiline"`:

```jsx
<Hello personal={true} />
Expand All @@ -86,7 +86,7 @@ The following patterns are considered warnings when configured `"multiline-multi
bar />
```

The following patterns are not considered warnings when configured `"multiline-multiprop"`:
The following patterns are **not** considered warnings when configured `"multiline-multiprop"`:

```jsx
<Hello foo={{
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/jsx-handler-names.md
Expand Up @@ -14,7 +14,7 @@ The following patterns are considered warnings:
<MyComponent onChange={this.componentChanged} />
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
<MyComponent onChange={this.handleChange} />
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/jsx-indent-props.md
Expand Up @@ -53,7 +53,7 @@ The following patterns are considered warnings:
/>
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx

Expand Down
4 changes: 2 additions & 2 deletions docs/rules/jsx-indent.md
Expand Up @@ -2,7 +2,7 @@

This option validates a specific indentation style for JSX.

**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line.
**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line.
Fixer will fix whitespace and tabs indentation.

## Rule Details
Expand Down Expand Up @@ -54,7 +54,7 @@ The following patterns are considered warnings:
</App>
```

The following patterns are not warnings:
The following patterns are **not** warnings:

```jsx

Expand Down
6 changes: 3 additions & 3 deletions docs/rules/jsx-key.md
Expand Up @@ -13,7 +13,7 @@ The following patterns are considered warnings:
data.map(x => <Hello>x</Hello>);
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
[<Hello key="first" />, <Hello key="second" />, <Hello key="third" />];
Expand All @@ -25,6 +25,6 @@ data.map((x, i) => <Hello key={i}>x</Hello>);

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

Also, if you have some prevalent situation where you use arrow functions to
return JSX that will not be held in an iterable, you may want to disable this
Also, if you have some prevalent situation where you use arrow functions to
return JSX that will not be held in an iterable, you may want to disable this
rule.
6 changes: 3 additions & 3 deletions docs/rules/jsx-max-props-per-line.md
Expand Up @@ -18,7 +18,7 @@ The following patterns are considered warnings:
}} baz />;
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
<Hello
Expand Down Expand Up @@ -52,7 +52,7 @@ The following patterns are considered warnings:
<Hello firstName="John" lastName="Smith" tel={5555555} />;
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
// [1, { "maximum": 2 }]
Expand All @@ -74,7 +74,7 @@ The following patterns are considered warnings:
<Hello firstName="John" lastName="Smith" />
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:
```jsx
// [1, { "when": "multiline" }]
<Hello firstName="John" lastName="Smith" />
Expand Down
8 changes: 4 additions & 4 deletions docs/rules/jsx-no-bind.md
Expand Up @@ -13,7 +13,7 @@ The following patterns are considered warnings:
<div onClick={() => console.log('Hello!')}></div>
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:
```jsx
<div onClick={this._handleClick}></div>
```
Expand All @@ -30,7 +30,7 @@ The following patterns are not considered warnings:

### `ignoreRefs`

When `true` the following are not considered warnings:
When `true` the following are **not** considered warnings:

```jsx
<div ref={c => this._div = c} />
Expand All @@ -39,15 +39,15 @@ When `true` the following are not considered warnings:

### `allowArrowFunctions`

When `true` the following is not considered a warning:
When `true` the following is **not** considered a warning:

```jsx
<div onClick={() => alert("1337")} />
```

### `allowBind`

When `true` the following is not considered a warning:
When `true` the following is **not** considered a warning:

```jsx
<div onClick={this._handleClick.bind(this)} />
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/jsx-no-comment-textnodes.md
Expand Up @@ -27,7 +27,7 @@ var Hello = createReactClass({
});
```

The following patterns are not considered warnings:
The following patterns are **not** considered warnings:

```jsx
var Hello = createReactClass({
Expand Down

0 comments on commit 41d9809

Please sign in to comment.