Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated README #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
# CNN Birdman

## Getting Started

### 1. Add `cnn-birdman` to your existing project.

```bash
$ npm install -D -E https://github.com/cnnlabs/cnn-birdman.git
```

### 2. Add to your existing npm scripts:
This will automatically lint your src directory, but to choose different directory use -R option.

```diff
"scripts": {
+ "lint": "cnn-birdman [-R <directory>] run [style|javascript]" // optionally pass in specific
}
```
### 3. Add a `.eslintrc` into your project
Currently there are two ESLint configs you can use: `cnn-eslint-base` and `cnn-react`

Determine the directory you would like to lint (typically the root) and add one of
the following as a `.eslintrc` file.

```js
// .eslintrc
{ "extends": "cnn-eslint-base" }
```
```js
// .eslintrc
{ "extends": "cnn-react" }
```

### 4. Run the new script command
```bash
$ npm run lint
```

## TODO
- Document creating nested `.eslintrc` files
- Fix stdio cutoff when errors exceed threshold...?
- Add better error / success messaging