File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,12 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
16
16
### Changed
17
17
* [ Refactor] [ ` jsx-indent-props ` ] : improved readability of the checkNodesIndent function ([ #3315 ] [ ] @caroline223 )
18
18
* [ Tests] [ ` jsx-indent ` ] , [ ` jsx-one-expression-per-line ` ] : add passing test cases ([ #3314 ] [ ] @ROSSROSALES )
19
+ * [ Refactor] ` boolean-prop-naming ` , ` jsx-indent ` : avoid assigning to arguments ([ #3316 ] [ ] @caroline223 )
19
20
20
21
[ #3321 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3321
21
22
[ #3320 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3320
22
23
[ #3317 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3317
24
+ [ #3316 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3316
23
25
[ #3315 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3315
24
26
[ #3314 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3314
25
27
[ #3311 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3311
Original file line number Diff line number Diff line change @@ -172,9 +172,7 @@ module.exports = {
172
172
* @param {Function } addInvalidProp callback to run for each error
173
173
*/
174
174
function runCheck ( proptypes , addInvalidProp ) {
175
- proptypes = proptypes || [ ] ;
176
-
177
- proptypes . forEach ( ( prop ) => {
175
+ ( proptypes || [ ] ) . forEach ( ( prop ) => {
178
176
if ( config . validateNested && nestedPropTypes ( prop ) ) {
179
177
runCheck ( prop . value . arguments [ 0 ] . properties , addInvalidProp ) ;
180
178
return ;
Original file line number Diff line number Diff line change @@ -168,9 +168,6 @@ module.exports = {
168
168
* @return {Number } Indent
169
169
*/
170
170
function getNodeIndent ( node , byLastLine , excludeCommas ) {
171
- byLastLine = byLastLine || false ;
172
- excludeCommas = excludeCommas || false ;
173
-
174
171
let src = context . getSourceCode ( ) . getText ( node , node . loc . start . column + extraColumnStart ) ;
175
172
const lines = src . split ( '\n' ) ;
176
173
if ( byLastLine ) {
You can’t perform that action at this time.
0 commit comments