V
V
Vladimir Borovik2014-11-01 21:50:02
ubuntu
Vladimir Borovik, 2014-11-01 21:50:02

How to setup csslint in ubuntu?

Tell me how to set up csslint in ST3 on Ubuntu 14.04. I installed csslint via npm, installed SublimeLinter and csslint in Sublime via PM, but error highlighting does not work. There are no errors in the logs.
SublimeLinter 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": {},
        "mark_style": "outline",
        "no_column_highlights_line": 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
    }
}

csslint settings
{
    // Path to the csslint jar.
    // Leave false to use bundled version of CSSLint.
    "csslint_rhino_js": false,

    // Path to Rhino.
    // Leave false to use bundled version of Rhino.
    "rhino_path": false,

    // Errors/Warnings/Ignore: refer to https://github.com/stubbornella/csslint/wiki/Command-line-interface

    // CSSLint rules you wish to define as errors. Must be an array. Leave blank to include all default rules.
    "errors": [],

    // CSSLint rules you wish to define as warnings. Must be an array. Leave blank to include all default rules.
    "warnings": [],

    // CSSLint rules you wish to ignore. Must be an array. Leave blank to include all default rules.
    "ignore": [],

    // Whether or not you want to lint every time a document is saved.
    "run_on_save": false
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Surin, 2014-11-05
@borovik_96

Did exactly the same thing and it worked. Too little information on the problem. Are there errors in the logs when saving the css file? Tried to pick ccslint config?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question