eslint-config-prettier 6.10.1 → 6.14.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.
@@ -5,9 +5,11 @@ module.exports = {
5
5
  "@typescript-eslint/quotes": 0,
6
6
 
7
7
  "@typescript-eslint/brace-style": "off",
8
+ "@typescript-eslint/comma-dangle": "off",
8
9
  "@typescript-eslint/comma-spacing": "off",
9
10
  "@typescript-eslint/func-call-spacing": "off",
10
11
  "@typescript-eslint/indent": "off",
12
+ "@typescript-eslint/keyword-spacing": "off",
11
13
  "@typescript-eslint/member-delimiter-style": "off",
12
14
  "@typescript-eslint/no-extra-parens": "off",
13
15
  "@typescript-eslint/no-extra-semi": "off",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### Version 6.14.0 (2020-10-21)
2
+
3
+ - Added: New [eslint-plugin-vue] rules: [vue/array-bracket-newline] and [vue/block-tag-newline]. Thanks to @xcatliu!
4
+
5
+ ### Version 6.13.0 (2020-10-16)
6
+
7
+ - Added: New rules in [eslint-plugin-vue] 7.0 (which supports Vue 3.0). Thanks to @xcatliu!
8
+
9
+ ### Version 6.12.0 (2020-09-25)
10
+
11
+ - Added: [@typescript-eslint/comma-dangle]. Thanks to Masafumi Koba (@ybiquitous)!!
12
+
13
+ ### Version 6.11.0 (2020-04-21)
14
+
15
+ - Added: [@typescript-eslint/keyword-spacing]. Thanks to Hans Bergren (@hbergren)!
16
+
1
17
  ### Version 6.10.1 (2020-03-22)
2
18
 
3
19
  - Improved: Recommend using `npx` when running the CLI helper tool.
@@ -5,7 +21,7 @@
5
21
 
6
22
  ### Version 6.10.0 (2020-01-28)
7
23
 
8
- - Added: [@typescript-eslint/comma-spacing]. Thanks to Thanks to Masafumi Koba (@ybiquitous)!!
24
+ - Added: [@typescript-eslint/comma-spacing]. Thanks to Masafumi Koba (@ybiquitous)!!
9
25
 
10
26
  ### Version 6.9.0 (2019-12-27)
11
27
 
@@ -266,9 +282,11 @@
266
282
  - Initial release.
267
283
 
268
284
  [@typescript-eslint/brace-style]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/brace-style.md
285
+ [@typescript-eslint/comma-dangle]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-dangle.md
269
286
  [@typescript-eslint/comma-spacing]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md
270
287
  [@typescript-eslint/eslint-plugin]: https://github.com/typescript-eslint/typescript-eslint
271
288
  [@typescript-eslint/func-call-spacing]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md
289
+ [@typescript-eslint/keyword-spacing]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/keyword-spacing.md
272
290
  [@typescript-eslint/no-extra-parens]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md
273
291
  [@typescript-eslint/no-extra-semi]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-semi.md
274
292
  [@typescript-eslint/quotes-special]: https://github.com/prettier/eslint-config-prettier/blob/857257179fe69715362dfa9300762d6e534c0603/README.md#quotes
@@ -332,4 +350,6 @@
332
350
  [vue/html-self-closing-special]: https://github.com/prettier/eslint-config-prettier/blob/d5e7af986221df5faedc12893d8dc3150a808693/README.md#vuehtml-self-closing
333
351
  [vue/html-self-closing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
334
352
  [vue/keyword-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/keyword-spacing.md
353
+ [vue/keyword-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/array-bracket-newline.md
354
+ [vue/keyword-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/block-tag-newline.md
335
355
  [vue/max-len]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/max-len.md
package/README.md CHANGED
@@ -14,7 +14,6 @@ Note that this config _only_ turns rules _off,_ so it only makes sense using it
14
14
  - [Installation](#installation)
15
15
  - [Excluding deprecated rules](#excluding-deprecated-rules)
16
16
  - [CLI helper tool](#cli-helper-tool)
17
- - [Example configuration](#example-configuration)
18
17
  - [Special rules](#special-rules)
19
18
  - [arrow-body-style and prefer-arrow-callback](#arrow-body-style-and-prefer-arrow-callback)
20
19
  - [curly](#curly)
@@ -27,8 +26,8 @@ Note that this config _only_ turns rules _off,_ so it only makes sense using it
27
26
  - [quotes](#quotes)
28
27
  - [Enforce backticks](#enforce-backticks)
29
28
  - [Forbid unnecessary backticks](#forbid-unnecessary-backticks)
30
- - [Example _double_ quote configuration](#example-_double_-quote-configuration)
31
- - [Example _single_ quote configuration](#example-_single_-quote-configuration)
29
+ - [Example double quote configuration](#example-double-quote-configuration)
30
+ - [Example single quote configuration](#example-single-quote-configuration)
32
31
  - [vue/html-self-closing](#vuehtml-self-closing)
33
32
  - [Other rules worth mentioning](#other-rules-worth-mentioning)
34
33
  - [no-sequences](#no-sequences)
@@ -135,49 +134,6 @@ Exit codes:
135
134
  - 1: Unexpected error.
136
135
  - 2: Conflicting rules found.
137
136
 
138
- ## Example configuration
139
-
140
- <!-- prettier-ignore -->
141
- ```json
142
- {
143
- "extends": [
144
- "standard",
145
- "plugin:@typescript-eslint/recommended",
146
- "plugin:flowtype/recommended",
147
- "plugin:react/recommended",
148
- "plugin:unicorn/recommended",
149
- "plugin:vue/recommended",
150
- "prettier",
151
- "prettier/@typescript-eslint",
152
- "prettier/babel",
153
- "prettier/flowtype",
154
- "prettier/react",
155
- "prettier/standard",
156
- "prettier/unicorn",
157
- "prettier/vue"
158
- ],
159
- "plugins": [
160
- "@typescript-eslint",
161
- "babel",
162
- "flowtype",
163
- "react",
164
- "standard",
165
- "unicorn",
166
- "vue"
167
- ],
168
- "parserOptions": {
169
- "sourceType": "module",
170
- "ecmaFeatures": {
171
- "jsx": true
172
- }
173
- },
174
- "env": {
175
- "es6": true,
176
- "node": true
177
- }
178
- }
179
- ```
180
-
181
137
  ## Special rules
182
138
 
183
139
  There a few rules that eslint-config-prettier disables that actually can be enabled in some cases.
@@ -586,7 +542,7 @@ If you’d like ESLint to enforce `` `could have been a regular string` `` being
586
542
  - `"avoidEscape": true` to follow Prettier’s [string formatting rules].
587
543
  - `"allowTemplateLiterals": false` to disallow unnecessary backticks.
588
544
 
589
- ##### Example _double_ quote configuration
545
+ ##### Example double quote configuration
590
546
 
591
547
  ESLint:
592
548
 
@@ -612,7 +568,7 @@ Prettier (this is the default, so adding this is not required):
612
568
  }
613
569
  ```
614
570
 
615
- ##### Example _single_ quote configuration
571
+ ##### Example single quote configuration
616
572
 
617
573
  ESLint:
618
574
 
@@ -734,18 +690,19 @@ You can also supply a custom message if you want:
734
690
 
735
691
  eslint-config-prettier has been tested with:
736
692
 
737
- - ESLint 6.8.0
693
+ - ESLint 7.11.0
694
+ - eslint-config-prettier 6.11.0 and older were tested with ESLint 6.x
738
695
  - eslint-config-prettier 5.1.0 and older were tested with ESLint 5.x
739
696
  - eslint-config-prettier 2.10.0 and older were tested with ESLint 4.x
740
697
  - eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
741
- - prettier 2.0.1
742
- - @typescript-eslint/eslint-plugin 2.24.0
743
- - eslint-plugin-babel 5.3.0
744
- - eslint-plugin-flowtype 4.6.0
745
- - eslint-plugin-react 7.19.0
698
+ - prettier 2.1.2
699
+ - @typescript-eslint/eslint-plugin 4.5.0
700
+ - eslint-plugin-babel 5.3.1
701
+ - eslint-plugin-flowtype 5.2.0
702
+ - eslint-plugin-react 7.21.5
746
703
  - eslint-plugin-standard 4.0.1
747
- - eslint-plugin-unicorn 17.2.1
748
- - eslint-plugin-vue 6.2.2
704
+ - eslint-plugin-unicorn 23.0.0
705
+ - eslint-plugin-vue 7.1.0
749
706
 
750
707
  Have new rules been added since those versions? Have we missed any rules? Is there a plugin you would like to see exclusions for? Open an issue or a pull request!
751
708
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-prettier",
3
- "version": "6.10.1",
3
+ "version": "6.14.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.",
@@ -40,26 +40,26 @@
40
40
  "get-stdin": "^6.0.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@typescript-eslint/eslint-plugin": "2.24.0",
44
- "@typescript-eslint/parser": "2.24.0",
43
+ "@typescript-eslint/eslint-plugin": "4.5.0",
44
+ "@typescript-eslint/parser": "4.5.0",
45
45
  "babel-eslint": "10.1.0",
46
- "cross-spawn": "7.0.1",
46
+ "cross-spawn": "7.0.3",
47
47
  "doctoc": "1.4.0",
48
- "eslint": "6.8.0",
48
+ "eslint": "7.11.0",
49
49
  "eslint-config-google": "0.14.0",
50
- "eslint-find-rules": "3.4.0",
51
- "eslint-plugin-babel": "5.3.0",
52
- "eslint-plugin-flowtype": "4.6.0",
53
- "eslint-plugin-prettier": "3.1.2",
54
- "eslint-plugin-react": "7.19.0",
50
+ "eslint-find-rules": "3.6.1",
51
+ "eslint-plugin-babel": "5.3.1",
52
+ "eslint-plugin-flowtype": "5.2.0",
53
+ "eslint-plugin-prettier": "3.1.4",
54
+ "eslint-plugin-react": "7.21.5",
55
55
  "eslint-plugin-standard": "4.0.1",
56
- "eslint-plugin-unicorn": "17.2.0",
57
- "eslint-plugin-vue": "6.2.2",
58
- "jest": "25.1.0",
59
- "prettier": "2.0.1",
60
- "replace": "1.1.5",
56
+ "eslint-plugin-unicorn": "23.0.0",
57
+ "eslint-plugin-vue": "7.1.0",
58
+ "jest": "26.6.0",
59
+ "prettier": "2.1.2",
60
+ "replace": "1.2.0",
61
61
  "rimraf": "3.0.2",
62
- "typescript": "3.7.5"
62
+ "typescript": "4.0.3"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "eslint": ">=3.14.1"
package/vue.js CHANGED
@@ -5,12 +5,17 @@ module.exports = {
5
5
  "vue/html-self-closing": 0,
6
6
  "vue/max-len": 0,
7
7
 
8
+ "vue/array-bracket-newline": "off",
8
9
  "vue/array-bracket-spacing": "off",
9
10
  "vue/arrow-spacing": "off",
10
11
  "vue/block-spacing": "off",
12
+ "vue/block-tag-newline": "off",
11
13
  "vue/brace-style": "off",
12
14
  "vue/comma-dangle": "off",
15
+ "vue/comma-spacing": "off",
16
+ "vue/comma-style": "off",
13
17
  "vue/dot-location": "off",
18
+ "vue/func-call-spacing": "off",
14
19
  "vue/html-closing-bracket-newline": "off",
15
20
  "vue/html-closing-bracket-spacing": "off",
16
21
  "vue/html-end-tags": "off",
@@ -21,12 +26,18 @@ module.exports = {
21
26
  "vue/max-attributes-per-line": "off",
22
27
  "vue/multiline-html-element-content-newline": "off",
23
28
  "vue/mustache-interpolation-spacing": "off",
29
+ "vue/no-extra-parens": "off",
24
30
  "vue/no-multi-spaces": "off",
25
31
  "vue/no-spaces-around-equal-signs-in-attribute": "off",
32
+ "vue/object-curly-newline": "off",
26
33
  "vue/object-curly-spacing": "off",
34
+ "vue/object-property-newline": "off",
35
+ "vue/operator-linebreak": "off",
27
36
  "vue/script-indent": "off",
28
37
  "vue/singleline-html-element-content-newline": "off",
38
+ "vue/space-in-parens": "off",
29
39
  "vue/space-infix-ops": "off",
30
40
  "vue/space-unary-ops": "off",
41
+ "vue/template-curly-spacing": "off",
31
42
  },
32
43
  };