Skip to content

Commit c44771a

Browse files
committed
Merge branch 'master' of github.com:caroline223/eslint-plugin-react
2 parents 2ef100c + 1d0bc97 commit c44771a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
88
### Added
99
* [`jsx-newline`]: add `allowMultiline` option when prevent option is true ([#3311][] @TildaDares)
1010

11+
### Fixed
12+
* [Refactor] [`jsx-indent-props`]: improved readability of the checkNodesIndent function ([#3315][] @caroline223)
13+
14+
[#3315]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3315
1115
[#3311]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3311
1216

1317
## [7.30.1] - 2022.06.23

lib/rules/jsx-indent-props.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ module.exports = {
172172
* @param {Number} indent needed indent
173173
*/
174174
function checkNodesIndent(nodes, indent) {
175+
let nestedIndent = indent;
175176
nodes.forEach((node) => {
176177
let nestedIndent = indent;
177178
const nodeIndent = getNodeIndent(node);

0 commit comments

Comments
 (0)