![](https://avatars.plurk.com/6843666-medium50386972.gif)
Lastor
coding eslint 真的很坑爹,比 TS 的煩躁度高 n 倍
![](https://avatars.plurk.com/6843666-medium50386972.gif)
Lastor
eslint 比較多是 coding style 的規範,就很硬......
![](https://avatars.plurk.com/6843666-medium50386972.gif)
Lastor
像是 Array.reduce 做 sum 累加好了,一般都是直接更新參數的累加器
![](https://avatars.plurk.com/6843666-medium50386972.gif)
Lastor
然後 eslint 給我擋一個 no-param-reassign
no-param-reassign - ESLint - Pluggable JavaScript Li...
![](https://avatars.plurk.com/6843666-medium50386972.gif)
Lastor
這種限制我真覺得很瞎
![](https://emos.plurk.com/ad44713f8a99de793bf94fbc5cb8d1b8_w48_h48.gif)
![](https://avatars.plurk.com/6843666-medium50386972.gif)
Lastor
以前還碰過一個專案,不讓你寫 console.log 的,這樣 de 個鳥 bug
![](https://avatars.plurk.com/6843666-medium50386972.gif)
Lastor
這個也惱人 no-use-before-define,function 宣告明明就會提升,擋我這個 ![](https://emos.plurk.com/80ac0e89d60c8ac87f4232f85698273b_w48_h48.jpeg)
![](https://emos.plurk.com/80ac0e89d60c8ac87f4232f85698273b_w48_h48.jpeg)
no-use-before-define - ESLint - Pluggable JavaScript...
![](https://avatars.plurk.com/6843666-medium50386972.gif)
Lastor
我是 function 宣在下面派的
![](https://emos.plurk.com/37f99a3794522a5373fa1a97830582fd_w48_h48.gif)
![](https://avatars.plurk.com/6843666-medium50386972.gif)
Lastor
寫多了之後,一開檔案看到一堆 func,核心執行緒在後面,就覺得很煩。把核心的內容寫在最前面,一目瞭然,我覺得可以省下很多翻找的時間