Skip to content

Commit

Permalink
[meta] ensure trailing newlines on files
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 28, 2021
1 parent 6d7e5a1 commit 2ddedd5
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
with:
node-version: 'lts/*'
skip-ls-check: true
- run: npm run generate-list-of-rules
- run: npm run generate-list-of-rules
2 changes: 1 addition & 1 deletion docs/rules/button-has-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
If you use only `"submit"` buttons, you can disable this rule
2 changes: 1 addition & 1 deletion docs/rules/destructuring-assignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
```
2 changes: 1 addition & 1 deletion docs/rules/display-name.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* a stateless function that return JSX or the result of a `React.createElement` call.
2 changes: 1 addition & 1 deletion docs/rules/jsx-boolean-value.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ var Hello = <Hello personal={true} />;

## When Not To Use It

If you do not want to enforce any style for boolean attributes, then you can disable this rule.
If you do not want to enforce any style for boolean attributes, then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-closing-tag-location.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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-curly-brace-presence.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.
2 changes: 1 addition & 1 deletion docs/rules/jsx-equals-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
You can turn this rule off if you are not concerned with the consistency of spacing around equal signs in JSX attributes.
2 changes: 1 addition & 1 deletion docs/rules/jsx-filename-extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
If you don't care about restricting the file extensions that may contain JSX.
2 changes: 1 addition & 1 deletion docs/rules/jsx-first-prop-new-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-fragments.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax
2 changes: 1 addition & 1 deletion docs/rules/jsx-handler-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
If you are not using JSX, or if you don't want to enforce specific naming conventions for event handlers.
2 changes: 1 addition & 1 deletion docs/rules/jsx-indent-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ firstName="John"
## When not to use
If you are not using JSX then you can disable this rule.
If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-indent.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax
2 changes: 1 addition & 1 deletion docs/rules/jsx-max-depth.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-no-bind.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.
2 changes: 1 addition & 1 deletion docs/rules/jsx-no-comment-textnodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ var Hello = createReactClass({
);
}
});
```
```
2 changes: 1 addition & 1 deletion docs/rules/jsx-no-duplicate-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
If you are not using JSX then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-no-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
If you do not want to enforce any style JSX literals, then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-no-script-url.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ Examples of **incorrect** code for this rule, when configured with the above opt
<Link to="javascript:void(0)"></Link>
<Foo href="javascript:void(0)"></Foo>
<Foo to="javascript:void(0)"></Foo>
```
```
2 changes: 1 addition & 1 deletion docs/rules/jsx-props-no-multi-spaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
If you have enabled the core rule `no-multi-spaces` with eslint >= 3, you don't need this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-sort-default-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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/jsx-space-before-closing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
You can turn this rule off if you are not concerned with the consistency of spacing before closing brackets.
2 changes: 1 addition & 1 deletion docs/rules/jsx-tag-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
You can turn this rule off if you are not concerned with the consistency of spacing in or around JSX brackets.
2 changes: 1 addition & 1 deletion docs/rules/jsx-uses-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ var Hello = <div>Hello {this.props.name}</div>;

## 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.
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.
2 changes: 1 addition & 1 deletion docs/rules/jsx-uses-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
If you are not using JSX or if you do not use the `no-unused-vars` rule then you can disable this rule.
2 changes: 1 addition & 1 deletion docs/rules/jsx-wrap-multilines.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,4 +475,4 @@ Examples of **correct** code for this rule, when configured with `{ prop: "paren
)}>
<p>Hello</p>
</div>;
```
```
2 changes: 1 addition & 1 deletion docs/rules/no-unused-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ var UnusedGetInitialStateTest = createReactClass({
return <SomeComponent foo={this.state.foo} />;
}
})
```
```
2 changes: 1 addition & 1 deletion docs/rules/prefer-stateless-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ class Bar extends React.PureComponent {
return <div>Baz</div>;
}
}
```
```

0 comments on commit 2ddedd5

Please sign in to comment.