Skip to content

Instantly share code, notes, and snippets.

@legend80s
Last active June 29, 2017 06:34
Show Gist options
  • Save legend80s/714287197121e0251ccd1d76b66d6be5 to your computer and use it in GitHub Desktop.
Save legend80s/714287197121e0251ccd1d76b66d6be5 to your computer and use it in GitHub Desktop.
Sublime eslint installation guide

package control install

  1. 安装 sublimelinter
  2. 安装 sublimelinter-eslint # 重启 sublime
  3. 用户设置 SublimeLinter.sublime-settings
{
    "user": {
        "debug": false,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "background",
        "linters": {
            "eslint": {
                "@disable": false,
                "args": [],
                "excludes": [
                    "**/node_modules/**"
                ]
            }
        },
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "passive_warnings": false,
        "paths": {
            "linux": [],
            "osx": [
                "/Users/liuchuanzong/.nvm/versions/node/v7.10.0/bin/node"
            ],
            "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",
            "javascript (babel)": "javascript",
            "magicpython": "python",
            "php": "html",
            "python django": "python",
            "pythonimproved": "python"
        },
        "tooltip_fontsize": "1rem",
        "tooltip_theme": "Packages/SublimeLinter/tooltip-themes/Default/Default.tooltip-theme",
        "tooltip_theme_excludes": [],
        "tooltips": false,
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

npm install

"devDependencies": {
  "eslint": "3.6.0",
  "eslint-config-airbnb-base": "8.0.0",
  "eslint-plugin-import": "1.16.0",
  "jasmine": "2.5.2",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment