Skip to content

Commit

Permalink
Chore: update comment in object-curly-newline
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaschuayunzhi committed Jan 23, 2018
1 parent e4017f7 commit dcef6de
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lib/rules/object-curly-newline.js
Expand Up @@ -73,11 +73,13 @@ function normalizeOptionValue(value) {
* Normalizes a given option value.
*
* @param {string|Object|undefined} options - An option value to parse.
*
* TODO:
* Update comment
*
* @returns {{ObjectExpression: {multiline: boolean, minProperties: number}, ObjectPattern: {multiline: boolean, minProperties: number}}} Normalized option object.
* @returns
* {{
* ObjectExpression: {multiline: boolean, minProperties: number, consistent: boolean},
* ObjectPattern: {multiline: boolean, minProperties: number, consistent: boolean},
* ImportDeclaration: {multiline: boolean, minProperties: number, consistent: boolean},
* ExportNamedDeclaration : {multiline: boolean, minProperties: number, consistent: boolean}
* }} Normalized option object.
*/
function normalizeOptions(options) {
if (options &&
Expand Down Expand Up @@ -139,11 +141,8 @@ module.exports = {

/**
* Reports a given node if it violated this rule.
*
* TODO: UPDATE COMMENT
*
* @param {ASTNode} node - A node to check. This is an ObjectExpression node or an ObjectPattern node.
* @param {{multiline: boolean, minProperties: number}} options - An option object.
* @param {ASTNode} node - A node to check. This is an ObjectExpression, ObjectPattern, ImportDeclaration or ExportNamedDeclaration node.
* @param {{multiline: boolean, minProperties: number, consistent: boolean}} options - An option object.
* @returns {void}
*/
function check(node) {
Expand Down

0 comments on commit dcef6de

Please sign in to comment.