eslint-config-prettier 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### Version 4.1.0 (2019-02-26)
2
+
3
+ - Added: [linebreak-style]. Use Prettier’s [end-of-line] option instead.
4
+ - Added: [self-closing-comp]. Thanks to Gaurav Gupta (@gaurav5430)!
5
+
1
6
  ### Version 4.0.0 (2019-01-26)
2
7
 
3
8
  - Breaking change: Support for [eslint-plugin-typescript] has been removed and
@@ -215,6 +220,7 @@
215
220
  [arrow-body-style]: https://eslint.org/docs/rules/arrow-body-style
216
221
  [arrow-special]: https://github.com/prettier/eslint-config-prettier/blob/2c842675e55b91aecaef6f997d234ebf2d220ffb/README.md#arrow-body-style-and-prefer-arrow-callback
217
222
  [curly]: https://eslint.org/docs/rules/curly
223
+ [end-of-line]: https://prettier.io/docs/en/options.html#end-of-line
218
224
  [eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype
219
225
  [eslint-plugin-prettier]: https://github.com/prettier/eslint-plugin-prettier
220
226
  [eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react
@@ -226,6 +232,7 @@
226
232
  [function-paren-newline]: https://eslint.org/docs/rules/function-paren-newline
227
233
  [implicit-arrow-linebreak]: https://eslint.org/docs/rules/implicit-arrow-linebreak
228
234
  [indent-legacy]: https://eslint.org/docs/rules/indent-legacy
235
+ [linebreak-style]: https://eslint.org/docs/rules/linebreak-style
229
236
  [lines-around-comment-special]: https://github.com/prettier/eslint-config-prettier/blob/5399175c37466747aae9d407021dffec2c169c8b/README.md#lines-around-comment
230
237
  [lines-around-comment]: https://eslint.org/docs/rules/lines-around-comment
231
238
  [no-confusing-arrow-special]: https://github.com/prettier/eslint-config-prettier/blob/08ac5bcc25c9cdc71864b4a1e4191e7d28dd2bc2/README.md#no-confusing-arrow
@@ -245,6 +252,7 @@
245
252
  [react/jsx-closing-tag-location]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md
246
253
  [react/jsx-one-expression-per-line]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-one-expression-per-line.md
247
254
  [react/jsx-props-no-multi-spaces]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-multi-spaces.md
255
+ [self-closing-comp]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
248
256
  [semi-style]: https://eslint.org/docs/rules/semi-style
249
257
  [switch-colon-spacing]: https://eslint.org/docs/rules/switch-colon-spacing
250
258
  [template-tag-spacing]: https://eslint.org/docs/rules/template-tag-spacing
package/README.md CHANGED
@@ -91,6 +91,23 @@ Add extra exclusions for the plugins you use like so:
91
91
  }
92
92
  ```
93
93
 
94
+ If you extend a config which uses a plugin, it is recommended to add
95
+ `"prettier/that-plugin"` (if available). For example, [eslint-config-airbnb]
96
+ enables [eslint-plugin-react] rules, so `"prettier/react"` is needed:
97
+
98
+ ```json
99
+ {
100
+ "extends": [
101
+ "airbnb",
102
+ "prettier",
103
+ "prettier/react"
104
+ ]
105
+ }
106
+ ```
107
+
108
+ If you’re unsure which plugins are used, you can usually find them in your
109
+ `package.json`.
110
+
94
111
  ## CLI helper tool
95
112
 
96
113
  eslint-config-prettier also ships with a little CLI tool to help you check if
@@ -747,13 +764,13 @@ You can also supply a custom message if you want:
747
764
 
748
765
  eslint-config-prettier has been tested with:
749
766
 
750
- - ESLint 5.12.0
767
+ - ESLint 5.14.1
751
768
  - eslint-config-prettier 2.10.0 and older were tested with ESLint 4.x
752
769
  - eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
753
- - prettier 1.16.1
754
- - @typescript-eslint/eslint-plugin 1.1.0
770
+ - prettier 1.16.4
771
+ - @typescript-eslint/eslint-plugin 1.4.2
755
772
  - eslint-plugin-babel 5.3.0
756
- - eslint-plugin-flowtype 3.2.1
773
+ - eslint-plugin-flowtype 3.4.2
757
774
  - eslint-plugin-react 7.12.4
758
775
  - eslint-plugin-standard 4.0.0
759
776
  - eslint-plugin-unicorn 7.1.0
@@ -829,6 +846,7 @@ several other npm scripts:
829
846
  [arrow-body-style]: https://eslint.org/docs/rules/arrow-body-style
830
847
  [babel/quotes]: https://github.com/babel/eslint-plugin-babel#rules
831
848
  [curly]: https://eslint.org/docs/rules/curly
849
+ [eslint-config-airbnb]: https://www.npmjs.com/package/eslint-config-airbnb
832
850
  [eslint-config-prettier#31]: https://github.com/prettier/eslint-config-prettier/issues/31
833
851
  [eslint-config-prettier#71]: https://github.com/prettier/eslint-config-prettier/issues/71
834
852
  [eslint-plugin-babel]: https://github.com/babel/eslint-plugin-babel
package/index.js CHANGED
@@ -39,6 +39,7 @@ module.exports = {
39
39
  "jsx-quotes": "off",
40
40
  "key-spacing": "off",
41
41
  "keyword-spacing": "off",
42
+ "linebreak-style": "off",
42
43
  "multiline-ternary": "off",
43
44
  "newline-per-chained-call": "off",
44
45
  "new-parens": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-prettier",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "license": "MIT",
5
5
  "author": "Simon Lydell",
6
6
  "description": "Turns off all rules that are unnecessary or might conflict with Prettier.",
@@ -38,25 +38,25 @@
38
38
  "get-stdin": "^6.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@typescript-eslint/eslint-plugin": "1.1.0",
42
- "@typescript-eslint/parser": "1.1.0",
41
+ "@typescript-eslint/eslint-plugin": "1.4.2",
42
+ "@typescript-eslint/parser": "1.4.2",
43
43
  "babel-eslint": "10.0.1",
44
44
  "cross-spawn": "6.0.5",
45
45
  "doctoc": "1.4.0",
46
- "eslint": "5.12.0",
47
- "eslint-config-google": "0.11.0",
46
+ "eslint": "5.14.1",
47
+ "eslint-config-google": "0.12.0",
48
48
  "eslint-plugin-babel": "5.3.0",
49
- "eslint-plugin-flowtype": "3.2.1",
49
+ "eslint-plugin-flowtype": "3.4.2",
50
50
  "eslint-plugin-prettier": "3.0.1",
51
51
  "eslint-plugin-react": "7.12.4",
52
52
  "eslint-plugin-standard": "4.0.0",
53
53
  "eslint-plugin-unicorn": "7.1.0",
54
54
  "eslint-plugin-vue": "github:vuejs/eslint-plugin-vue#9c49dcc8ff792ec6798037bd6b7f4ac3d26fdf68",
55
- "jest": "24.0.0",
56
- "prettier": "1.16.1",
55
+ "jest": "24.1.0",
56
+ "prettier": "1.16.4",
57
57
  "replace": "1.0.1",
58
58
  "rimraf": "2.6.3",
59
- "typescript": "3.2.4"
59
+ "typescript": "3.3.3333"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "eslint": ">=3.14.1"
package/react.js CHANGED
@@ -15,6 +15,7 @@ module.exports = {
15
15
  "react/jsx-props-no-multi-spaces": "off",
16
16
  "react/jsx-space-before-closing": "off",
17
17
  "react/jsx-tag-spacing": "off",
18
- "react/jsx-wrap-multilines": "off"
18
+ "react/jsx-wrap-multilines": "off",
19
+ "react/self-closing-comp": "off"
19
20
  }
20
21
  };