2015-05-13 51 views
7

我使用Sublime Text 3和CSS LinterCSS Lint忽略所有基於IE6和IE7的錯誤

在我的設置我已經把忽略規則,目前只有"outline-none"規則,我想包括所有引用IE6和IE7錯誤的規則。

是否有一個列表是什麼IE6和IE7規則,以便我可以把它們放在忽略數組?

我CSSLint.sublime的設置是這樣的:

// CSSLint rules you wish to ignore. Must be an array. Leave blank to include all default rules. 
{ 
    "ignore": ["outline-none"] 
} 
+0

我們仍然擔心IE6和7?微軟發佈了一份報告,稱他們不再去更新舊瀏覽器。所以只有最近的瀏覽器才能獲得所有的安全更新。告訴他們爲了安全起見在那裏升級瀏覽器 – Andrew

+2

我們不這樣做,這就是爲什麼我需要關閉linter扔給我的惱人錯誤;)因爲它不是一個錯誤:D –

回答

9

要回答我的問題,最後我想通了如何做我需要:

{ 
    "user": { 
     "debug": false, 
     "delay": 0.25, 
     "error_color": "D02000", 
     "gutter_theme": "Packages/SublimeLinter/gutter-themes/Danish Royalty/Danish Royalty.gutter-theme", 
     "gutter_theme_excludes": [], 
     "lint_mode": "background", 
     "linters": { 
      "csslint": { 
       "@disable": false, 
       "args": [], 
       "box-sizing": false, 
       "errors": "", 
       "excludes": [], 
       "ignore": [ 
        "outline-none", 
        "box-sizing", 
        "ids", 
        "adjoining-classes", 
        "floats", 
        "qualified-headings", 
        "unique-headings", 
        "important", 
        "universal-selector", 
        "box-model", 
        "font-faces", 
        "font-sizes" 
       ], 
       "warnings": "" 
      }, 
      "eslint": { 
       "@disable": true, 
       "args": [], 
       "excludes": [] 
      }, 
      "jscs": { 
       "@disable": true, 
       "args": [], 
       "excludes": [] 
      }, 
      "jshint": { 
       "@disable": false, 
       "args": [], 
       "excludes": [], 
       "ignore": [ 
        "newcap" 
       ], 
       "newcap": false, 
       "tab_size": 4 
      }, 
      "jslint": { 
       "@disable": true, 
       "args": [], 
       "excludes": [], 
       "ignore": [ 
        "newcap" 
       ], 
       "newcap": false 
      }, 
      "php": { 
       "@disable": false, 
       "args": [], 
       "excludes": [] 
      } 
     }, 
     "mark_style": "outline", 
     "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": "D02000", 
     "wrap_find": true 
    } 
} 

只要進入首>打包設置> SublimeLinter>設置 - 用戶並將上面的內容粘貼到打開的文件中。

這些是我發現沒有實際重要性的選項,所以我只是忽略了它們。

希望它有幫助:)