bdkjones / CodeKit-1-Old

146 stars 1 forks source link

CoffeeScript and JSLint/JSHint #396

Open nwcell opened 12 years ago

nwcell commented 12 years ago

Just got the product and love it! I've been having trouble though :-(

I've been unable to get either the JSHint OR the JSLint settings to pass CoffeeScript generates js files. Since it is such an awesome feature, I would like to be able to enable JSLint/JSHint for my CoffeeScript project.

CoffeeScript has a custom JSLint config file on their repo that should work. I can't find a way to simply import these settings or check/uncheck the configurations enough so that CoffeeScript passess.

Can we add this, or at least make it easier to get CoffeeScript to pass JSLint/JSHint?

Here is the script I'm testing with (It's from the tutorial on the CoffeeScript website):

class Animal
  constructor: (@name) ->

  move: (meters) ->
    alert @name + " moved #{meters}m."

class Snake extends Animal
  move: ->
    alert "Slithering..."
    super 5

class Horse extends Animal
  move: ->
    alert "Galloping..."
    super 45

sam = new Snake "Sammy the Python"
tom = new Horse "Tommy the Palomino"

sam.move()
tom.move()
bfricka commented 12 years ago

@nwcell What errors are you getting. You can go into preferences and configure the linters to suit your needs. I recommend you stick with JSHint, and you can check their website for more info: http://www.jshint.com/docs/