0
最近我在我剛剛安裝的原子編輯器(使用https://atom.io/packages/atom-typescript和linter)中打開了Angular 2項目。 我驚訝於atom自動檢測到項目根目錄下的tslint.json文件並應用這些規則來突出顯示錯誤。Atom auto tslint detection
有人可以向我解釋,這是怎麼發生的?
最近我在我剛剛安裝的原子編輯器(使用https://atom.io/packages/atom-typescript和linter)中打開了Angular 2項目。 我驚訝於atom自動檢測到項目根目錄下的tslint.json文件並應用這些規則來突出顯示錯誤。Atom auto tslint detection
有人可以向我解釋,這是怎麼發生的?
TypeScript的linter是linter-tslint,它需要tslint作爲依賴項。
tslint尋找tslint.json文件來加載規則。