rwaldron / idiomatic.js

Principles of Writing Consistent, Idiomatic JavaScript
Other
24.69k stars 3.47k forks source link

JSLint/JSHint Settings? #67

Open Jimgskoop opened 12 years ago

Jimgskoop commented 12 years ago

Would love to see this documentation made available as config settings for JSLint/JSHint so these guidelines can actually be practically enforced.

gavacho commented 12 years ago

:+1:

joshgillies commented 12 years ago

:+1:

joshgillies commented 12 years ago

Assuming you're using SublimeText 2 as your editor with the package SublimeLinter package installed AND gjslint as your JavaScript linter of choice, you can set the following in SublimeLinter.sublime-settings to suppress the Extra space after "(" & Extra space before ")" warnings:

gjslint_ignore":
[
    1 // ignore extra space warning
]

This for me was the one thing causing frustration between using idiomatic.js as a style guide in conjunction with a tool such as gjslint/jslint/jshint

Kaixhin commented 11 years ago

:+1: This would be pretty nice to have

muhammadghazali commented 11 years ago

I agree :+1:

jednano commented 11 years ago

For real-time enforcing, the ReSharper plug-in in Visual Studio does an excellent job. This is what I use in my day-to-day coding.

For more of a command-line solution or node library solution, Code Painter will fulfill your needs.

jpillora commented 11 years ago

:+1:

himedlooff commented 9 years ago

:+1:

constantx commented 9 years ago

:+1:

osidenate commented 9 years ago

:thumbsup:

janhoogeveen commented 9 years ago

What's what they invented https://github.com/jscs-dev/node-jscs for