Skip to content

Instantly share code, notes, and snippets.

@hellosze
Created September 1, 2011 03:35
Show Gist options
  • Save hellosze/1185387 to your computer and use it in GitHub Desktop.
Save hellosze/1185387 to your computer and use it in GitHub Desktop.
csslint - build config for Sublime Text 2
{
"cmd": ["csslint", "$file_name"],
"path": "/usr/bin"
}
@hellosze
Copy link
Author

hellosze commented Sep 1, 2011

Works in OS X Lion. Windows + Linux not yet confirmed.

@hellosze
Copy link
Author

hellosze commented Sep 1, 2011

When line 2 uses $file in place of $file_name. roh roh!

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: EBADF, Bad file descriptor '/Users/hellosze/Desktop/Users/hellosze/Desktop/styles.css'
at Object.openSync (fs.js:221:18)
at Object.readFileSync (fs.js:112:15)
at /usr/lib/node_modules/csslint/cli.js:12:19
at /usr/lib/node_modules/csslint/cli.js:43:17
at /usr/lib/node_modules/csslint/cli.js:97:17
at Array.some (native)
at processFiles (/usr/lib/node_modules/csslint/cli.js:96:30)
at Object. (/usr/lib/node_modules/csslint/cli.js:195:14)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
[Finished]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment