Skip to content

Commit 2ddedd5

Browse files
committed
[meta] ensure trailing newlines on files
1 parent 6d7e5a1 commit 2ddedd5

32 files changed

+32
-32
lines changed

.github/workflows/readme.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
with:
1414
node-version: 'lts/*'
1515
skip-ls-check: true
16-
- run: npm run generate-list-of-rules
16+
- run: npm run generate-list-of-rules

docs/rules/button-has-type.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ var Hello = React.createElement('button', {type: condition ? "button" : "reset"}
6060

6161
## When Not To Use It
6262

63-
If you use only `"submit"` buttons, you can disable this rule
63+
If you use only `"submit"` buttons, you can disable this rule

docs/rules/destructuring-assignment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ When configured with `true`, the rule will ignore class field declarations. Exam
103103
class Foo extends React.PureComponent {
104104
bar = this.props.bar
105105
}
106-
```
106+
```

docs/rules/display-name.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ For now we should detect components created with:
120120

121121
* `createReactClass()`
122122
* an ES6 class that inherit from `React.Component` or `Component`
123-
* a stateless function that return JSX or the result of a `React.createElement` call.
123+
* a stateless function that return JSX or the result of a `React.createElement` call.

docs/rules/jsx-boolean-value.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ var Hello = <Hello personal={true} />;
3636

3737
## When Not To Use It
3838

39-
If you do not want to enforce any style for boolean attributes, then you can disable this rule.
39+
If you do not want to enforce any style for boolean attributes, then you can disable this rule.

docs/rules/jsx-closing-tag-location.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ Examples of **correct** code for this rule:
3535

3636
## When not to use
3737

38-
If you do not care about closing tag JSX alignment then you can disable this rule.
38+
If you do not care about closing tag JSX alignment then you can disable this rule.

docs/rules/jsx-curly-brace-presence.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ Examples of **correct** code for this rule, even when configured with `"never"`:
156156

157157
## When Not To Use It
158158

159-
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.
159+
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.

docs/rules/jsx-equals-spacing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ Examples of **correct** code for this rule, when configured with `"always"`:
5959

6060
## When Not To Use It
6161

62-
You can turn this rule off if you are not concerned with the consistency of spacing around equal signs in JSX attributes.
62+
You can turn this rule off if you are not concerned with the consistency of spacing around equal signs in JSX attributes.

docs/rules/jsx-filename-extension.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ The set of allowed extensions is configurable. By default '.jsx' is allowed. If
4646

4747
## When Not To Use It
4848

49-
If you don't care about restricting the file extensions that may contain JSX.
49+
If you don't care about restricting the file extensions that may contain JSX.

docs/rules/jsx-first-prop-new-line.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ Examples of **correct** code for this rule, when configured with `"multiline-mul
107107

108108
## When not to use
109109

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

docs/rules/jsx-fragments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ Examples of **correct** code for this rule:
5656

5757
[fragments]: https://reactjs.org/docs/fragments.html
5858
[shared_settings]: /README.md#configuration
59-
[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax
59+
[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax

docs/rules/jsx-handler-names.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ Examples of **correct** code for this rule:
4444

4545
## When Not To Use It
4646

47-
If you are not using JSX, or if you don't want to enforce specific naming conventions for event handlers.
47+
If you are not using JSX, or if you don't want to enforce specific naming conventions for event handlers.

docs/rules/jsx-indent-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ firstName="John"
121121
122122
## When not to use
123123
124-
If you are not using JSX then you can disable this rule.
124+
If you are not using JSX then you can disable this rule.

docs/rules/jsx-indent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ Examples of **correct** code for this rule:
112112

113113
## When not to use
114114

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

docs/rules/jsx-key.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ Also, if you have some prevalent situation where you use arrow functions to
6565
return JSX that will not be held in an iterable, you may want to disable this
6666
rule.
6767

68-
[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax
68+
[short_syntax]: https://reactjs.org/docs/fragments.html#short-syntax

docs/rules/jsx-max-depth.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ Examples of **correct** code for this rule:
8181

8282
## When not to use
8383

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

docs/rules/jsx-max-props-per-line.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ Examples of **correct** code for this rule:
8686

8787
## When not to use
8888

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

docs/rules/jsx-no-bind.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,4 @@ const Button = () => {
182182
183183
## When Not To Use It
184184
185-
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.
185+
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.

docs/rules/jsx-no-comment-textnodes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ var Hello = createReactClass({
6464
);
6565
}
6666
});
67-
```
67+
```

docs/rules/jsx-no-duplicate-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ When `true` the rule ignores the case of the props. Default to `false`.
3030

3131
## When Not To Use It
3232

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

docs/rules/jsx-no-literals.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ class Comp1 extends Component {
133133

134134
## When Not To Use It
135135

136-
If you do not want to enforce any style JSX literals, then you can disable this rule.
136+
If you do not want to enforce any style JSX literals, then you can disable this rule.

docs/rules/jsx-no-script-url.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ Examples of **incorrect** code for this rule, when configured with the above opt
5454
<Link to="javascript:void(0)"></Link>
5555
<Foo href="javascript:void(0)"></Foo>
5656
<Foo to="javascript:void(0)"></Foo>
57-
```
57+
```

docs/rules/jsx-props-no-multi-spaces.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ Examples of **correct** code for this rule:
4343

4444
If you are not using JSX or don't care about the space between two props in the same line.
4545

46-
If you have enabled the core rule `no-multi-spaces` with eslint >= 3, you don't need this rule.
46+
If you have enabled the core rule `no-multi-spaces` with eslint >= 3, you don't need this rule.

docs/rules/jsx-sort-default-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,4 @@ When `true` the rule ignores the case-sensitivity of the declarations order.
182182

183183
## When not to use
184184

185-
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.
185+
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.

docs/rules/jsx-sort-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ With `reservedFirst: ["key"]`, the following will **not** warn:
100100

101101
## When not to use
102102

103-
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.
103+
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.

docs/rules/jsx-space-before-closing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ Examples of **correct** code for this rule, when configured with `"never"`:
5050

5151
## When Not To Use It
5252

53-
You can turn this rule off if you are not concerned with the consistency of spacing before closing brackets.
53+
You can turn this rule off if you are not concerned with the consistency of spacing before closing brackets.

docs/rules/jsx-tag-spacing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,4 @@ Examples of **correct** code for this rule, when configured with `{ "beforeClosi
221221

222222
## When Not To Use It
223223

224-
You can turn this rule off if you are not concerned with the consistency of spacing in or around JSX brackets.
224+
You can turn this rule off if you are not concerned with the consistency of spacing in or around JSX brackets.

docs/rules/jsx-uses-react.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ var Hello = <div>Hello {this.props.name}</div>;
4343

4444
## When Not To Use It
4545

46-
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.
46+
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.

docs/rules/jsx-uses-vars.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ var Hello = require('./Hello');
2222

2323
## When Not To Use It
2424

25-
If you are not using JSX or if you do not use the `no-unused-vars` rule then you can disable this rule.
25+
If you are not using JSX or if you do not use the `no-unused-vars` rule then you can disable this rule.

docs/rules/jsx-wrap-multilines.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,4 +475,4 @@ Examples of **correct** code for this rule, when configured with `{ prop: "paren
475475
)}>
476476
<p>Hello</p>
477477
</div>;
478-
```
478+
```

docs/rules/no-unused-state.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ var UnusedGetInitialStateTest = createReactClass({
4242
return <SomeComponent foo={this.state.foo} />;
4343
}
4444
})
45-
```
45+
```

docs/rules/prefer-stateless-function.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ class Bar extends React.PureComponent {
8080
return <div>Baz</div>;
8181
}
8282
}
83-
```
83+
```

0 commit comments

Comments
 (0)