File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ function isJSXText(node) {
14
14
15
15
/**
16
16
* @param {string } text
17
+ * @returns {boolean }
17
18
*/
18
19
function isOnlyWhitespace ( text ) {
19
20
return text . trim ( ) . length === 0 ;
@@ -97,6 +98,7 @@ module.exports = {
97
98
/**
98
99
* Test whether a JSXElement has less than two children, excluding paddings spaces.
99
100
* @param {JSXElement|JSXFragment } node
101
+ * @returns {boolean }
100
102
*/
101
103
function hasLessThanTwoChildren ( node ) {
102
104
if ( ! node || ! node . children || node . children . length < 2 ) {
@@ -158,7 +160,7 @@ module.exports = {
158
160
159
161
/**
160
162
* @param {ASTNode } node
161
- * @returns {((fixer: object) => object) | undefined }
163
+ * @returns {Function | undefined }
162
164
*/
163
165
function getFix ( node ) {
164
166
if ( ! canFix ( node ) ) {
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ function isJSX(node) {
67
67
/**
68
68
* Check if node is like `key={...}` as in `<Foo key={...} />`
69
69
* @param {ASTNode } node
70
+ * @returns {boolean }
70
71
*/
71
72
function isJSXAttributeKey ( node ) {
72
73
return node . type === 'JSXAttribute' &&
You can’t perform that action at this time.
0 commit comments