eslint-config-prettier 3.5.0 → 3.6.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 3.6.0 (2019-01-19)
2
+
3
+ - Added: Support for [eslint-plugin-babel]. Thanks to Matija Marohnić
4
+ (@silvenon)!
5
+
1
6
  ### Version 3.5.0 (2019-01-16)
2
7
 
3
8
  - Fixed: The eslint-plugin-vue change from 3.4.0 has been reverted. That change
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 Simon Lydell
3
+ Copyright (c) 2017, 2018, 2019 Simon Lydell and contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -5,6 +5,9 @@ Turns off all rules that are unnecessary or might conflict with [Prettier].
5
5
  This lets you use you favorite shareable config without letting its stylistic
6
6
  choices get in the way when using Prettier.
7
7
 
8
+ Note that this config _only_ turns rules _off,_ so it only makes sense using
9
+ it together with some other config.
10
+
8
11
  ## Contents
9
12
 
10
13
  <!-- START doctoc generated TOC please keep comment here to allow auto update -->
@@ -43,7 +46,7 @@ Follow the instructions over there. This is optional, though.
43
46
  Install eslint-config-prettier:
44
47
 
45
48
  ```
46
- $ npm install --save-dev eslint-config-prettier
49
+ npm install --save-dev eslint-config-prettier
47
50
  ```
48
51
 
49
52
  Then, add eslint-config-prettier to the "extends" array in your `.eslintrc.*`
@@ -53,6 +56,7 @@ configs.
53
56
  ```json
54
57
  {
55
58
  "extends": [
59
+ "some-other-config-you-use",
56
60
  "prettier"
57
61
  ]
58
62
  }
@@ -60,6 +64,7 @@ configs.
60
64
 
61
65
  A few ESLint plugins are supported as well:
62
66
 
67
+ - [eslint-plugin-babel]
63
68
  - [eslint-plugin-flowtype]
64
69
  - [eslint-plugin-react]
65
70
  - [eslint-plugin-standard]
@@ -72,7 +77,9 @@ Add extra exclusions for the plugins you use like so:
72
77
  ```json
73
78
  {
74
79
  "extends": [
80
+ "some-other-config-you-use",
75
81
  "prettier",
82
+ "prettier/babel",
76
83
  "prettier/flowtype",
77
84
  "prettier/react",
78
85
  "prettier/standard",
@@ -127,6 +134,7 @@ Exit codes:
127
134
  "plugin:unicorn/recommended",
128
135
  "plugin:vue/recommended",
129
136
  "prettier",
137
+ "prettier/babel",
130
138
  "prettier/flowtype",
131
139
  "prettier/react",
132
140
  "prettier/standard",
@@ -135,6 +143,7 @@ Exit codes:
135
143
  "prettier/vue"
136
144
  ],
137
145
  "plugins": [
146
+ "babel",
138
147
  "flowtype",
139
148
  "react",
140
149
  "prettier",
@@ -498,6 +507,8 @@ Example configuration:
498
507
 
499
508
  ### [quotes]
500
509
 
510
+ (The following applies to [babel/quotes] as well.)
511
+
501
512
  **This rule requires certain options and certain Prettier options.**
502
513
 
503
514
  Usually, you don’t need this rule at all. But there are two cases where it could
@@ -705,8 +716,9 @@ eslint-config-prettier has been tested with:
705
716
  - eslint-config-prettier 2.10.0 and older were tested with ESLint 4.x
706
717
  - eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
707
718
  - prettier 1.15.3
719
+ - eslint-plugin-babel 5.3.0
708
720
  - eslint-plugin-flowtype 3.2.1
709
- - eslint-plugin-react 7.12.3
721
+ - eslint-plugin-react 7.12.4
710
722
  - eslint-plugin-standard 4.0.0
711
723
  - eslint-plugin-typescript 1.0.0-rc.1
712
724
  - eslint-plugin-unicorn 7.0.0
@@ -738,7 +750,7 @@ Then, create `test-lint/foobar.js`:
738
750
  "use strict";
739
751
 
740
752
  // Prettier does not want spaces before the parentheses, but
741
- // some-foobar-config wants one.
753
+ // `plugin:foobar/recommended` wants one.
742
754
  console.log();
743
755
  ```
744
756
 
@@ -778,7 +790,9 @@ several other npm scripts:
778
790
 
779
791
  [ESlint 5.7.0]: https://eslint.org/blog/2018/10/eslint-v5.7.0-released
780
792
  [Prettier]: https://github.com/prettier/prettier
793
+ [babel/quotes]: https://github.com/babel/eslint-plugin-babel#rules
781
794
  [curly]: https://eslint.org/docs/rules/curly
795
+ [eslint-plugin-babel]: https://github.com/babel/eslint-plugin-babel
782
796
  [eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype
783
797
  [eslint-plugin-prettier]: https://github.com/prettier/eslint-plugin-prettier
784
798
  [eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react
package/babel.js ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ rules: {
5
+ "babel/quotes": 0,
6
+
7
+ "babel/object-curly-spacing": "off",
8
+ "babel/semi": "off"
9
+ }
10
+ };
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "eslint-config-prettier",
3
- "version": "3.5.0",
3
+ "version": "3.6.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.",
7
7
  "repository": "prettier/eslint-config-prettier",
8
8
  "files": [
9
9
  "bin/",
10
+ "babel.js",
10
11
  "flowtype.js",
11
12
  "index.js",
12
13
  "react.js",
@@ -42,9 +43,10 @@
42
43
  "doctoc": "1.4.0",
43
44
  "eslint": "5.12.0",
44
45
  "eslint-config-google": "0.11.0",
46
+ "eslint-plugin-babel": "5.3.0",
45
47
  "eslint-plugin-flowtype": "3.2.1",
46
48
  "eslint-plugin-prettier": "3.0.1",
47
- "eslint-plugin-react": "7.12.3",
49
+ "eslint-plugin-react": "7.12.4",
48
50
  "eslint-plugin-standard": "4.0.0",
49
51
  "eslint-plugin-typescript": "1.0.0-rc.1",
50
52
  "eslint-plugin-unicorn": "7.0.0",
@@ -53,7 +55,7 @@
53
55
  "prettier": "1.15.3",
54
56
  "replace": "1.0.1",
55
57
  "rimraf": "2.6.3",
56
- "typescript": "^3.2.2"
58
+ "typescript": "3.2.4"
57
59
  },
58
60
  "peerDependencies": {
59
61
  "eslint": ">=3.14.1"