Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/eslint-plugin-react/lib/rules/jsx-indent.js

    rd565449 r0c6b92a  
    5151};
    5252
     53/** @type {import('eslint').Rule.RuleModule} */
    5354module.exports = {
    5455  meta: {
     
    106107     * Responsible for fixing the indentation issue fix
    107108     * @param {ASTNode} node Node violating the indent rule
    108      * @param {Number} needed Expected indentation character count
     109     * @param {number} needed Expected indentation character count
    109110     * @returns {Function} function to be executed by the fixer
    110111     * @private
     
    147148     * Reports a given indent violation and properly pluralizes the message
    148149     * @param {ASTNode} node Node violating the indent rule
    149      * @param {Number} needed Expected indentation character count
    150      * @param {Number} gotten Indentation character count in the actual node/code
     150     * @param {number} needed Expected indentation character count
     151     * @param {number} gotten Indentation character count in the actual node/code
    151152     * @param {Object} [loc] Error line and column location
    152153     */
     
    169170     * Get node indent
    170171     * @param {ASTNode} node Node to examine
    171      * @param {Boolean} [byLastLine] get indent of node's last line
    172      * @param {Boolean} [excludeCommas] skip comma on start of line
    173      * @return {Number} Indent
     172     * @param {boolean} [byLastLine] get indent of node's last line
     173     * @param {boolean} [excludeCommas] skip comma on start of line
     174     * @return {number} Indent
    174175     */
    175176    function getNodeIndent(node, byLastLine, excludeCommas) {
     
    198199     * Check if the node is the right member of a logical expression
    199200     * @param {ASTNode} node The node to check
    200      * @return {Boolean} true if its the case, false if not
     201     * @return {boolean} true if its the case, false if not
    201202     */
    202203    function isRightInLogicalExp(node) {
     
    213214     * Check if the node is the alternate member of a conditional expression
    214215     * @param {ASTNode} node The node to check
    215      * @return {Boolean} true if its the case, false if not
     216     * @return {boolean} true if its the case, false if not
    216217     */
    217218    function isAlternateInConditionalExp(node) {
     
    228229     * Check if the node is within a DoExpression block but not the first expression (which need to be indented)
    229230     * @param {ASTNode} node The node to check
    230      * @return {Boolean} true if its the case, false if not
     231     * @return {boolean} true if its the case, false if not
    231232     */
    232233    function isSecondOrSubsequentExpWithinDoExp(node) {
     
    299300     * Check indent for nodes list
    300301     * @param {ASTNode} node The node to check
    301      * @param {Number} indent needed indent
    302      * @param {Boolean} [excludeCommas] skip comma on start of line
     302     * @param {number} indent needed indent
     303     * @param {boolean} [excludeCommas] skip comma on start of line
    303304     */
    304305    function checkNodesIndent(node, indent, excludeCommas) {
     
    319320     * Check indent for Literal Node or JSXText Node
    320321     * @param {ASTNode} node The node to check
    321      * @param {Number} indent needed indent
     322     * @param {number} indent needed indent
    322323     */
    323324    function checkLiteralNodeIndent(node, indent) {
Note: See TracChangeset for help on using the changeset viewer.