/javascript

Traveloka JavaScript style guide

Primary LanguageJavaScriptMIT LicenseMIT

Traveloka JavaScript Style Guide

Build Status

JavaScript code standard in Traveloka is enforced using tool called marlint which is a CLI based linter by extending ESLint to support React, Flowtype, and ES2015+ natively. Because this standard doesn't enforce code style, you can use marlint and prettier directly without having to configure anything.

Packages

Getting started

To setup this repo locally, run following commands

# Clone repo
$ git clone git@github.com:traveloka/javascript
$ cd javascript

# Install dependencies
# This will automatically run `lerna bootstrap` which will install all package
# dependencies and link all packages together
$ npm install

To run test use npm test in root directory, or if you want to run test manually for single package just change directory to that package and run npm test inside each package directory.

Editor Integration

For other editor, you can install marlint globally, then use eslint config from marlint using standard eslint editor plugin.

License

MIT © Traveloka