Coder Social home page Coder Social logo

Comments (9)

aponxi avatar aponxi commented on July 21, 2024

You mean the checksyntax command here, right?

I would need to check the difference between coffee -l and coffeelint and see which one would be better. Then compare it to the current method... Bit of a research to be done on my part. I'll get on with it when I'm on my own computer.

Certainly it would be something nice to add! I have to ask though, is there a particular reason why you are requesting this? I mean what are the pro's and cons to the current state and coffeelint or coffee -l?

I'm asking this to improve the quality of the solution based on your needs.

from sublime-better-coffeescript.

lavrton avatar lavrton commented on July 21, 2024

For ST2 alredy exists plugin https://github.com/SublimeLinter/SublimeLinter, this one works with coffee via coffee -l.

As I know coffee -l only check is syntax ok or not. Nothing else! With http://www.coffeelint.org/ you can lint your code with some "code conversation". For example class name MUST be in camel case.

Also there are https://github.com/dotCypress/CoffeeLint. But doesn't work for me.

Here will be awesome to highlight line where you have lint error, not only message.

I can't find lint tool that can check undefined or unused variables. Idea - use jshint.

from sublime-better-coffeescript.

aponxi avatar aponxi commented on July 21, 2024

Is it okay if it displays the output of linting in that output panel I made for run script? The one you get with alt shift R or was it ctrl shift R

from sublime-better-coffeescript.

lavrton avatar lavrton commented on July 21, 2024

It is ok. But of course it is better to highlight line with error.

from sublime-better-coffeescript.

aponxi avatar aponxi commented on July 21, 2024

Do you know how to highlight ? Or do you mean select the line that has error? Do you want it to be displayed like the command pallet?

from sublime-better-coffeescript.

lavrton avatar lavrton commented on July 21, 2024

Do you know how to highlight ?

Not yet. Best way - like in sublimelint plugin. Command pallet - good too.

from sublime-better-coffeescript.

lavrton avatar lavrton commented on July 21, 2024

I am creating this feature. Now works in this way: command - "CoffeeScript: Lint". Result:
Result Example

from sublime-better-coffeescript.

aponxi avatar aponxi commented on July 21, 2024

sweet, I was going to get started on that too. Here paste this place holder on where coffeelint functions start in py. It helps locate things on the scrollbar.

#     e88~-_             88~\   88~\                     888     ,e,            d8  
#    d888   \  e88~-_  _888__ _888__  e88~~8e   e88~~8e  888      "  888-~88e _d88__
#    8888     d888   i  888    888   d888  88b d888  88b 888     888 888  888  888  
#    8888     8888   |  888    888   8888__888 8888__888 888     888 888  888  888  
#    Y888   / Y888   '  888    888   Y888    , Y888    , 888     888 888  888  888  
#     "88_-~   "88_-~   888    888    "88___/   "88___/  888____ 888 888  888  "88_/
# 
######################################################################################

from sublime-better-coffeescript.

lavrton avatar lavrton commented on July 21, 2024

3b506d9
Now you can lint current file via coffeelint. Coffee: Lint command.

from sublime-better-coffeescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.