Created
June 20, 2013 00:19
-
-
Save josephj/5819307 to your computer and use it in GitHub Desktop.
CoffeeLint configuration file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"arrow_spacing": { | |
"level" : "error" | |
}, | |
"camel_case_classes" : { | |
"level" : "error" | |
}, | |
"coffeescript_error" : { | |
"level" : "error" | |
}, | |
"cyclomatic_complexity" : { | |
"value" : 12, | |
"level" : "warn" | |
}, | |
"duplicate_key" : { | |
"level" : "error" | |
}, | |
"empty_constructor_needs_parens" : { | |
"level" : "ignore" | |
}, | |
"indentation" : { | |
"value" : 2, | |
"level" : "error" | |
}, | |
"line_endings" : { | |
"value" : "unix", | |
"level" : "ignore" | |
}, | |
"max_line_length" : { | |
"value": 80, | |
"level" : "error" | |
}, | |
"newlines_after_classes" : { | |
"level" : "ignore" | |
}, | |
"no_backticks" : { | |
"level" : "error" | |
}, | |
"no_empty_param_list" : { | |
"level" : "error" | |
}, | |
"no_implicit_braces" : { | |
"level" : "error" | |
}, | |
"no_implicit_parens" : { | |
"level" : "error" | |
}, | |
"no_plusplus" : { | |
"level" : "error" | |
}, | |
"no_stand_alone_at" : { | |
"level": "error" | |
}, | |
"no_tabs" : { | |
"level" : "error" | |
}, | |
"no_throwing_strings" : { | |
"level" : "error" | |
}, | |
"no_trailing_semicolons" : { | |
"level" : "error" | |
}, | |
"no_trailing_whitespace" : { | |
"level" : "error" | |
}, | |
"non_empty_constructor_needs_parens" : { | |
"level" : "ignore" | |
}, | |
"space_operators" : { | |
"level" : "error" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
讓 vim 做檢查...
把上面的檔案放在 ~/coffeelint.json
需安裝 vim-coffee-script
在 ~/.vimrc 加入設定:
Reference: CoffeeLint Options