Created
April 30, 2015 05:10
-
-
Save imsobear/be239899b1421fb3a5d8 to your computer and use it in GitHub Desktop.
sublimelinter 配置
This file contains 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
{ | |
"user": { | |
"debug": false, | |
"delay": 0.25, | |
"error_color": "D02000", | |
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", | |
"gutter_theme_excludes": [], | |
"lint_mode": "load/save", | |
"linters": { | |
"eslint": { | |
"@disable": true, | |
"args": [], | |
"excludes": [] | |
}, | |
"json": { | |
"@disable": false, | |
"args": [], | |
"excludes": [], | |
"strict": true | |
}, | |
"jsxhint": { | |
"@disable": false, | |
"args": [], | |
"excludes": [] | |
} | |
}, | |
"mark_style": "fill", | |
"no_column_highlights_line": false, | |
"passive_warnings": false, | |
"paths": { | |
"linux": [], | |
"osx": [], | |
"windows": [] | |
}, | |
"python_paths": { | |
"linux": [], | |
"osx": [], | |
"windows": [] | |
}, | |
"rc_search_limit": 3, | |
"shell_timeout": 10, | |
"show_errors_on_save": false, | |
"show_marks_in_minimap": true, | |
"syntax_map": { | |
"html (django)": "html", | |
"html (rails)": "html", | |
"html 5": "html", | |
"php": "html", | |
"python django": "python" | |
}, | |
"warning_color": "DDB700", | |
"wrap_find": true | |
} | |
} |
iterm2
➜ which eslint
/Users/guo/.nvm/versions/io.js/v1.5.1/bin/eslint
sublimelinter config
"paths": {
"linux": [],
"osx": [
"/Users/guo/.nvm/versions/io.js/v1.5.1/bin/eslint"
],
"windows": []
},
sublime console
>>> eslint
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'eslint' is not defined
搞不懂了。。。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
基本是默认的配置~执行了 eslint 后没有反应。