Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 6 additions & 23 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Contributing

### Requirements

+ node >= 4
+ [yarn](https://yarnpkg.com) >= 1.0.0 (with yarn workspaces support)

### Setup
```sh
git clone https://github.com/babel/minify
Expand Down Expand Up @@ -30,40 +35,18 @@ yarn watch

This project uses [prettier](https://github.com/prettier/prettier) for formatting code and [eslint](https://github.com/eslint/eslint) for other linting.

To check both:

```sh
yarn lint
```

You can also run them each individually:

```sh
# prettier
yarn format-check

# eslint
yarn eslint
```

##### Lint Fix

To fix formatting and auto-fixable eslint errors,
To fix formatting and other auto-fixable eslint errors,

```sh
yarn fix
```

You can also run them each individually:

```sh
# prettier
yarn format

# eslint
npm run eslint-fix
```

#### Test

To run all tests,
Expand Down