Skip to content

Commit

Permalink
Breaking: Make prettier a peerDependency (#1)
Browse files Browse the repository at this point in the history
This allows the user to choose their version.
  • Loading branch information
lydell authored and not-an-aardvark committed Jan 28, 2017
1 parent 2474bc9 commit d8a8992
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Next, install `eslint-plugin-prettier`:
$ npm install eslint-plugin-prettier --save-dev
```

Finally, install `prettier`:

```
$ npm install prettier --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-prettier` globally.

## Usage
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@
},
"homepage": "https://github.com/not-an-aardvark/eslint-plugin-prettier#readme",
"dependencies": {
"prettier": "^0.11.0",
"requireindex": "~1.1.0"
},
"peerDependencies": {
"eslint": "^3.14.1"
"eslint": "^3.14.1",
"prettier": ">= 0.11.0"
},
"devDependencies": {
"eslint": "^3.14.1",
"eslint-config-not-an-aardvark": "^2.0.0",
"eslint-plugin-eslint-plugin": "^0.2.1",
"eslint-plugin-node": "^3.0.5",
"mocha": "^3.1.2"
"mocha": "^3.1.2",
"prettier": ">= 0.11.0"
},
"engines": {
"node": ">=4.0.0"
Expand Down

0 comments on commit d8a8992

Please sign in to comment.