Coder Social home page Coder Social logo

csslint.tmbundle's Introduction

CSSLint TextMate Bundle

Forked from jcfant's CSSLint Textmate Bundle, who originally forked it from JSHint TM Bundle and updated it to use CSSLint.

TextMate bundle for CSSLint

This Fork differs in several ways from jcfant's:

  • First, the window stays open after double clicking on an entry. This way, even though you will be brought to the line in your document the entry is referring to, you will still be able to return to the lint window to see the next entry.
  • Second, the window is a set 800px by 800px making it easier to manage.
  • Third, I preferred the old design of the window, so I merged the two styles into what IMHO is a much better lint window:
    • For errors, the background is now red.
      • The line number and column number of the error is displayed.
      • An underline is placed under the character in the code preview where the issue is found.
      • And a description of the rule in question is also displayed.

Screenshot

Features:

  • Runs automatically upon save (⌘S)
  • Can be bypassed by pressing ⇧⌘S
  • Output is only shown when errors are found
  • Based on Node.js

Installation

cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/stefmikhail/csslint.tmbundle.git "CSSLint.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'

Prerequisites

You need Node.js and TextMate, that's all.

This bundle uses #!/usr/local/bin/node to launch the node process. If you get a node - not found error,the PATH variable is probably not setup in TextMate.

Contributors

csslint.tmbundle's People

Contributors

jcfant avatar pahen avatar stefmikhail avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

csslint.tmbundle's Issues

Warning of using a deprecated Node object

The following error appears at the very top of the Lint window:

The "sys" module is now called "util". It should have a similar interface.

I think this is a Node warning about a deprecated object. Maybe store a reference to whichever one is supported, like var myvar = window.util || window.sys, assuming they both have the same methods.

How do you specify lint options?

I'd like to set up my warnings/errors/ignores, but I'm unclear how to set these options when running lint on save. I have a .csslintrc file in the same directory as my test CSS file with certain rules set up. When I run CSSLint from the command line, it reads the config file and adjusts the output as expected. When I run CSSLint from TextMate, the config file is ignored and I get the default output.

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.