Skip to content

Files

Latest commit

 

History

History
26 lines (17 loc) · 629 Bytes

indentation.md

File metadata and controls

26 lines (17 loc) · 629 Bytes

Pattern: Malformed indentation

Issue: -

Description

This rule imposes a standard number of spaces to be used for indentation. Since whitespace is significant in CoffeeScript, it's critical that a project chooses a standard indentation format and stays consistent.

Examples

 #
Enabling this option will prevent this ugly
# but otherwise valid CoffeeScript.
twoSpaces = () ->
  fourSpaces = () ->
      eightSpaces = () ->
            'this is valid CoffeeScript'

Two space indentation is enabled by default.

Further Reading