Posts

Showing posts with the label jscs

關於文件最後一行的EOL(End-of-Line) missing line feed at end file

今天看到 jscs 這玩意覺得非常新奇,於是就玩了一下。 主要編輯器仍是 sublime text 2 (但今天升級到 ST 3了 ) 需要的步驟頗簡單 [1] 在 ST 3 上透過 package control 安裝 sublimelinter-jscs [2] 透過 npm 安裝 jscs >>npm -g fscs [3] 撰寫 .jscs.json { "preset": "google" } [4] 執行 jscs >>jscs . 如[3], 這裡我使用 google 的 code style, 然後發現了這個錯誤 " missing line feed at end file". 雖然我知道有它的存在, 而且過去在 linux 上寫 shell-scripts 也常吃虧, 但仍不是很在意這項, 透過 Stackedoverflow 這次真的是很好的複習,紀錄一下。