Giter VIP home page Giter VIP logo

coffeelintmate's Introduction

CoffeeLintMate

Quick, simple CoffeeLint in TextMate.

What are these things? CoffeeLint is a style checker that helps keep CoffeeScript code clean and consistent. CoffeeLintMate brings this functionality to TextMate, displaying issues in a nicely formatted (thanks to JSLintMate) panel. It'll also check to make sure your code compiles.

Key features

  • Quick CoffeeLint on command-S.
  • Full problem details on control-L. Navigate the list with full mouse/trackpad/keyboard support.

Installation (TextMate 2)

CoffeeLintMate requires Node.js, NPM, and CoffeeScript (but you probably already have those if you're interested in this bundle).

In Terminal:

mkdir -p ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles/
cd ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles/
git clone git://github.com/lhagan/coffeelintmate.git CoffeeLintMate.tmbundle
cd CoffeeLintMate.tmbundle
npm install

Usage

CoffeeLintMate has two modes:

  • Quick mode shows a tooltip with a preview of the problems (if any) whenever you hit command-S.

  • Full mode shows a full list of problems whenever you hit control-L.

Quick mode

While you're coding, hit command-S to save changes and automatically run the file through CoffeeLint. If any problems are found, CoffeeLintMate shows the first one in a tooltip.

To skip the tooltip and see the full list of problems, use full mode.

Full mode

To see the full list of problems in a JS file, hit control-L to run it through CoffeeLint. Click a problem to jump to that line in the file. Fix and repeat.

You can also navigate the list of problems with your keyboard: up/down/k/j to move up/down, and return to select.

About

  • Contributing: Found a bug or have a suggestion? Please open an issue.
  • Compatibility: Tested with OS X 10.7+ and TextMate 2.0 (9307). Probably works with older software, but it's not guaranteed.

This project is very heavily based on JSLintMate by Ron DeVera, which was adapted from:

CoffeeLintMate is released under the MIT License.

coffeelintmate's People

Contributors

lhagan avatar

Watchers

 avatar  avatar

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.