所以根據我對doc的理解,這是實現它的方法。 崇高>首選項>用戶設置:配置SublimeLinter-jshint與Sublime3中的節點一起工作
{
"linters": {
"jshint": {
"node": true
}
}
}
它不起作用。 我使用sublime3和sublimelinter sublimelinter-jshint。 也我jshint安裝在我的本地環境。
有幫助嗎?
所以根據我對doc的理解,這是實現它的方法。 崇高>首選項>用戶設置:配置SublimeLinter-jshint與Sublime3中的節點一起工作
{
"linters": {
"jshint": {
"node": true
}
}
}
它不起作用。 我使用sublime3和sublimelinter sublimelinter-jshint。 也我jshint安裝在我的本地環境。
有幫助嗎?
這不屬於Preferences -> Settings-User
。相反,開放Preferences -> Package Settings -> SublimeLinter -> Settings-User
並添加以下行後"linters": {
"jshint": {
"@disable": false,
"node": true
},
您可以刪除最後一個逗號,
右括號}
後,如果在linters
陣中沒有其他條目。
沒錯,謝謝。 – alexserver
我無法使用設置文件來獲取此選項。 「node」選項適用於我的唯一方法是在.js文件的頂部添加'/ * jshint node:true * /'。任何idas爲什麼不起作用? – BillyTom
應該不需要更新任何設置,我已經在本地工作,並且沒有編輯任何設置。你有'PATH'提供'jshint'嗎?此外,您可能需要重新啓動崇高。 – dylants