![]() parameters (default: 1) enforces indentation level for parameters in a function expression."FunctionExpression" takes an object to define rules for function expressions.body (default: 1) enforces indentation level for the body of a function declaration.This can also be set to "off" to disable checking for FunctionDeclaration parameters. ![]() This can either be a number indicating indentation level, or the string "first" indicating that all parameters of the declaration must be aligned with the first parameter. parameters (default: 1) enforces indentation level for parameters in a function declaration."FunctionDeclaration" takes an object to define rules for function declarations.This can also be set to "off" to disable checking for MemberExpression indentation. "MemberExpression" (default: 1) enforces indentation level for multi-line property chains.This can also be set to "off" to disable checking for file-level IIFEs. "outerIIFEBody" (default: 1) enforces indentation level for file-level IIFEs.It can also be "first", indicating all the declarators should be aligned with the first declarator. "VariableDeclarator" (default: 1) enforces indentation level for var declarators can also take an object to define separate rules for var, let and const declarations."SwitchCase" (default: 0) enforces indentation level for case clauses in switch statements. ![]() ![]() This can be used as an escape hatch to relax the rule if you disagree with the indentation that it enforces for a particular syntactic pattern. If an AST node is matched by any of the selectors, the indentation of tokens which are direct children of that node will be ignored.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |