Socket
Socket
Sign inDemoInstall

eslint-plugin-prettier

Package Overview
Dependencies
154
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

CHANGELOG.md

17

package.json
{
"name": "eslint-plugin-prettier",
"version": "1.0.0",
"version": "2.0.0",
"description": "Runs prettier as an eslint rule",

@@ -16,8 +16,16 @@ "keywords": [

},
"repository": {
"type": "git",
"url": "git+https://github.com/not-an-aardvark/eslint-plugin-prettier.git"
},
"bugs": {
"url": "https://github.com/not-an-aardvark/eslint-plugin-prettier/issues"
},
"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"
},

@@ -29,3 +37,4 @@ "devDependencies": {

"eslint-plugin-node": "^3.0.5",
"mocha": "^3.1.2"
"mocha": "^3.1.2",
"prettier": ">= 0.11.0"
},

@@ -32,0 +41,0 @@ "engines": {

@@ -19,2 +19,8 @@ # eslint-plugin-prettier

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.

@@ -56,1 +62,15 @@

The rule will report an error if your code does not match `prettier` style. The rule is autofixable -- if you run `eslint` with the `--fix` flag, your code will be formatted according to `prettier` style.
---
This plugin works best if you disable all other ESLint rules relating to code formatting, and only enable rules that detect patterns in the AST. (If another active ESLint rule disagrees with `prettier` about how code should be formatted, it will be impossible to avoid lint errors.) If your desired formatting does not match the `prettier` output (e.g. if you don't want semicolons), you should use a different tool such as [prettier-eslint](https://github.com/kentcdodds/prettier-eslint) instead.
## Migrating to 2.0.0
Starting in 2.0.0, `prettier` is a peerDependency of this module, rather than a dependency. This means that you can use any version of `prettier` with this plugin, but it also means that you need to install it separately and include it as a devDependency in your project.
To install `prettier`, use:
```bash
npm install prettier --save-dev
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc