File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
'use strict' ;
5
5
6
- var Components = require ( '../util/Components' ) ;
6
+ const Components = require ( '../util/Components' ) ;
7
7
8
8
// ------------------------------------------------------------------------------
9
9
// Rule Definition
@@ -39,8 +39,8 @@ module.exports = {
39
39
return ;
40
40
}
41
41
42
- var tokens = context . getFirstTokens ( node , 2 ) ;
43
- var propertyName = tokens [ 1 ] . value ;
42
+ const tokens = context . getFirstTokens ( node , 2 ) ;
43
+ const propertyName = tokens [ 1 ] . value ;
44
44
reportErrorIfCasingTypo ( node , propertyName ) ;
45
45
} ,
46
46
@@ -51,7 +51,7 @@ module.exports = {
51
51
relatedComponent &&
52
52
( utils . isES6Component ( relatedComponent . node ) || utils . isReturningJSX ( relatedComponent . node ) )
53
53
) {
54
- var propertyName = node . property . name ;
54
+ const propertyName = node . property . name ;
55
55
reportErrorIfCasingTypo ( node , propertyName ) ;
56
56
}
57
57
}
You can’t perform that action at this time.
0 commit comments