Minor changes
- switch to .eslintrc
- rename func `document` to `compile`