Rules Validation/Linting in IDE

Hello,

In Webstorm, using JSDoc helps document the hook function parameters as follows:

/**
@param {object} user - user being created
@param {string} user.tenant - Auth0 tenant name
@param {string} user.username - user's username
@param {string} user.password - user's password
@param {string} user.email - user's email
@param {boolean} user.emailVerified - indicates whether email is verified
@param {string} user.phoneNumber - user's phone number
@param {boolean} user.phoneNumberVerified - indicates whether phone number is verified
@param {object} context - Auth0 context info, such as connection
@param {string} context.requestLanguage - language of the application agent
@param {object} context.connection - connection info
@param {object} context.connection.id - connection ID
@param {object} context.connection.name - connection name
@param {object} context.connection.tenant - connection tenant
@param {object} context.webtask - Hook (webtask) context
@param {function} callback - Function (error, response)
 */

Is there a similar “documentation” for Auth0 Rule functions, or any way you know of to avoid linting errors on Rules?

Thanks in advance!

Hi @calqulate,

The only documentation for these objects that I can find are the official docs. I don’t see any definitions like the ones in hooks unfortunately.


A post was split to a new topic: Can you turn off the linter in the code editor?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.