From 2ddedd5ca01a1c1b08424a9a05015cb35834cc78 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 28 Apr 2021 08:31:25 -0700 Subject: [PATCH] [meta] ensure trailing newlines on files --- .github/workflows/readme.yml | 2 +- docs/rules/button-has-type.md | 2 +- docs/rules/destructuring-assignment.md | 2 +- docs/rules/display-name.md | 2 +- docs/rules/jsx-boolean-value.md | 2 +- docs/rules/jsx-closing-tag-location.md | 2 +- docs/rules/jsx-curly-brace-presence.md | 2 +- docs/rules/jsx-equals-spacing.md | 2 +- docs/rules/jsx-filename-extension.md | 2 +- docs/rules/jsx-first-prop-new-line.md | 2 +- docs/rules/jsx-fragments.md | 2 +- docs/rules/jsx-handler-names.md | 2 +- docs/rules/jsx-indent-props.md | 2 +- docs/rules/jsx-indent.md | 2 +- docs/rules/jsx-key.md | 2 +- docs/rules/jsx-max-depth.md | 2 +- docs/rules/jsx-max-props-per-line.md | 2 +- docs/rules/jsx-no-bind.md | 2 +- docs/rules/jsx-no-comment-textnodes.md | 2 +- docs/rules/jsx-no-duplicate-props.md | 2 +- docs/rules/jsx-no-literals.md | 2 +- docs/rules/jsx-no-script-url.md | 2 +- docs/rules/jsx-props-no-multi-spaces.md | 2 +- docs/rules/jsx-sort-default-props.md | 2 +- docs/rules/jsx-sort-props.md | 2 +- docs/rules/jsx-space-before-closing.md | 2 +- docs/rules/jsx-tag-spacing.md | 2 +- docs/rules/jsx-uses-react.md | 2 +- docs/rules/jsx-uses-vars.md | 2 +- docs/rules/jsx-wrap-multilines.md | 2 +- docs/rules/no-unused-state.md | 2 +- docs/rules/prefer-stateless-function.md | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index c865d7320e..eeedbc53a1 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -13,4 +13,4 @@ jobs: with: node-version: 'lts/*' skip-ls-check: true - - run: npm run generate-list-of-rules \ No newline at end of file + - run: npm run generate-list-of-rules diff --git a/docs/rules/button-has-type.md b/docs/rules/button-has-type.md index a3a2b5fb75..d18af5afd4 100644 --- a/docs/rules/button-has-type.md +++ b/docs/rules/button-has-type.md @@ -60,4 +60,4 @@ var Hello = React.createElement('button', {type: condition ? "button" : "reset"} ## When Not To Use It -If you use only `"submit"` buttons, you can disable this rule \ No newline at end of file +If you use only `"submit"` buttons, you can disable this rule diff --git a/docs/rules/destructuring-assignment.md b/docs/rules/destructuring-assignment.md index c482051b6f..622d348665 100644 --- a/docs/rules/destructuring-assignment.md +++ b/docs/rules/destructuring-assignment.md @@ -103,4 +103,4 @@ When configured with `true`, the rule will ignore class field declarations. Exam class Foo extends React.PureComponent { bar = this.props.bar } -``` \ No newline at end of file +``` diff --git a/docs/rules/display-name.md b/docs/rules/display-name.md index 6c4087c62c..9c0d911623 100644 --- a/docs/rules/display-name.md +++ b/docs/rules/display-name.md @@ -120,4 +120,4 @@ For now we should detect components created with: * `createReactClass()` * an ES6 class that inherit from `React.Component` or `Component` -* a stateless function that return JSX or the result of a `React.createElement` call. \ No newline at end of file +* a stateless function that return JSX or the result of a `React.createElement` call. diff --git a/docs/rules/jsx-boolean-value.md b/docs/rules/jsx-boolean-value.md index 199767e8de..c6a7593335 100644 --- a/docs/rules/jsx-boolean-value.md +++ b/docs/rules/jsx-boolean-value.md @@ -36,4 +36,4 @@ var Hello = ; ## When Not To Use It -If you do not want to enforce any style for boolean attributes, then you can disable this rule. \ No newline at end of file +If you do not want to enforce any style for boolean attributes, then you can disable this rule. diff --git a/docs/rules/jsx-closing-tag-location.md b/docs/rules/jsx-closing-tag-location.md index 5cf44bc6a8..2095934df7 100644 --- a/docs/rules/jsx-closing-tag-location.md +++ b/docs/rules/jsx-closing-tag-location.md @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## When not to use -If you do not care about closing tag JSX alignment then you can disable this rule. \ No newline at end of file +If you do not care about closing tag JSX alignment then you can disable this rule. diff --git a/docs/rules/jsx-curly-brace-presence.md b/docs/rules/jsx-curly-brace-presence.md index ee8fae8149..645d6536f2 100644 --- a/docs/rules/jsx-curly-brace-presence.md +++ b/docs/rules/jsx-curly-brace-presence.md @@ -156,4 +156,4 @@ Examples of **correct** code for this rule, even when configured with `"never"`: ## When Not To Use It -You should turn this rule off if you are not concerned about maintaining consistency regarding the use of curly braces in JSX props and/or children as well as the use of unnecessary JSX expressions. \ No newline at end of file +You should turn this rule off if you are not concerned about maintaining consistency regarding the use of curly braces in JSX props and/or children as well as the use of unnecessary JSX expressions. diff --git a/docs/rules/jsx-equals-spacing.md b/docs/rules/jsx-equals-spacing.md index 38deeff33b..dccca8c0eb 100644 --- a/docs/rules/jsx-equals-spacing.md +++ b/docs/rules/jsx-equals-spacing.md @@ -59,4 +59,4 @@ Examples of **correct** code for this rule, when configured with `"always"`: ## When Not To Use It -You can turn this rule off if you are not concerned with the consistency of spacing around equal signs in JSX attributes. \ No newline at end of file +You can turn this rule off if you are not concerned with the consistency of spacing around equal signs in JSX attributes. diff --git a/docs/rules/jsx-filename-extension.md b/docs/rules/jsx-filename-extension.md index 176d6f40ea..2dda499f23 100644 --- a/docs/rules/jsx-filename-extension.md +++ b/docs/rules/jsx-filename-extension.md @@ -46,4 +46,4 @@ The set of allowed extensions is configurable. By default '.jsx' is allowed. If ## When Not To Use It -If you don't care about restricting the file extensions that may contain JSX. \ No newline at end of file +If you don't care about restricting the file extensions that may contain JSX. diff --git a/docs/rules/jsx-first-prop-new-line.md b/docs/rules/jsx-first-prop-new-line.md index 11ccc09901..e9e2353c6d 100644 --- a/docs/rules/jsx-first-prop-new-line.md +++ b/docs/rules/jsx-first-prop-new-line.md @@ -107,4 +107,4 @@ Examples of **correct** code for this rule, when configured with `"multiline-mul ## When not to use -If you are not using JSX then you can disable this rule. \ No newline at end of file +If you are not using JSX then you can disable this rule. diff --git a/docs/rules/jsx-fragments.md b/docs/rules/jsx-fragments.md index 748b7984e3..8b5990a45d 100644 --- a/docs/rules/jsx-fragments.md +++ b/docs/rules/jsx-fragments.md @@ -56,4 +56,4 @@ Examples of **correct** code for this rule: [fragments]: https://reactjs.org/docs/fragments.html [shared_settings]: /README.md#configuration -[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax \ No newline at end of file +[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax diff --git a/docs/rules/jsx-handler-names.md b/docs/rules/jsx-handler-names.md index 9a8c612fd8..4decd5eb93 100644 --- a/docs/rules/jsx-handler-names.md +++ b/docs/rules/jsx-handler-names.md @@ -44,4 +44,4 @@ Examples of **correct** code for this rule: ## When Not To Use It -If you are not using JSX, or if you don't want to enforce specific naming conventions for event handlers. \ No newline at end of file +If you are not using JSX, or if you don't want to enforce specific naming conventions for event handlers. diff --git a/docs/rules/jsx-indent-props.md b/docs/rules/jsx-indent-props.md index 510f85ed64..09ff048e4a 100644 --- a/docs/rules/jsx-indent-props.md +++ b/docs/rules/jsx-indent-props.md @@ -121,4 +121,4 @@ firstName="John" ## When not to use -If you are not using JSX then you can disable this rule. \ No newline at end of file +If you are not using JSX then you can disable this rule. diff --git a/docs/rules/jsx-indent.md b/docs/rules/jsx-indent.md index 064417052c..4950cd459e 100644 --- a/docs/rules/jsx-indent.md +++ b/docs/rules/jsx-indent.md @@ -112,4 +112,4 @@ Examples of **correct** code for this rule: ## When not to use -If you are not using JSX then you can disable this rule. \ No newline at end of file +If you are not using JSX then you can disable this rule. diff --git a/docs/rules/jsx-key.md b/docs/rules/jsx-key.md index 39d9f28d28..e454db186c 100644 --- a/docs/rules/jsx-key.md +++ b/docs/rules/jsx-key.md @@ -65,4 +65,4 @@ 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. -[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax \ No newline at end of file +[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax diff --git a/docs/rules/jsx-max-depth.md b/docs/rules/jsx-max-depth.md index 004f950075..c95fc4ec02 100644 --- a/docs/rules/jsx-max-depth.md +++ b/docs/rules/jsx-max-depth.md @@ -81,4 +81,4 @@ Examples of **correct** code for this rule: ## When not to use -If you are not using JSX then you can disable this rule. \ No newline at end of file +If you are not using JSX then you can disable this rule. diff --git a/docs/rules/jsx-max-props-per-line.md b/docs/rules/jsx-max-props-per-line.md index 15b0236f40..d40180c716 100644 --- a/docs/rules/jsx-max-props-per-line.md +++ b/docs/rules/jsx-max-props-per-line.md @@ -86,4 +86,4 @@ Examples of **correct** code for this rule: ## When not to use -If you are not using JSX then you can disable this rule. \ No newline at end of file +If you are not using JSX then you can disable this rule. diff --git a/docs/rules/jsx-no-bind.md b/docs/rules/jsx-no-bind.md index 0cd5c6bf3a..d7335ed182 100644 --- a/docs/rules/jsx-no-bind.md +++ b/docs/rules/jsx-no-bind.md @@ -182,4 +182,4 @@ const Button = () => { ## When Not To Use It -If you do not use JSX or do not want to enforce that `bind` or arrow functions are not used in props, then you can disable this rule. \ No newline at end of file +If you do not use JSX or do not want to enforce that `bind` or arrow functions are not used in props, then you can disable this rule. diff --git a/docs/rules/jsx-no-comment-textnodes.md b/docs/rules/jsx-no-comment-textnodes.md index 5d77bd5af8..7e849520c9 100644 --- a/docs/rules/jsx-no-comment-textnodes.md +++ b/docs/rules/jsx-no-comment-textnodes.md @@ -64,4 +64,4 @@ var Hello = createReactClass({ ); } }); -``` \ No newline at end of file +``` diff --git a/docs/rules/jsx-no-duplicate-props.md b/docs/rules/jsx-no-duplicate-props.md index 4ffdc44985..cee7984873 100644 --- a/docs/rules/jsx-no-duplicate-props.md +++ b/docs/rules/jsx-no-duplicate-props.md @@ -30,4 +30,4 @@ When `true` the rule ignores the case of the props. Default to `false`. ## When Not To Use It -If you are not using JSX then you can disable this rule. \ No newline at end of file +If you are not using JSX then you can disable this rule. diff --git a/docs/rules/jsx-no-literals.md b/docs/rules/jsx-no-literals.md index 2b9936c1b1..b41355fb11 100644 --- a/docs/rules/jsx-no-literals.md +++ b/docs/rules/jsx-no-literals.md @@ -133,4 +133,4 @@ class Comp1 extends Component { ## When Not To Use It -If you do not want to enforce any style JSX literals, then you can disable this rule. \ No newline at end of file +If you do not want to enforce any style JSX literals, then you can disable this rule. diff --git a/docs/rules/jsx-no-script-url.md b/docs/rules/jsx-no-script-url.md index a77d0d1ddb..a3b4fa0180 100644 --- a/docs/rules/jsx-no-script-url.md +++ b/docs/rules/jsx-no-script-url.md @@ -54,4 +54,4 @@ Examples of **incorrect** code for this rule, when configured with the above opt -``` \ No newline at end of file +``` diff --git a/docs/rules/jsx-props-no-multi-spaces.md b/docs/rules/jsx-props-no-multi-spaces.md index b3b0c03fcf..984e7f6119 100644 --- a/docs/rules/jsx-props-no-multi-spaces.md +++ b/docs/rules/jsx-props-no-multi-spaces.md @@ -43,4 +43,4 @@ Examples of **correct** code for this rule: If you are not using JSX or don't care about the space between two props in the same line. -If you have enabled the core rule `no-multi-spaces` with eslint >= 3, you don't need this rule. \ No newline at end of file +If you have enabled the core rule `no-multi-spaces` with eslint >= 3, you don't need this rule. diff --git a/docs/rules/jsx-sort-default-props.md b/docs/rules/jsx-sort-default-props.md index 88ffeea893..9aaf44a4db 100644 --- a/docs/rules/jsx-sort-default-props.md +++ b/docs/rules/jsx-sort-default-props.md @@ -182,4 +182,4 @@ When `true` the rule ignores the case-sensitivity of the declarations order. ## When not to use -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. \ No newline at end of file +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. diff --git a/docs/rules/jsx-sort-props.md b/docs/rules/jsx-sort-props.md index 6914037211..2b8e36e295 100644 --- a/docs/rules/jsx-sort-props.md +++ b/docs/rules/jsx-sort-props.md @@ -100,4 +100,4 @@ With `reservedFirst: ["key"]`, the following will **not** warn: ## When not to use -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. \ No newline at end of file +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. diff --git a/docs/rules/jsx-space-before-closing.md b/docs/rules/jsx-space-before-closing.md index 0a259535aa..9a4470d90c 100644 --- a/docs/rules/jsx-space-before-closing.md +++ b/docs/rules/jsx-space-before-closing.md @@ -50,4 +50,4 @@ Examples of **correct** code for this rule, when configured with `"never"`: ## When Not To Use It -You can turn this rule off if you are not concerned with the consistency of spacing before closing brackets. \ No newline at end of file +You can turn this rule off if you are not concerned with the consistency of spacing before closing brackets. diff --git a/docs/rules/jsx-tag-spacing.md b/docs/rules/jsx-tag-spacing.md index 87859d3d08..fbf47aea8d 100644 --- a/docs/rules/jsx-tag-spacing.md +++ b/docs/rules/jsx-tag-spacing.md @@ -221,4 +221,4 @@ Examples of **correct** code for this rule, when configured with `{ "beforeClosi ## When Not To Use It -You can turn this rule off if you are not concerned with the consistency of spacing in or around JSX brackets. \ No newline at end of file +You can turn this rule off if you are not concerned with the consistency of spacing in or around JSX brackets. diff --git a/docs/rules/jsx-uses-react.md b/docs/rules/jsx-uses-react.md index 8dc6f3b4eb..9adc6d9526 100644 --- a/docs/rules/jsx-uses-react.md +++ b/docs/rules/jsx-uses-react.md @@ -43,4 +43,4 @@ var Hello =
Hello {this.props.name}
; ## When Not To Use It -If you are not using JSX, if React is declared as global variable or if you do not use the `no-unused-vars` rule then you can disable this rule. \ No newline at end of file +If you are not using JSX, if React is declared as global variable or if you do not use the `no-unused-vars` rule then you can disable this rule. diff --git a/docs/rules/jsx-uses-vars.md b/docs/rules/jsx-uses-vars.md index d1342f7de5..7da383c2bf 100644 --- a/docs/rules/jsx-uses-vars.md +++ b/docs/rules/jsx-uses-vars.md @@ -22,4 +22,4 @@ var Hello = require('./Hello'); ## When Not To Use It -If you are not using JSX or if you do not use the `no-unused-vars` rule then you can disable this rule. \ No newline at end of file +If you are not using JSX or if you do not use the `no-unused-vars` rule then you can disable this rule. diff --git a/docs/rules/jsx-wrap-multilines.md b/docs/rules/jsx-wrap-multilines.md index d53ab2152f..3d15ce03af 100644 --- a/docs/rules/jsx-wrap-multilines.md +++ b/docs/rules/jsx-wrap-multilines.md @@ -475,4 +475,4 @@ Examples of **correct** code for this rule, when configured with `{ prop: "paren )}>

Hello

; -``` \ No newline at end of file +``` diff --git a/docs/rules/no-unused-state.md b/docs/rules/no-unused-state.md index 1aad461dea..91afb3ae81 100644 --- a/docs/rules/no-unused-state.md +++ b/docs/rules/no-unused-state.md @@ -42,4 +42,4 @@ var UnusedGetInitialStateTest = createReactClass({ return ; } }) -``` \ No newline at end of file +``` diff --git a/docs/rules/prefer-stateless-function.md b/docs/rules/prefer-stateless-function.md index e44d157165..2503a0020a 100644 --- a/docs/rules/prefer-stateless-function.md +++ b/docs/rules/prefer-stateless-function.md @@ -80,4 +80,4 @@ class Bar extends React.PureComponent { return
Baz
; } } -``` \ No newline at end of file +```