You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an idea to modify the properties "message" and "description" a little.
May be it will be cool to use a Markdown syntax instead of HTML. At this pull request the website will translate existing descriptions into HTML anyway.
For example...
From this:
rule:name:'arrow_spacing'level:'ignore'message:'Function arrows (-> and =>) must be spaced properly'description:''' <p>This rule checks to see that there is spacing before and after the arrow operator that declares a function. This rule is disabled by default.</p> <p>Note that if arrow_spacing is enabled, and you pass an empty function as a parameter, arrow_spacing will accept either a space or no space in-between the arrow operator and the parenthesis</p> <pre><code># Both of this will not trigger an error, # even with arrow_spacing enabled. x(-> 3) x( -> 3) # However, this will trigger an error x((a,b)-> 3) </code> </pre>'''
To this:
rule:name:'arrow_spacing'level:'ignore'message:'The arrow in arrow function must be spaced properly'description:''' This rule checks to see that there is spacing before and after the arrow operator that declares a function. This rule is disabled by default. Note that if `arrow_spacing` is enabled, and you pass an empty function as a parameter, `arrow_spacing` will accept either a space or no space in-between the arrow operator and the parenthesis. Examples of ***incorrect*** code for this rule: ```coffee x((a, b)->3) x((a, b)-> 3) x((a, b) ->3) x( ->3) x(->3) ``` Examples of ***correct*** code for this rule: ```coffee x((a, b) -> 3) x(-> 3) x( -> 3) ```'''
The text was updated successfully, but these errors were encountered:
I have an idea to modify the properties "message" and "description" a little.
May be it will be cool to use a Markdown syntax instead of HTML. At this pull request the website will translate existing descriptions into HTML anyway.
For example...
From this:
To this:
The text was updated successfully, but these errors were encountered: