我使用的角度入門套件: https://github.com/AngularClass/angular-starterTslint --fix不會自動修復,但isntead輸出的皮棉問題控制檯錯誤
,我試圖讓tslint到AUTOFIX用我所有的皮棉問題 - -fix標誌。
我運行腳本: npm run tslint --fix src/**/*.ts
它只是輸出是說我已經在tslint告知,而不是autofixing它同樣的錯誤:
控制檯輸出:
ERROR: src/app/app-routing.module.ts[10, 5]: comment must start with a space
ERROR: src/app/app-routing.module.ts[2, 20]: Too many spaces before 'from'
我是否缺少允許其實施更改的內容?
我的版本是:
"tslint": "^5.6.0"
"codelyzer": "^3.1.2"
問:我怎樣才能tslint實現自動修復到我的皮棉錯誤?