From 41d9809c430a0ea0651a4c011f83b25b71f8c779 Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Sat, 7 Oct 2017 16:25:18 +0200 Subject: [PATCH] Make negative adverbs above snippets bold Increase legibility of negative sentences in counter examples. Closes #1503 --- docs/rules/boolean-prop-naming.md | 4 ++-- docs/rules/default-props-match-prop-types.md | 2 +- docs/rules/display-name.md | 4 ++-- docs/rules/forbid-component-props.md | 2 +- docs/rules/forbid-elements.md | 2 +- docs/rules/forbid-foreign-prop-types.md | 2 +- docs/rules/jsx-boolean-value.md | 4 ++-- docs/rules/jsx-closing-bracket-location.md | 4 ++-- docs/rules/jsx-closing-tag-location.md | 2 +- docs/rules/jsx-curly-brace-presence.md | 2 +- docs/rules/jsx-curly-spacing.md | 18 +++++++++--------- docs/rules/jsx-equals-spacing.md | 4 ++-- docs/rules/jsx-filename-extension.md | 2 +- docs/rules/jsx-first-prop-new-line.md | 8 ++++---- docs/rules/jsx-handler-names.md | 2 +- docs/rules/jsx-indent-props.md | 2 +- docs/rules/jsx-indent.md | 4 ++-- docs/rules/jsx-key.md | 6 +++--- docs/rules/jsx-max-props-per-line.md | 6 +++--- docs/rules/jsx-no-bind.md | 8 ++++---- docs/rules/jsx-no-comment-textnodes.md | 2 +- docs/rules/jsx-no-duplicate-props.md | 2 +- docs/rules/jsx-no-literals.md | 4 ++-- docs/rules/jsx-no-target-blank.md | 2 +- docs/rules/jsx-no-undef.md | 4 ++-- docs/rules/jsx-pascal-case.md | 2 +- docs/rules/jsx-sort-props.md | 6 +++--- docs/rules/jsx-space-before-closing.md | 4 ++-- docs/rules/jsx-tag-spacing.md | 14 +++++++------- docs/rules/jsx-uses-react.md | 2 +- docs/rules/jsx-uses-vars.md | 2 +- docs/rules/jsx-wrap-multilines.md | 10 +++++----- docs/rules/no-array-index-key.md | 2 +- docs/rules/no-children-prop.md | 2 +- docs/rules/no-danger-with-children.md | 2 +- docs/rules/no-danger.md | 2 +- docs/rules/no-deprecated.md | 2 +- docs/rules/no-did-mount-set-state.md | 2 +- docs/rules/no-did-update-set-state.md | 2 +- docs/rules/no-direct-mutation-state.md | 2 +- docs/rules/no-find-dom-node.md | 2 +- docs/rules/no-is-mounted.md | 2 +- docs/rules/no-multi-comp.md | 4 ++-- .../no-redundant-should-component-update.md | 2 +- docs/rules/no-render-return-value.md | 2 +- docs/rules/no-set-state.md | 2 +- docs/rules/no-string-refs.md | 4 ++-- docs/rules/no-typos.md | 2 +- docs/rules/no-unescaped-entities.md | 2 +- docs/rules/no-unknown-property.md | 2 +- docs/rules/no-unused-prop-types.md | 2 +- docs/rules/no-will-update-set-state.md | 2 +- docs/rules/prefer-es6-class.md | 4 ++-- docs/rules/prefer-stateless-function.md | 6 +++--- docs/rules/prop-types.md | 2 +- docs/rules/react-in-jsx-scope.md | 2 +- docs/rules/require-default-props.md | 2 +- docs/rules/require-optimization.md | 4 ++-- docs/rules/require-render-return.md | 2 +- docs/rules/self-closing-comp.md | 6 +++--- docs/rules/sort-comp.md | 8 ++++---- docs/rules/sort-prop-types.md | 2 +- docs/rules/style-prop-object.md | 2 +- docs/rules/void-dom-elements-no-children.md | 2 +- 64 files changed, 114 insertions(+), 114 deletions(-) diff --git a/docs/rules/boolean-prop-naming.md b/docs/rules/boolean-prop-naming.md index a43d91e53b..013e98f22e 100644 --- a/docs/rules/boolean-prop-naming.md +++ b/docs/rules/boolean-prop-naming.md @@ -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({ @@ -64,4 +64,4 @@ For supporting "is" naming: ```jsx "react/boolean-prop-naming": ["error", { "rule": "^is[A-Z]([A-Za-z0-9]?)+" }] -``` \ No newline at end of file +``` diff --git a/docs/rules/default-props-match-prop-types.md b/docs/rules/default-props-match-prop-types.md index f1ff3f41a7..305d14ad75 100644 --- a/docs/rules/default-props-match-prop-types.md +++ b/docs/rules/default-props-match-prop-types.md @@ -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 }) { diff --git a/docs/rules/display-name.md b/docs/rules/display-name.md index 6eca43e986..ca249e6821 100644 --- a/docs/rules/display-name.md +++ b/docs/rules/display-name.md @@ -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({ @@ -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({ diff --git a/docs/rules/forbid-component-props.md b/docs/rules/forbid-component-props.md index a9da8a9f2d..424d880f0b 100644 --- a/docs/rules/forbid-component-props.md +++ b/docs/rules/forbid-component-props.md @@ -17,7 +17,7 @@ The following patterns are considered warnings: ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx diff --git a/docs/rules/forbid-elements.md b/docs/rules/forbid-elements.md index 4d3bf17ac3..89c6e9017e 100644 --- a/docs/rules/forbid-elements.md +++ b/docs/rules/forbid-elements.md @@ -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"] }] diff --git a/docs/rules/forbid-foreign-prop-types.md b/docs/rules/forbid-foreign-prop-types.md index 9d9681e640..f96e0b3381 100644 --- a/docs/rules/forbid-foreign-prop-types.md +++ b/docs/rules/forbid-foreign-prop-types.md @@ -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'; diff --git a/docs/rules/jsx-boolean-value.md b/docs/rules/jsx-boolean-value.md index c888e7af70..b53ed590bc 100644 --- a/docs/rules/jsx-boolean-value.md +++ b/docs/rules/jsx-boolean-value.md @@ -16,7 +16,7 @@ The following patterns are considered warnings when configured `"never"`, or wit var Hello = ; ``` -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 = ; @@ -28,7 +28,7 @@ The following patterns are considered warnings when configured `"always"`, or wi var Hello = ; ``` -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 = ; diff --git a/docs/rules/jsx-closing-bracket-location.md b/docs/rules/jsx-closing-bracket-location.md index bcc14c86ec..02709920d9 100644 --- a/docs/rules/jsx-closing-bracket-location.md +++ b/docs/rules/jsx-closing-bracket-location.md @@ -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 ; @@ -138,7 +138,7 @@ var x = function() { ; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx // 'jsx-closing-bracket-location': 1 diff --git a/docs/rules/jsx-closing-tag-location.md b/docs/rules/jsx-closing-tag-location.md index 94f1c61143..9844aaaf1b 100644 --- a/docs/rules/jsx-closing-tag-location.md +++ b/docs/rules/jsx-closing-tag-location.md @@ -21,7 +21,7 @@ The following patterns are considered warnings: marklar ``` -The following are not considered warnings: +The following are **not** considered warnings: ```jsx diff --git a/docs/rules/jsx-curly-brace-presence.md b/docs/rules/jsx-curly-brace-presence.md index 44eb565736..00ba0e74a1 100644 --- a/docs/rules/jsx-curly-brace-presence.md +++ b/docs/rules/jsx-curly-brace-presence.md @@ -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 diff --git a/docs/rules/jsx-curly-spacing.md b/docs/rules/jsx-curly-spacing.md index 47c27c0c1b..b6827e886b 100644 --- a/docs/rules/jsx-curly-spacing.md +++ b/docs/rules/jsx-curly-spacing.md @@ -33,7 +33,7 @@ When `{"when": "never"}` is set, the following patterns are considered warnings: ; ``` -The following patterns are not warnings: +The following patterns are **not** warnings: ```jsx ; @@ -57,7 +57,7 @@ When `{"when": "never", "children": true}` is set, the following patterns are co { firstname }; ``` -The following patterns are not warnings: +The following patterns are **not** warnings: ```jsx ; @@ -81,7 +81,7 @@ When `{"when": "always"}` is set, the following patterns are considered warnings ; ``` -The following patterns are not warnings: +The following patterns are **not** warnings: ```jsx ; @@ -105,7 +105,7 @@ When `{"when": "always", "children": true}` is set, the following patterns are c {firstname}; ``` -The following patterns are not warnings: +The following patterns are **not** warnings: ```jsx ; @@ -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 ; @@ -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 ; @@ -183,7 +183,7 @@ When `{"when": "never", "attributes": {"allowMultiline": false}, "children": tru { firstname }; ``` -The following patterns are not warnings: +The following patterns are **not** warnings: ```jsx ; @@ -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 ; ``` -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 ; diff --git a/docs/rules/jsx-equals-spacing.md b/docs/rules/jsx-equals-spacing.md index a97cad95e7..51a4cd310a 100644 --- a/docs/rules/jsx-equals-spacing.md +++ b/docs/rules/jsx-equals-spacing.md @@ -31,7 +31,7 @@ When `"never"` is set, the following patterns are considered warnings: ; ``` -The following patterns are not warnings: +The following patterns are **not** warnings: ```jsx ; @@ -49,7 +49,7 @@ When `"always"` is used, the following patterns are considered warnings: ; ``` -The following patterns are not warnings: +The following patterns are **not** warnings: ```jsx ; diff --git a/docs/rules/jsx-filename-extension.md b/docs/rules/jsx-filename-extension.md index 6131b5ca5e..a5866e6ab6 100644 --- a/docs/rules/jsx-filename-extension.md +++ b/docs/rules/jsx-filename-extension.md @@ -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 diff --git a/docs/rules/jsx-first-prop-new-line.md b/docs/rules/jsx-first-prop-new-line.md index 93df949fb0..fc6481642a 100644 --- a/docs/rules/jsx-first-prop-new-line.md +++ b/docs/rules/jsx-first-prop-new-line.md @@ -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 ``` -The following patterns are not considered warnings when configured `"never"`: +The following patterns are **not** considered warnings when configured `"never"`: ```jsx @@ -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 @@ -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 ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx diff --git a/docs/rules/jsx-indent-props.md b/docs/rules/jsx-indent-props.md index 3467bddced..df6f9fc33f 100644 --- a/docs/rules/jsx-indent-props.md +++ b/docs/rules/jsx-indent-props.md @@ -53,7 +53,7 @@ The following patterns are considered warnings: /> ``` -The following patterns are not warnings: +The following patterns are **not** warnings: ```jsx diff --git a/docs/rules/jsx-indent.md b/docs/rules/jsx-indent.md index 492d60f6c6..6f8b73df53 100644 --- a/docs/rules/jsx-indent.md +++ b/docs/rules/jsx-indent.md @@ -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 @@ -54,7 +54,7 @@ The following patterns are considered warnings: ``` -The following patterns are not warnings: +The following patterns are **not** warnings: ```jsx diff --git a/docs/rules/jsx-key.md b/docs/rules/jsx-key.md index 60c4ca3edb..d94a7bb9f1 100644 --- a/docs/rules/jsx-key.md +++ b/docs/rules/jsx-key.md @@ -13,7 +13,7 @@ The following patterns are considered warnings: data.map(x => x); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx [, , ]; @@ -25,6 +25,6 @@ data.map((x, i) => x); 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. diff --git a/docs/rules/jsx-max-props-per-line.md b/docs/rules/jsx-max-props-per-line.md index d0a167c857..13d30fbcfa 100644 --- a/docs/rules/jsx-max-props-per-line.md +++ b/docs/rules/jsx-max-props-per-line.md @@ -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 ; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx // [1, { "maximum": 2 }] @@ -74,7 +74,7 @@ The following patterns are considered warnings: ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx // [1, { "when": "multiline" }] diff --git a/docs/rules/jsx-no-bind.md b/docs/rules/jsx-no-bind.md index fb3adeb9e5..6ac449880a 100644 --- a/docs/rules/jsx-no-bind.md +++ b/docs/rules/jsx-no-bind.md @@ -13,7 +13,7 @@ The following patterns are considered warnings:
console.log('Hello!')}>
``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx
``` @@ -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
this._div = c} /> @@ -39,7 +39,7 @@ 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
alert("1337")} /> @@ -47,7 +47,7 @@ When `true` the following is not considered a warning: ### `allowBind` -When `true` the following is not considered a warning: +When `true` the following is **not** considered a warning: ```jsx
diff --git a/docs/rules/jsx-no-comment-textnodes.md b/docs/rules/jsx-no-comment-textnodes.md index 24b19f90da..de940b72b7 100644 --- a/docs/rules/jsx-no-comment-textnodes.md +++ b/docs/rules/jsx-no-comment-textnodes.md @@ -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({ diff --git a/docs/rules/jsx-no-duplicate-props.md b/docs/rules/jsx-no-duplicate-props.md index cb0d1c8fe0..fb31a1a116 100644 --- a/docs/rules/jsx-no-duplicate-props.md +++ b/docs/rules/jsx-no-duplicate-props.md @@ -10,7 +10,7 @@ The following patterns are considered warnings: ; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx ; diff --git a/docs/rules/jsx-no-literals.md b/docs/rules/jsx-no-literals.md index a42e271d9f..5478aaa097 100644 --- a/docs/rules/jsx-no-literals.md +++ b/docs/rules/jsx-no-literals.md @@ -13,7 +13,7 @@ The following patterns are considered warnings: var Hello =
test
; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello =
{'test'}
; @@ -41,7 +41,7 @@ var Hello =
test
; var Hello =
{'test'}
; ``` -The following are not considered warnings: +The following are **not** considered warnings: ```jsx // When using something like `react-intl` diff --git a/docs/rules/jsx-no-target-blank.md b/docs/rules/jsx-no-target-blank.md index ef30c808ea..ae92669f39 100644 --- a/docs/rules/jsx-no-target-blank.md +++ b/docs/rules/jsx-no-target-blank.md @@ -14,7 +14,7 @@ The following patterns are considered errors: var Hello = ``` -The following patterns are not considered errors: +The following patterns are **not** considered errors: ```jsx var Hello =

diff --git a/docs/rules/jsx-no-undef.md b/docs/rules/jsx-no-undef.md index 9e244d8cb8..1710039a1c 100644 --- a/docs/rules/jsx-no-undef.md +++ b/docs/rules/jsx-no-undef.md @@ -21,7 +21,7 @@ module.exports = Hello; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = require('./Hello'); @@ -41,7 +41,7 @@ var Hello = require('./Hello'); When `true` the rule will consider the global scope when checking for defined Components. -The following patterns are considered okay and do not cause warnings: +The following patterns are considered okay and do **not** cause warnings: ```jsx var Text = require('./Text'); diff --git a/docs/rules/jsx-pascal-case.md b/docs/rules/jsx-pascal-case.md index 5a3456d813..00af2eb013 100644 --- a/docs/rules/jsx-pascal-case.md +++ b/docs/rules/jsx-pascal-case.md @@ -16,7 +16,7 @@ The following patterns are considered warnings: ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx
diff --git a/docs/rules/jsx-sort-props.md b/docs/rules/jsx-sort-props.md index 5b770514bb..9c2e2623ec 100644 --- a/docs/rules/jsx-sort-props.md +++ b/docs/rules/jsx-sort-props.md @@ -14,7 +14,7 @@ The following patterns are considered warnings: ; ``` -The following patterns are considered okay and do not cause warnings: +The following patterns are considered okay and do **not** cause warnings: ```jsx ; @@ -72,7 +72,7 @@ When `true`, short hand props must be listed after all other props (unless `call ### `noSortAlphabetically` -When `true`, alphabetical order is not enforced: +When `true`, alphabetical order is **not** enforced: ```jsx @@ -92,7 +92,7 @@ When `reservedFirst` is defined, React reserved props (`children`, `dangerouslyS If given as an array, the array's values will override the default list of reserved props. **Note**: the values in the array may only be a **subset** of React reserved props. -With `reservedFirst: [2, ["key"]]`, the following will not warn: +With `reservedFirst: [2, ["key"]]`, the following will **not** warn: ```jsx diff --git a/docs/rules/jsx-space-before-closing.md b/docs/rules/jsx-space-before-closing.md index a888b7c0fe..b267952f20 100644 --- a/docs/rules/jsx-space-before-closing.md +++ b/docs/rules/jsx-space-before-closing.md @@ -19,7 +19,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 @@ -37,7 +37,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 diff --git a/docs/rules/jsx-tag-spacing.md b/docs/rules/jsx-tag-spacing.md index 75ed07ee13..10ae717626 100644 --- a/docs/rules/jsx-tag-spacing.md +++ b/docs/rules/jsx-tag-spacing.md @@ -37,7 +37,7 @@ The following patterns are considered warnings when configured `"never"`: < /Provider> ``` -The following patterns are not considered warnings when configured `"never"`: +The following patterns are **not** considered warnings when configured `"never"`: ```jsx @@ -52,7 +52,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 @@ -72,7 +72,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 @@ -90,7 +90,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 @@ -118,7 +118,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> @@ -142,7 +142,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 @@ -164,7 +164,7 @@ The following patterns are considered warnings when configured `"allow-multiline /> ``` -The following patterns are not considered warnings when configured `"allow-multiline"`: +The following patterns are **not** considered warnings when configured `"allow-multiline"`: ```jsx diff --git a/docs/rules/jsx-uses-react.md b/docs/rules/jsx-uses-react.md index b1c45fab75..205cb4251c 100644 --- a/docs/rules/jsx-uses-react.md +++ b/docs/rules/jsx-uses-react.md @@ -26,7 +26,7 @@ var React = require('react'); var Hello =
Hello {this.props.name}
; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var React = require('react'); diff --git a/docs/rules/jsx-uses-vars.md b/docs/rules/jsx-uses-vars.md index fd20e1dfb0..dc58fe2eb1 100644 --- a/docs/rules/jsx-uses-vars.md +++ b/docs/rules/jsx-uses-vars.md @@ -12,7 +12,7 @@ The following patterns are considered warnings: var Hello = require('./Hello'); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = require('./Hello'); diff --git a/docs/rules/jsx-wrap-multilines.md b/docs/rules/jsx-wrap-multilines.md index d80bf70d04..b2c90f9783 100644 --- a/docs/rules/jsx-wrap-multilines.md +++ b/docs/rules/jsx-wrap-multilines.md @@ -27,7 +27,7 @@ var Hello = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var singleLineJSX =

Hello

@@ -51,7 +51,7 @@ var hello =
; ``` -The following patterns are not considered warnings when configured `{declaration: true}`. +The following patterns are **not** considered warnings when configured `{declaration: true}`. ```jsx var hello = ( @@ -70,7 +70,7 @@ hello =
; ``` -The following patterns are not considered warnings when configured `{assignment: true}`. +The following patterns are **not** considered warnings when configured `{assignment: true}`. ```jsx var hello; @@ -90,7 +90,7 @@ function hello() { } ``` -The following patterns are not considered warnings when configured `{return: true}`. +The following patterns are **not** considered warnings when configured `{return: true}`. ```jsx function hello() { @@ -109,7 +109,7 @@ var hello = () =>
; ``` -The following patterns are not considered warnings when configured `{arrow: true}`. +The following patterns are **not** considered warnings when configured `{arrow: true}`. ```jsx var hello = () => ( diff --git a/docs/rules/no-array-index-key.md b/docs/rules/no-array-index-key.md index 81e5fe886c..0b8e6337e3 100644 --- a/docs/rules/no-array-index-key.md +++ b/docs/rules/no-array-index-key.md @@ -52,7 +52,7 @@ things.reduceRight((collection, thing, index) => ( ), []); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx things.map((thing) => ( diff --git a/docs/rules/no-children-prop.md b/docs/rules/no-children-prop.md index dc26f027ae..b3a5b4b705 100644 --- a/docs/rules/no-children-prop.md +++ b/docs/rules/no-children-prop.md @@ -19,7 +19,7 @@ The following patterns are considered warnings: React.createElement("div", { children: 'Children' }) ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx
Children
diff --git a/docs/rules/no-danger-with-children.md b/docs/rules/no-danger-with-children.md index 673ab5afe7..f1b86ec861 100644 --- a/docs/rules/no-danger-with-children.md +++ b/docs/rules/no-danger-with-children.md @@ -24,7 +24,7 @@ React.createElement("div", { dangerouslySetInnerHTML: { __html: "HTML" } }, "Chi React.createElement("Hello", { dangerouslySetInnerHTML: { __html: "HTML" } }, "Children"); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx
diff --git a/docs/rules/no-danger.md b/docs/rules/no-danger.md index b1dfe3b484..31512e8305 100644 --- a/docs/rules/no-danger.md +++ b/docs/rules/no-danger.md @@ -14,7 +14,7 @@ var React = require('react'); var Hello =
; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var React = require('react'); diff --git a/docs/rules/no-deprecated.md b/docs/rules/no-deprecated.md index 82b8b540db..0296f7d7a5 100644 --- a/docs/rules/no-deprecated.md +++ b/docs/rules/no-deprecated.md @@ -26,7 +26,7 @@ const propTypes = { import React, { PropTypes } from 'react'; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx ReactDOM.render(, root); diff --git a/docs/rules/no-did-mount-set-state.md b/docs/rules/no-did-mount-set-state.md index 0cefc284b3..c3c946d88e 100644 --- a/docs/rules/no-did-mount-set-state.md +++ b/docs/rules/no-did-mount-set-state.md @@ -21,7 +21,7 @@ var Hello = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/no-did-update-set-state.md b/docs/rules/no-did-update-set-state.md index 0a82442f6e..ee47941b5c 100644 --- a/docs/rules/no-did-update-set-state.md +++ b/docs/rules/no-did-update-set-state.md @@ -19,7 +19,7 @@ var Hello = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/no-direct-mutation-state.md b/docs/rules/no-direct-mutation-state.md index 3a8c8bdd05..21cb4b3381 100644 --- a/docs/rules/no-direct-mutation-state.md +++ b/docs/rules/no-direct-mutation-state.md @@ -34,7 +34,7 @@ class Hello extends React.Component { ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/no-find-dom-node.md b/docs/rules/no-find-dom-node.md index 8af82522b3..c9e343746a 100644 --- a/docs/rules/no-find-dom-node.md +++ b/docs/rules/no-find-dom-node.md @@ -19,7 +19,7 @@ class MyComponent extends Component { } ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx class MyComponent extends Component { diff --git a/docs/rules/no-is-mounted.md b/docs/rules/no-is-mounted.md index b2931e1d1e..2f9a841b42 100644 --- a/docs/rules/no-is-mounted.md +++ b/docs/rules/no-is-mounted.md @@ -23,7 +23,7 @@ var Hello = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/no-multi-comp.md b/docs/rules/no-multi-comp.md index ac972d87ae..38b96b680b 100644 --- a/docs/rules/no-multi-comp.md +++ b/docs/rules/no-multi-comp.md @@ -20,7 +20,7 @@ var HelloJohn = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = require('./components/Hello'); @@ -44,7 +44,7 @@ var HelloJohn = createReactClass({ When `true` the rule will ignore stateless components and will allow you to have multiple stateless components, or one stateful component and some stateless components in the same file. -The following patterns are considered okay and do not cause warnings: +The following patterns are considered okay and do **not** cause warnings: ```jsx function Hello(props) { diff --git a/docs/rules/no-redundant-should-component-update.md b/docs/rules/no-redundant-should-component-update.md index a57b6f7eba..ba049ea140 100644 --- a/docs/rules/no-redundant-should-component-update.md +++ b/docs/rules/no-redundant-should-component-update.md @@ -31,7 +31,7 @@ function Bar() { } ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx class Foo extends React.Component { diff --git a/docs/rules/no-render-return-value.md b/docs/rules/no-render-return-value.md index fc49cd38cc..dbafb0b5b1 100644 --- a/docs/rules/no-render-return-value.md +++ b/docs/rules/no-render-return-value.md @@ -15,7 +15,7 @@ const inst = ReactDOM.render(, document.body); doSomethingWithInst(inst); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx ReactDOM.render(, document.body); diff --git a/docs/rules/no-set-state.md b/docs/rules/no-set-state.md index 7de61e75ff..92e972e38e 100644 --- a/docs/rules/no-set-state.md +++ b/docs/rules/no-set-state.md @@ -24,7 +24,7 @@ var Hello = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/no-string-refs.md b/docs/rules/no-string-refs.md index 359a5ab102..521715a40a 100644 --- a/docs/rules/no-string-refs.md +++ b/docs/rules/no-string-refs.md @@ -4,7 +4,7 @@ Currently, two ways are supported by React to refer to components. The first way ## Rule Details -Invalid: +The following patterns are considered warnings: ```jsx var Hello = createReactClass({ @@ -26,7 +26,7 @@ var Hello = createReactClass({ }); ``` -Valid: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/no-typos.md b/docs/rules/no-typos.md index ed2bfec8fb..50a86c19ce 100644 --- a/docs/rules/no-typos.md +++ b/docs/rules/no-typos.md @@ -82,7 +82,7 @@ class MyComponent extends React.Component { ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```js class MyComponent extends React.Component { diff --git a/docs/rules/no-unescaped-entities.md b/docs/rules/no-unescaped-entities.md index a22339b2f3..b561cb19af 100644 --- a/docs/rules/no-unescaped-entities.md +++ b/docs/rules/no-unescaped-entities.md @@ -59,7 +59,7 @@ The following patterns are considered warnings:
>
``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx
>
diff --git a/docs/rules/no-unknown-property.md b/docs/rules/no-unknown-property.md index 67f5192205..578e72b0d4 100644 --- a/docs/rules/no-unknown-property.md +++ b/docs/rules/no-unknown-property.md @@ -14,7 +14,7 @@ var React = require('react'); var Hello =
Hello World
; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var React = require('react'); diff --git a/docs/rules/no-unused-prop-types.md b/docs/rules/no-unused-prop-types.md index 083182af88..338c99f392 100644 --- a/docs/rules/no-unused-prop-types.md +++ b/docs/rules/no-unused-prop-types.md @@ -28,7 +28,7 @@ var Hello = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/no-will-update-set-state.md b/docs/rules/no-will-update-set-state.md index 8735ffa8ed..95bbcf36ce 100644 --- a/docs/rules/no-will-update-set-state.md +++ b/docs/rules/no-will-update-set-state.md @@ -19,7 +19,7 @@ var Hello = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/prefer-es6-class.md b/docs/rules/prefer-es6-class.md index 3996a4a941..c044211183 100644 --- a/docs/rules/prefer-es6-class.md +++ b/docs/rules/prefer-es6-class.md @@ -24,7 +24,7 @@ var Hello = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx class Hello extends React.Component { @@ -48,7 +48,7 @@ class Hello extends React.Component { } ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/prefer-stateless-function.md b/docs/rules/prefer-stateless-function.md index f1211fdf9e..3b47f543a7 100644 --- a/docs/rules/prefer-stateless-function.md +++ b/docs/rules/prefer-stateless-function.md @@ -25,7 +25,7 @@ var Hello = createReactClass({ }); ``` -The following pattern is not considered a warning: +The following pattern is **not** considered a warning: ```jsx const Foo = function(props, context) { @@ -37,7 +37,7 @@ const Foo = function(props, context) { }; ``` -The following pattern is not considered a warning in React <15.0.0: +The following pattern is **not** considered a warning in React <15.0.0: ```jsx class Foo extends React.Component { @@ -66,7 +66,7 @@ class Foo extends React.Component { When `true` the rule will ignore Components extending from `React.PureComponent` that use `this.props` or `this.context`. -The following pattern is considered okay and does not cause warnings: +The following pattern is considered okay and does **not** cause warnings: ```jsx class Foo extends React.PureComponent { diff --git a/docs/rules/prop-types.md b/docs/rules/prop-types.md index 05c8817fe0..627b93bb94 100644 --- a/docs/rules/prop-types.md +++ b/docs/rules/prop-types.md @@ -62,7 +62,7 @@ class HelloEs6WithPublicClassField extends React.Component { } ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/react-in-jsx-scope.md b/docs/rules/react-in-jsx-scope.md index c6591b0301..cf7d20ed31 100644 --- a/docs/rules/react-in-jsx-scope.md +++ b/docs/rules/react-in-jsx-scope.md @@ -20,7 +20,7 @@ var React = require('react'); var Hello =
Hello {this.props.name}
; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx import React from 'react'; diff --git a/docs/rules/require-default-props.md b/docs/rules/require-default-props.md index ce1bf7060c..6c543ddbe5 100644 --- a/docs/rules/require-default-props.md +++ b/docs/rules/require-default-props.md @@ -132,7 +132,7 @@ function MyStatelessComponent(props: Props) { } ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx function MyStatelessComponent({ foo, bar }) { diff --git a/docs/rules/require-optimization.md b/docs/rules/require-optimization.md index bda590a7c3..4d26696675 100644 --- a/docs/rules/require-optimization.md +++ b/docs/rules/require-optimization.md @@ -17,7 +17,7 @@ createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```js class YourComponent extends React.Component { @@ -64,7 +64,7 @@ createReactClass({ Sets the allowed names of decorators. If the variable is present in the chain of decorators, it validates -The following patterns are not warnings: +The following patterns are **not** warnings: ```js // ['pureRender'] diff --git a/docs/rules/require-render-return.md b/docs/rules/require-render-return.md index faf127b7fc..d68028a4af 100644 --- a/docs/rules/require-render-return.md +++ b/docs/rules/require-render-return.md @@ -20,7 +20,7 @@ class Hello extends React.Component { } ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ diff --git a/docs/rules/self-closing-comp.md b/docs/rules/self-closing-comp.md index a81d54f274..989f38f98f 100644 --- a/docs/rules/self-closing-comp.md +++ b/docs/rules/self-closing-comp.md @@ -12,7 +12,7 @@ The following patterns are considered warnings: var HelloJohn = ; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var contentContainer =
; @@ -49,7 +49,7 @@ The following patterns are considered warnings: var HelloJohn = ; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var contentContainer =
; @@ -71,7 +71,7 @@ The following patterns are considered warnings: var contentContainer =
; ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var contentContainer =
; diff --git a/docs/rules/sort-comp.md b/docs/rules/sort-comp.md index c1ec19b0bb..87612f115d 100644 --- a/docs/rules/sort-comp.md +++ b/docs/rules/sort-comp.md @@ -24,7 +24,7 @@ var Hello = createReactClass({ }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ @@ -120,7 +120,7 @@ var Hello = createReactClass({ }); ``` -With the above configuration, the following patterns are not considered warnings: +With the above configuration, the following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ @@ -162,7 +162,7 @@ var Hello = createReactClass({ }); ``` -With the above configuration, the following patterns are not considered warnings: +With the above configuration, the following patterns are **not** considered warnings: ```jsx var Hello = createReactClass({ @@ -201,7 +201,7 @@ class Hello extends React.Component { } ``` -With the above configuration, the following patterns are not considered warnings: +With the above configuration, the following patterns are **not** considered warnings: ```jsx type Props = {}; diff --git a/docs/rules/sort-prop-types.md b/docs/rules/sort-prop-types.md index d59ebc2c11..03ae6abd82 100644 --- a/docs/rules/sort-prop-types.md +++ b/docs/rules/sort-prop-types.md @@ -39,7 +39,7 @@ class Component extends React.Component { } ``` -The following patterns are considered okay and do not cause warnings: +The following patterns are considered okay and do **not** cause warnings: ```jsx var Component = createReactClass({ diff --git a/docs/rules/style-prop-object.md b/docs/rules/style-prop-object.md index 389afa4e46..464f889cb6 100644 --- a/docs/rules/style-prop-object.md +++ b/docs/rules/style-prop-object.md @@ -30,7 +30,7 @@ React.createElement("div", { style: styles }); ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx
diff --git a/docs/rules/void-dom-elements-no-children.md b/docs/rules/void-dom-elements-no-children.md index 81c1e861ec..ea9322cb7d 100644 --- a/docs/rules/void-dom-elements-no-children.md +++ b/docs/rules/void-dom-elements-no-children.md @@ -18,7 +18,7 @@ React.createElement('br', { children: 'Children' }) React.createElement('br', { dangerouslySetInnerHTML: { __html: 'HTML' } }) ``` -The following patterns are not considered warnings: +The following patterns are **not** considered warnings: ```jsx
Children