Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/rules/jsx-indent.js
rd565449 r0c6b92a 51 51 }; 52 52 53 /** @type {import('eslint').Rule.RuleModule} */ 53 54 module.exports = { 54 55 meta: { … … 106 107 * Responsible for fixing the indentation issue fix 107 108 * @param {ASTNode} node Node violating the indent rule 108 * @param { Number} needed Expected indentation character count109 * @param {number} needed Expected indentation character count 109 110 * @returns {Function} function to be executed by the fixer 110 111 * @private … … 147 148 * Reports a given indent violation and properly pluralizes the message 148 149 * @param {ASTNode} node Node violating the indent rule 149 * @param { Number} needed Expected indentation character count150 * @param { Number} gotten Indentation character count in the actual node/code150 * @param {number} needed Expected indentation character count 151 * @param {number} gotten Indentation character count in the actual node/code 151 152 * @param {Object} [loc] Error line and column location 152 153 */ … … 169 170 * Get node indent 170 171 * @param {ASTNode} node Node to examine 171 * @param { Boolean} [byLastLine] get indent of node's last line172 * @param { Boolean} [excludeCommas] skip comma on start of line173 * @return { Number} Indent172 * @param {boolean} [byLastLine] get indent of node's last line 173 * @param {boolean} [excludeCommas] skip comma on start of line 174 * @return {number} Indent 174 175 */ 175 176 function getNodeIndent(node, byLastLine, excludeCommas) { … … 198 199 * Check if the node is the right member of a logical expression 199 200 * @param {ASTNode} node The node to check 200 * @return { Boolean} true if its the case, false if not201 * @return {boolean} true if its the case, false if not 201 202 */ 202 203 function isRightInLogicalExp(node) { … … 213 214 * Check if the node is the alternate member of a conditional expression 214 215 * @param {ASTNode} node The node to check 215 * @return { Boolean} true if its the case, false if not216 * @return {boolean} true if its the case, false if not 216 217 */ 217 218 function isAlternateInConditionalExp(node) { … … 228 229 * Check if the node is within a DoExpression block but not the first expression (which need to be indented) 229 230 * @param {ASTNode} node The node to check 230 * @return { Boolean} true if its the case, false if not231 * @return {boolean} true if its the case, false if not 231 232 */ 232 233 function isSecondOrSubsequentExpWithinDoExp(node) { … … 299 300 * Check indent for nodes list 300 301 * @param {ASTNode} node The node to check 301 * @param { Number} indent needed indent302 * @param { Boolean} [excludeCommas] skip comma on start of line302 * @param {number} indent needed indent 303 * @param {boolean} [excludeCommas] skip comma on start of line 303 304 */ 304 305 function checkNodesIndent(node, indent, excludeCommas) { … … 319 320 * Check indent for Literal Node or JSXText Node 320 321 * @param {ASTNode} node The node to check 321 * @param { Number} indent needed indent322 * @param {number} indent needed indent 322 323 */ 323 324 function checkLiteralNodeIndent(node, indent) {
Note:
See TracChangeset
for help on using the changeset viewer.