File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
13
13
14
14
### Changed
15
15
* [ Docs] [ ` no-unknown-property ` ] : fix typo in link ([ #3445 ] [ ] @denkristoffer )
16
+ * [ Perf] component detection: improve performance by optimizing getId ([ #3451 ] [ ] @golopot )
16
17
18
+ [ #3451 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3451
17
19
[ #3448 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3448
18
20
[ #3445 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3445
19
21
[ #3436 ] : https://github.com/jsx-eslint/eslint-plugin-react/issues/3436
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const isFirstLetterCapitalized = require('./isFirstLetterCapitalized');
21
21
const isDestructuredFromPragmaImport = require ( './isDestructuredFromPragmaImport' ) ;
22
22
23
23
function getId ( node ) {
24
- return node && node . range . join ( ':' ) ;
24
+ return node ? ` ${ node . range [ 0 ] } : ${ node . range [ 1 ] } ` : '' ;
25
25
}
26
26
27
27
function usedPropTypesAreEquivalent ( propA , propB ) {
You can’t perform that action at this time.
0 commit comments