Socket
Socket
Sign inDemoInstall

eslint-config-prettier

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-prettier - npm Package Compare versions

Comparing version 4.3.0 to 5.0.0

32

CHANGELOG.md

@@ -0,1 +1,24 @@

### Version 5.0.0 (2019-06-15)
- Removed: [react/self-closing-comp]. This rule was added in v4.1.0 not
because it _conflicted_ with Prettier but because it was _unnecessary_ when
using Prettier. However, in v1.18.0 [Prettier stopped converting empty
elements to self-closing elements][prettier-self-closing]. So the rule is
not unnecessary anymore.
If you use Prettier v1.17.1 or older you should be able to upgrade
eslint-config-prettier to v5.0.0 without having to do anything else.
If you use Prettier v1.18.0 or newer, you might get lint errors about for
example changing `<div></div>` into `<div />`. You have two options:
- Run `eslint --fix` if you prefer to enforce self-closing elements where
possible. This should fix all the errors.
- Add `"react/self-closing-comp": "off"` to your ESLint config if you use
autofix from your editor and you face the same [issue as Prettier
did][prettier-self-closing].
- Changed: Node.js 6 is no longer officially supported, but v5.0.0 should
still work with it.
### Version 4.3.0 (2019-05-16)

@@ -16,3 +39,3 @@

- Added: [linebreak-style]. Use Prettier’s [end-of-line] option instead.
- Added: [self-closing-comp]. Thanks to Gaurav Gupta (@gaurav5430)!
- Added: [react/self-closing-comp]. Thanks to Gaurav Gupta (@gaurav5430)!

@@ -232,4 +255,2 @@ ### Version 4.0.0 (2019-01-26)

[@typescript-eslint/semi]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
[ESLint 4.0.0]: https://eslint.org/blog/2017/06/eslint-v4.0.0-released
[ESLint 4.6.0]: https://eslint.org/blog/2017/09/eslint-v4.6.0-released
[array-bracket-newline]: https://eslint.org/docs/rules/array-bracket-newline

@@ -241,2 +262,4 @@ [array-element-newline]: https://eslint.org/docs/rules/array-element-newline

[end-of-line]: https://prettier.io/docs/en/options.html#end-of-line
[ESLint 4.0.0]: https://eslint.org/blog/2017/06/eslint-v4.0.0-released
[ESLint 4.6.0]: https://eslint.org/blog/2017/09/eslint-v4.6.0-released
[eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype

@@ -266,2 +289,3 @@ [eslint-plugin-prettier]: https://github.com/prettier/eslint-plugin-prettier

[prefer-arrow-callback]: https://eslint.org/docs/rules/prefer-arrow-callback
[prettier-self-closing]: https://prettier.io/blog/2019/06/06/1.18.0.html#stop-converting-empty-jsx-elements-to-self-closing-elements-6127-by-duailibe
[prettier]: https://github.com/prettier

@@ -274,3 +298,3 @@ [quotes-special]: https://github.com/prettier/eslint-config-prettier/blob/8d264cd0a7f06c12e2e05415e0282a4f8f21ebc9/README.md#quotes

[react/jsx-props-no-multi-spaces]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-multi-spaces.md
[self-closing-comp]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
[react/self-closing-comp]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
[semi-style]: https://eslint.org/docs/rules/semi-style

@@ -277,0 +301,0 @@ [switch-colon-spacing]: https://eslint.org/docs/rules/switch-colon-spacing

14

package.json
{
"name": "eslint-config-prettier",
"version": "4.3.0",
"version": "5.0.0",
"license": "MIT",

@@ -41,4 +41,4 @@ "author": "Simon Lydell",

"devDependencies": {
"@typescript-eslint/eslint-plugin": "1.9.0",
"@typescript-eslint/parser": "1.9.0",
"@typescript-eslint/eslint-plugin": "1.10.2",
"@typescript-eslint/parser": "1.10.2",
"babel-eslint": "10.0.1",

@@ -50,13 +50,13 @@ "cross-spawn": "6.0.5",

"eslint-plugin-babel": "5.3.0",
"eslint-plugin-flowtype": "3.9.0",
"eslint-plugin-flowtype": "3.10.3",
"eslint-plugin-prettier": "3.1.0",
"eslint-plugin-react": "7.13.0",
"eslint-plugin-standard": "4.0.0",
"eslint-plugin-unicorn": "8.0.2",
"eslint-plugin-unicorn": "9.1.0",
"eslint-plugin-vue": "5.2.2",
"jest": "24.8.0",
"prettier": "1.17.1",
"prettier": "1.18.2",
"replace": "1.1.0",
"rimraf": "2.6.3",
"typescript": "3.4.5"
"typescript": "3.5.2"
},

@@ -63,0 +63,0 @@ "peerDependencies": {

@@ -18,5 +18,4 @@ "use strict";

"react/jsx-tag-spacing": "off",
"react/jsx-wrap-multilines": "off",
"react/self-closing-comp": "off"
"react/jsx-wrap-multilines": "off"
}
};

@@ -5,3 +5,3 @@ # eslint-config-prettier [![Build Status][travis-badge]][travis]

This lets you use you favorite shareable config without letting its stylistic
This lets you use your favorite shareable config without letting its stylistic
choices get in the way when using Prettier.

@@ -771,9 +771,9 @@

- eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
- prettier 1.17.1
- @typescript-eslint/eslint-plugin 1.9.0
- prettier 1.18.2
- @typescript-eslint/eslint-plugin 1.10.2
- eslint-plugin-babel 5.3.0
- eslint-plugin-flowtype 3.9.0
- eslint-plugin-flowtype 3.10.3
- eslint-plugin-react 7.13.0
- eslint-plugin-standard 4.0.0
- eslint-plugin-unicorn 8.0.2
- eslint-plugin-unicorn 9.1.0
- eslint-plugin-vue 5.2.2

@@ -780,0 +780,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc