eslint-config-prettier 6.5.0 → 6.9.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.
@@ -9,7 +9,9 @@ module.exports = {
9
9
  "@typescript-eslint/indent": "off",
10
10
  "@typescript-eslint/member-delimiter-style": "off",
11
11
  "@typescript-eslint/no-extra-parens": "off",
12
+ "@typescript-eslint/no-extra-semi": "off",
12
13
  "@typescript-eslint/semi": "off",
14
+ "@typescript-eslint/space-before-function-paren": "off",
13
15
  "@typescript-eslint/type-annotation-spacing": "off"
14
16
  }
15
17
  };
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ### Version 6.9.0 (2019-12-27)
2
+
3
+ - Added: [vue/max-len]. Thanks to @xcatliu!
4
+
5
+ ### Version 6.8.0 (2019-12-25)
6
+
7
+ - Added: [@typescript-eslint/no-extra-semi]. Thanks to @xcatliu!
8
+
9
+ ### Version 6.7.0 (2019-11-19)
10
+
11
+ - Added: [@typescript-eslint/space-before-function-paren]. Thanks to Masafumi
12
+ Koba (@ybiquitous)!
13
+
14
+ ### Version 6.6.0 (2019-11-17)
15
+
16
+ - Added: New [eslint-plugin-vue] rules: [vue/dot-location] and
17
+ [vue/keyword-spacing]. Thanks to @xcatliu!
18
+
1
19
  ### Version 6.5.0 (2019-10-26)
2
20
 
3
21
  - Added: Support for [excluding deprecated rules]. Thanks to Alex Ilyaev
@@ -315,9 +333,11 @@
315
333
  [@typescript-eslint/eslint-plugin]: https://github.com/typescript-eslint/typescript-eslint
316
334
  [@typescript-eslint/func-call-spacing]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md
317
335
  [@typescript-eslint/no-extra-parens]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md
336
+ [@typescript-eslint/no-extra-semi]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-semi.md
318
337
  [@typescript-eslint/quotes-special]: https://github.com/prettier/eslint-config-prettier/blob/857257179fe69715362dfa9300762d6e534c0603/README.md#quotes
319
338
  [@typescript-eslint/quotes]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md
320
339
  [@typescript-eslint/semi]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
340
+ [@typescript-eslint/space-before-function-paren]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-function-paren.md
321
341
  [array-bracket-newline]: https://eslint.org/docs/rules/array-bracket-newline
322
342
  [array-element-newline]: https://eslint.org/docs/rules/array-element-newline
323
343
  [arrow-body-style]: https://eslint.org/docs/rules/arrow-body-style
@@ -371,5 +391,8 @@
371
391
  [vue/block-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/block-spacing.md
372
392
  [vue/brace-style]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/brace-style.md
373
393
  [vue/comma-dangle]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/comma-dangle.md
394
+ [vue/dot-location]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/dot-location.md
374
395
  [vue/html-self-closing-special]: https://github.com/prettier/eslint-config-prettier/blob/d5e7af986221df5faedc12893d8dc3150a808693/README.md#vuehtml-self-closing
375
396
  [vue/html-self-closing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
397
+ [vue/keyword-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/keyword-spacing.md
398
+ [vue/max-len]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/max-len.md
package/README.md CHANGED
@@ -353,6 +353,8 @@ Example ESLint configuration:
353
353
 
354
354
  ### [max-len]
355
355
 
356
+ (The following applies to [vue/max-len] as well.)
357
+
356
358
  **This rule requires special attention when writing code.**
357
359
 
358
360
  Usually, Prettier takes care of following a maximum line length automatically.
@@ -793,18 +795,18 @@ You can also supply a custom message if you want:
793
795
 
794
796
  eslint-config-prettier has been tested with:
795
797
 
796
- - ESLint 6.6.0
798
+ - ESLint 6.8.0
797
799
  - eslint-config-prettier 5.1.0 and older were tested with ESLint 5.x
798
800
  - eslint-config-prettier 2.10.0 and older were tested with ESLint 4.x
799
801
  - eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
800
- - prettier 1.18.2
801
- - @typescript-eslint/eslint-plugin 2.5.0
802
+ - prettier 1.19.1
803
+ - @typescript-eslint/eslint-plugin 2.13.0
802
804
  - eslint-plugin-babel 5.3.0
803
- - eslint-plugin-flowtype 4.3.0
804
- - eslint-plugin-react 7.16.0
805
+ - eslint-plugin-flowtype 4.5.2
806
+ - eslint-plugin-react 7.17.0
805
807
  - eslint-plugin-standard 4.0.1
806
- - eslint-plugin-unicorn 12.1.0
807
- - eslint-plugin-vue 5.2.3
808
+ - eslint-plugin-unicorn 15.0.1
809
+ - eslint-plugin-vue 6.1.1
808
810
 
809
811
  Have new rules been added since those versions? Have we missed any rules? Is
810
812
  there a plugin you would like to see exclusions for? Open an issue or a pull
@@ -906,3 +908,4 @@ several other npm scripts:
906
908
  [travis-badge]: https://travis-ci.org/prettier/eslint-config-prettier.svg?branch=master
907
909
  [travis]: https://travis-ci.org/prettier/eslint-config-prettier
908
910
  [vue/html-self-closing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
911
+ [vue/max-len]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/max-len.md
package/bin/validators.js CHANGED
@@ -46,7 +46,7 @@ module.exports = {
46
46
 
47
47
  const firstOption = options[0];
48
48
  return Boolean(
49
- firstOption && (firstOption.html && firstOption.html.void === "any")
49
+ firstOption && firstOption.html && firstOption.html.void === "any"
50
50
  // Enable when Prettier supports SVG: https://github.com/prettier/prettier/issues/5322
51
51
  // && firstOption.svg === "any"
52
52
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-prettier",
3
- "version": "6.5.0",
3
+ "version": "6.9.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.",
@@ -39,8 +39,8 @@
39
39
  "get-stdin": "^6.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@typescript-eslint/eslint-plugin": "2.5.0",
43
- "@typescript-eslint/parser": "2.5.0",
42
+ "@typescript-eslint/eslint-plugin": "2.13.0",
43
+ "@typescript-eslint/parser": "2.13.0",
44
44
  "babel-eslint": "10.0.3",
45
45
  "cross-spawn": "6.0.5",
46
46
  "doctoc": "1.4.0",
@@ -48,17 +48,17 @@
48
48
  "eslint-config-google": "0.14.0",
49
49
  "eslint-find-rules": "3.4.0",
50
50
  "eslint-plugin-babel": "5.3.0",
51
- "eslint-plugin-flowtype": "4.3.0",
52
- "eslint-plugin-prettier": "3.1.1",
53
- "eslint-plugin-react": "7.16.0",
51
+ "eslint-plugin-flowtype": "4.5.2",
52
+ "eslint-plugin-prettier": "3.1.2",
53
+ "eslint-plugin-react": "7.17.0",
54
54
  "eslint-plugin-standard": "4.0.1",
55
- "eslint-plugin-unicorn": "12.1.0",
56
- "eslint-plugin-vue": "5.2.3",
55
+ "eslint-plugin-unicorn": "15.0.1",
56
+ "eslint-plugin-vue": "6.1.1",
57
57
  "jest": "24.9.0",
58
- "prettier": "1.18.2",
58
+ "prettier": "1.19.1",
59
59
  "replace": "1.1.1",
60
60
  "rimraf": "3.0.0",
61
- "typescript": "3.6.4"
61
+ "typescript": "3.7.4"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "eslint": ">=3.14.1"
package/vue.js CHANGED
@@ -3,18 +3,21 @@
3
3
  module.exports = {
4
4
  rules: {
5
5
  "vue/html-self-closing": 0,
6
+ "vue/max-len": 0,
6
7
 
7
8
  "vue/array-bracket-spacing": "off",
8
9
  "vue/arrow-spacing": "off",
9
10
  "vue/block-spacing": "off",
10
11
  "vue/brace-style": "off",
11
12
  "vue/comma-dangle": "off",
13
+ "vue/dot-location": "off",
12
14
  "vue/html-closing-bracket-newline": "off",
13
15
  "vue/html-closing-bracket-spacing": "off",
14
16
  "vue/html-end-tags": "off",
15
17
  "vue/html-indent": "off",
16
18
  "vue/html-quotes": "off",
17
19
  "vue/key-spacing": "off",
20
+ "vue/keyword-spacing": "off",
18
21
  "vue/max-attributes-per-line": "off",
19
22
  "vue/multiline-html-element-content-newline": "off",
20
23
  "vue/mustache-interpolation-spacing": "off",