Loading ...
Sorry, an error occurred while loading the content.

3152Re: [jslint] Tabs vs Spaces question

Expand Messages
  • Kirk Cerny
    Mar 1, 2013
      I am not sure what you mean as one tab.
      Did you try it in the JsLint version from 5 months ago.
      It accepts my code file tat has at least 5 tab levels of indentation.

      http://web.archive.org/web/20121002022418/http://jslint.com/


      On Fri, Mar 1, 2013 at 2:26 PM, Jakob Kruse <kruse@...> wrote:

      > **
      >
      >
      > Actually, prior to the creation of the indent option, jslint only
      > supported "one tab" or "four spaces" for indentation. Personally I only use
      > spaces because every single tab indented file I have ever seen has at some
      > point gotten some level of space indentation added, and since different
      > users display one tab as a different amount of spaces, it always ends up
      > destroying the indentation.
      >
      > I would be very keen on hearing Mr. Crockfords reasoning though.
      >
      > /Jakob
      >
      > Den 01/03/2013 kl. 19.30 skrev "Felix E. Klee" felix.klee@...>:
      >
      > > On Fri, Mar 1, 2013 at 6:23 PM, Kirk Cerny kirksemail@...> wrote:
      > > > What is the reason for this?
      > >
      > > JSLint never supported tabs, as far as I am aware of. You can specify
      > > indentation (e.g. `/*jslint indent: 4 */`), but that is for spaces.
      > > Possibly it would be a good idea to add another configuration option to
      > > specify tabs instead of spaces, or simply: `/*jslint indent: t */`
      > >
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >


      [Non-text portions of this message have been removed]
    • Show all 15 messages in this topic