eslint-config-prettier 4.1.0 → 5.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/@typescript-eslint.js +3 -0
- package/CHANGELOG.md +52 -4
- package/README.md +8 -8
- package/package.json +15 -15
- package/react.js +2 -2
- package/vue.js +4 -0
package/@typescript-eslint.js
CHANGED
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
rules: {
|
|
5
|
+
"@typescript-eslint/func-call-spacing": "off",
|
|
5
6
|
"@typescript-eslint/indent": "off",
|
|
6
7
|
"@typescript-eslint/member-delimiter-style": "off",
|
|
8
|
+
"@typescript-eslint/no-extra-parens": "off",
|
|
9
|
+
"@typescript-eslint/semi": "off",
|
|
7
10
|
"@typescript-eslint/type-annotation-spacing": "off"
|
|
8
11
|
}
|
|
9
12
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,46 @@
|
|
|
1
|
+
### Version 5.1.0 (2019-06-25)
|
|
2
|
+
|
|
3
|
+
- Added: [react/jsx-curly-newline]. Thanks to Masafumi Koba (@ybiquitous)!
|
|
4
|
+
|
|
5
|
+
### Version 5.0.0 (2019-06-15)
|
|
6
|
+
|
|
7
|
+
- Removed: [react/self-closing-comp]. This rule was added in v4.1.0 not
|
|
8
|
+
because it _conflicted_ with Prettier but because it was _unnecessary_ when
|
|
9
|
+
using Prettier. However, in v1.18.0 [Prettier stopped converting empty
|
|
10
|
+
elements to self-closing elements][prettier-self-closing]. So the rule is
|
|
11
|
+
not unnecessary anymore.
|
|
12
|
+
|
|
13
|
+
If you use Prettier v1.17.1 or older you should be able to upgrade
|
|
14
|
+
eslint-config-prettier to v5.0.0 without having to do anything else.
|
|
15
|
+
|
|
16
|
+
If you use Prettier v1.18.0 or newer, you might get lint errors about for
|
|
17
|
+
example changing `<div></div>` into `<div />`. You have two options:
|
|
18
|
+
|
|
19
|
+
- Run `eslint --fix` if you prefer to enforce self-closing elements where
|
|
20
|
+
possible. This should fix all the errors.
|
|
21
|
+
- Add `"react/self-closing-comp": "off"` to your ESLint config if you use
|
|
22
|
+
autofix from your editor and you face the same [issue as Prettier
|
|
23
|
+
did][prettier-self-closing].
|
|
24
|
+
|
|
25
|
+
- Changed: Node.js 6 is no longer officially supported, but v5.0.0 should
|
|
26
|
+
still work with it.
|
|
27
|
+
|
|
28
|
+
### Version 4.3.0 (2019-05-16)
|
|
29
|
+
|
|
30
|
+
- Added: New [eslint-plugin-vue] rules: [vue/arrow-spacing],
|
|
31
|
+
[vue/block-spacing], [vue/brace-style] and [vue/comma-dangle].
|
|
32
|
+
- Added: New [@typescript-eslint/eslint-plugin] rules:
|
|
33
|
+
[@typescript-eslint/func-call-spacing] and [@typescript-eslint/semi].
|
|
34
|
+
|
|
35
|
+
### Version 4.2.0 (2019-04-25)
|
|
36
|
+
|
|
37
|
+
- Added: [@typescript-eslint/no-extra-parens]. Thanks to Keiichiro Amemiya
|
|
38
|
+
(@Hoishin) and Jen Gorfine (@jgorfine)!
|
|
39
|
+
|
|
1
40
|
### Version 4.1.0 (2019-02-26)
|
|
2
41
|
|
|
3
42
|
- Added: [linebreak-style]. Use Prettier’s [end-of-line] option instead.
|
|
4
|
-
- Added: [self-closing-comp]. Thanks to Gaurav Gupta (@gaurav5430)!
|
|
43
|
+
- Added: [react/self-closing-comp]. Thanks to Gaurav Gupta (@gaurav5430)!
|
|
5
44
|
|
|
6
45
|
### Version 4.0.0 (2019-01-26)
|
|
7
46
|
|
|
@@ -213,14 +252,17 @@
|
|
|
213
252
|
- Initial release.
|
|
214
253
|
|
|
215
254
|
[@typescript-eslint/eslint-plugin]: https://github.com/typescript-eslint/typescript-eslint
|
|
216
|
-
[
|
|
217
|
-
[
|
|
255
|
+
[@typescript-eslint/func-call-spacing]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md
|
|
256
|
+
[@typescript-eslint/no-extra-parens]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md
|
|
257
|
+
[@typescript-eslint/semi]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
|
|
218
258
|
[array-bracket-newline]: https://eslint.org/docs/rules/array-bracket-newline
|
|
219
259
|
[array-element-newline]: https://eslint.org/docs/rules/array-element-newline
|
|
220
260
|
[arrow-body-style]: https://eslint.org/docs/rules/arrow-body-style
|
|
221
261
|
[arrow-special]: https://github.com/prettier/eslint-config-prettier/blob/2c842675e55b91aecaef6f997d234ebf2d220ffb/README.md#arrow-body-style-and-prefer-arrow-callback
|
|
222
262
|
[curly]: https://eslint.org/docs/rules/curly
|
|
223
263
|
[end-of-line]: https://prettier.io/docs/en/options.html#end-of-line
|
|
264
|
+
[ESLint 4.0.0]: https://eslint.org/blog/2017/06/eslint-v4.0.0-released
|
|
265
|
+
[ESLint 4.6.0]: https://eslint.org/blog/2017/09/eslint-v4.6.0-released
|
|
224
266
|
[eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype
|
|
225
267
|
[eslint-plugin-prettier]: https://github.com/prettier/eslint-plugin-prettier
|
|
226
268
|
[eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react
|
|
@@ -245,16 +287,22 @@
|
|
|
245
287
|
[nonblock-statement-body-position]: https://eslint.org/docs/rules/nonblock-statement-body-position
|
|
246
288
|
[one-var-declaration-per-line]: https://eslint.org/docs/rules/one-var-declaration-per-line
|
|
247
289
|
[prefer-arrow-callback]: https://eslint.org/docs/rules/prefer-arrow-callback
|
|
290
|
+
[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
|
|
248
291
|
[prettier]: https://github.com/prettier
|
|
249
292
|
[quotes-special]: https://github.com/prettier/eslint-config-prettier/blob/8d264cd0a7f06c12e2e05415e0282a4f8f21ebc9/README.md#quotes
|
|
250
293
|
[quotes]: https://eslint.org/docs/rules/quotes
|
|
251
294
|
[react/jsx-child-element-spacing]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-child-element-spacing.md
|
|
252
295
|
[react/jsx-closing-tag-location]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md
|
|
296
|
+
[react/jsx-curly-newline]: [react/jsx-curly-newline]
|
|
253
297
|
[react/jsx-one-expression-per-line]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-one-expression-per-line.md
|
|
254
298
|
[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
|
|
299
|
+
[react/self-closing-comp]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
|
|
256
300
|
[semi-style]: https://eslint.org/docs/rules/semi-style
|
|
257
301
|
[switch-colon-spacing]: https://eslint.org/docs/rules/switch-colon-spacing
|
|
258
302
|
[template-tag-spacing]: https://eslint.org/docs/rules/template-tag-spacing
|
|
303
|
+
[vue/arrow-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/arrow-spacing.md
|
|
304
|
+
[vue/block-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/block-spacing.md
|
|
305
|
+
[vue/brace-style]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/brace-style.md
|
|
306
|
+
[vue/comma-dangle]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/comma-dangle.md
|
|
259
307
|
[vue/html-self-closing-special]: https://github.com/prettier/eslint-config-prettier/blob/d5e7af986221df5faedc12893d8dc3150a808693/README.md#vuehtml-self-closing
|
|
260
308
|
[vue/html-self-closing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Turns off all rules that are unnecessary or might conflict with [Prettier].
|
|
4
4
|
|
|
5
|
-
This lets you use
|
|
5
|
+
This lets you use your favorite shareable config without letting its stylistic
|
|
6
6
|
choices get in the way when using Prettier.
|
|
7
7
|
|
|
8
8
|
Note that this config _only_ turns rules _off,_ so it only makes sense using
|
|
@@ -764,17 +764,17 @@ You can also supply a custom message if you want:
|
|
|
764
764
|
|
|
765
765
|
eslint-config-prettier has been tested with:
|
|
766
766
|
|
|
767
|
-
- ESLint 5.
|
|
767
|
+
- ESLint 5.16.0
|
|
768
768
|
- eslint-config-prettier 2.10.0 and older were tested with ESLint 4.x
|
|
769
769
|
- eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
|
|
770
|
-
- prettier 1.
|
|
771
|
-
- @typescript-eslint/eslint-plugin 1.
|
|
770
|
+
- prettier 1.18.2
|
|
771
|
+
- @typescript-eslint/eslint-plugin 1.11.0
|
|
772
772
|
- eslint-plugin-babel 5.3.0
|
|
773
|
-
- eslint-plugin-flowtype 3.
|
|
774
|
-
- eslint-plugin-react 7.
|
|
773
|
+
- eslint-plugin-flowtype 3.11.1
|
|
774
|
+
- eslint-plugin-react 7.14.2
|
|
775
775
|
- eslint-plugin-standard 4.0.0
|
|
776
|
-
- eslint-plugin-unicorn
|
|
777
|
-
- eslint-plugin-vue 5.
|
|
776
|
+
- eslint-plugin-unicorn 9.1.1
|
|
777
|
+
- eslint-plugin-vue 5.2.3
|
|
778
778
|
|
|
779
779
|
Have new rules been added since those versions? Have we missed any rules? Is
|
|
780
780
|
there a plugin you would like to see exclusions for? Open an issue or a pull
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-prettier",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.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.
|
|
42
|
-
"@typescript-eslint/parser": "1.
|
|
43
|
-
"babel-eslint": "10.0.
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "1.11.0",
|
|
42
|
+
"@typescript-eslint/parser": "1.11.0",
|
|
43
|
+
"babel-eslint": "10.0.2",
|
|
44
44
|
"cross-spawn": "6.0.5",
|
|
45
45
|
"doctoc": "1.4.0",
|
|
46
|
-
"eslint": "5.
|
|
47
|
-
"eslint-config-google": "0.
|
|
46
|
+
"eslint": "5.16.0",
|
|
47
|
+
"eslint-config-google": "0.13.0",
|
|
48
48
|
"eslint-plugin-babel": "5.3.0",
|
|
49
|
-
"eslint-plugin-flowtype": "3.
|
|
50
|
-
"eslint-plugin-prettier": "3.0
|
|
51
|
-
"eslint-plugin-react": "7.
|
|
49
|
+
"eslint-plugin-flowtype": "3.11.1",
|
|
50
|
+
"eslint-plugin-prettier": "3.1.0",
|
|
51
|
+
"eslint-plugin-react": "7.14.2",
|
|
52
52
|
"eslint-plugin-standard": "4.0.0",
|
|
53
|
-
"eslint-plugin-unicorn": "
|
|
54
|
-
"eslint-plugin-vue": "
|
|
55
|
-
"jest": "24.
|
|
56
|
-
"prettier": "1.
|
|
57
|
-
"replace": "1.0
|
|
53
|
+
"eslint-plugin-unicorn": "9.1.1",
|
|
54
|
+
"eslint-plugin-vue": "5.2.3",
|
|
55
|
+
"jest": "24.8.0",
|
|
56
|
+
"prettier": "1.18.2",
|
|
57
|
+
"replace": "1.1.0",
|
|
58
58
|
"rimraf": "2.6.3",
|
|
59
|
-
"typescript": "3.
|
|
59
|
+
"typescript": "3.5.2"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"eslint": ">=3.14.1"
|
package/react.js
CHANGED
|
@@ -5,6 +5,7 @@ module.exports = {
|
|
|
5
5
|
"react/jsx-child-element-spacing": "off",
|
|
6
6
|
"react/jsx-closing-bracket-location": "off",
|
|
7
7
|
"react/jsx-closing-tag-location": "off",
|
|
8
|
+
"react/jsx-curly-newline": "off",
|
|
8
9
|
"react/jsx-curly-spacing": "off",
|
|
9
10
|
"react/jsx-equals-spacing": "off",
|
|
10
11
|
"react/jsx-first-prop-new-line": "off",
|
|
@@ -15,7 +16,6 @@ module.exports = {
|
|
|
15
16
|
"react/jsx-props-no-multi-spaces": "off",
|
|
16
17
|
"react/jsx-space-before-closing": "off",
|
|
17
18
|
"react/jsx-tag-spacing": "off",
|
|
18
|
-
"react/jsx-wrap-multilines": "off"
|
|
19
|
-
"react/self-closing-comp": "off"
|
|
19
|
+
"react/jsx-wrap-multilines": "off"
|
|
20
20
|
}
|
|
21
21
|
};
|
package/vue.js
CHANGED
|
@@ -5,6 +5,10 @@ module.exports = {
|
|
|
5
5
|
"vue/html-self-closing": 0,
|
|
6
6
|
|
|
7
7
|
"vue/array-bracket-spacing": "off",
|
|
8
|
+
"vue/arrow-spacing": "off",
|
|
9
|
+
"vue/block-spacing": "off",
|
|
10
|
+
"vue/brace-style": "off",
|
|
11
|
+
"vue/comma-dangle": "off",
|
|
8
12
|
"vue/html-closing-bracket-newline": "off",
|
|
9
13
|
"vue/html-closing-bracket-spacing": "off",
|
|
10
14
|
"vue/html-end-tags": "off",
|