remove redundant applyCtx
move jscs rules to preset
fix codestyle errors