• Home
  • Archives
  • About Me
  Carson's Tech Note
  • Home
  • Archives
  • About Me
  • App Development
  • Blogging
  • Developer Tools
  • Web Frameworks
  • Languages Related
  • Software Engineering
  • Web Technology

建置eslint開發環境

1. 前言

對於所有Project來說,"Coding Style"都很重要,尤其是多人協作時,應該大家一起follow某些共同的coding style,才方便互相查看及修改其他人的code。

這時候我們可以使用eslint,來規範整個project的code,雖不能統一各人的個人風格,但它可以確保所有code都consistently follow某些syntax,不會亂糟糟。

Read more   2018/03/18 posted in  nodejs
comments

解決nodejs的relative import地獄

nodejs和npm是很模組化(modular)的framework,經常需要import其他package和檔案,但隨著專案規模越來越大,一不小心就會進入relative import的地獄:

import { Something } from '../../../../../../../../../HelloWorld';

以下是這個情況的解決良方。

Read more   2018/03/18 posted in  nodejs
comments

Carson's Tech Note

「坐井觀天,曰天小者,非天小也,其所見小也。夏蟲不可與語冰,非無冰也,以其未見冰也。」- 《學問與遊歷》
GitHub Email RSS

Categories

App Development Blogging Developer Tools Web Frameworks Languages Related Software Engineering Web Technology

Recent Posts

  • 開發者必備知識 - HTTP認證(HTTP Authentication)
  • 使用Babel處理ES6的 this 和 Arrow Function(箭頭函式)
  • 如何使用Android RecyclerView建立一個List列表
  • 翻牆必備:Shadowsocks建置教學
  • 翻牆專題:Proxy、VPN、Shadowsocks概念解釋

Copyright © 2015 Powered by MWeb,  Theme used GitHub CSS.