eslint-config-prettier 2.9.0 → 2.10.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 +9 -0
- package/README.md +4 -4
- package/flowtype.js +1 -0
- package/package.json +2 -2
- package/react.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
### Version 2.10.0 (2018-08-13)
|
|
2
|
+
|
|
3
|
+
- Added: [flowtype/boolean-style]. Thanks to Mayank Agarwal (@Mayank1791989)!
|
|
4
|
+
- Added: [react/jsx-child-element-spacing]
|
|
5
|
+
- Added: [react/jsx-props-no-multi-spaces]
|
|
6
|
+
|
|
1
7
|
### Version 2.9.0 (2017-11-26)
|
|
2
8
|
|
|
3
9
|
- Added: The [implicit-arrow-linebreak] rule.
|
|
@@ -145,6 +151,7 @@
|
|
|
145
151
|
[eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype
|
|
146
152
|
[eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react
|
|
147
153
|
[eslint-plugin-standard]: https://github.com/xjamundx/eslint-plugin-standard
|
|
154
|
+
[flowtype/boolean-style]: https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-boolean-style
|
|
148
155
|
[function-paren-newline]: https://eslint.org/docs/rules/function-paren-newline
|
|
149
156
|
[implicit-arrow-linebreak]: https://eslint.org/docs/rules/implicit-arrow-linebreak
|
|
150
157
|
[indent-legacy]: https://eslint.org/docs/rules/indent-legacy
|
|
@@ -160,8 +167,10 @@
|
|
|
160
167
|
[nonblock-statement-body-position]: https://eslint.org/docs/rules/nonblock-statement-body-position
|
|
161
168
|
[one-var-declaration-per-line]: https://eslint.org/docs/rules/one-var-declaration-per-line
|
|
162
169
|
[prettier]: https://github.com/prettier
|
|
170
|
+
[react/jsx-child-element-spacing]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-child-element-spacing.md
|
|
163
171
|
[react/jsx-closing-tag-location]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md
|
|
164
172
|
[react/jsx-one-expression-per-line]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-one-expression-per-line.md
|
|
173
|
+
[react/jsx-props-no-multi-spaces]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-multi-spaces.md
|
|
165
174
|
[semi-style]: https://eslint.org/docs/rules/semi-style
|
|
166
175
|
[switch-colon-spacing]: https://eslint.org/docs/rules/switch-colon-spacing
|
|
167
176
|
[template-tag-spacing]: https://eslint.org/docs/rules/template-tag-spacing
|
package/README.md
CHANGED
|
@@ -190,9 +190,9 @@ if (result) {
|
|
|
190
190
|
}
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
-
If you like this rule, it can be used just fine with Prettier as long as add
|
|
194
|
-
extra configuration to allow comments at the start and end of blocks,
|
|
195
|
-
and arrays.
|
|
193
|
+
If you like this rule, it can be used just fine with Prettier as long as you add
|
|
194
|
+
some extra configuration to allow comments at the start and end of blocks,
|
|
195
|
+
objects and arrays.
|
|
196
196
|
|
|
197
197
|
Example configuration:
|
|
198
198
|
|
|
@@ -449,7 +449,7 @@ eslint-config-prettier has been tested with:
|
|
|
449
449
|
- ESLint 4.12.0 (eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x)
|
|
450
450
|
- prettier 1.8.2
|
|
451
451
|
- eslint-plugin-flowtype 2.39.1
|
|
452
|
-
- eslint-plugin-react 7.
|
|
452
|
+
- eslint-plugin-react 7.10.0
|
|
453
453
|
- eslint-plugin-standard 3.0.1
|
|
454
454
|
|
|
455
455
|
Have new rules been added since those versions? Have we missed any rules? Is
|
package/flowtype.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-prettier",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.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,7 +40,7 @@
|
|
|
40
40
|
"eslint-config-google": "^0.9.1",
|
|
41
41
|
"eslint-plugin-flowtype": "^2.39.1",
|
|
42
42
|
"eslint-plugin-prettier": "^2.3.1",
|
|
43
|
-
"eslint-plugin-react": "^7.
|
|
43
|
+
"eslint-plugin-react": "^7.10.0",
|
|
44
44
|
"eslint-plugin-standard": "^3.0.1",
|
|
45
45
|
"prettier": "^1.8.2",
|
|
46
46
|
"rimraf": "^2.6.2"
|
package/react.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
rules: {
|
|
5
|
+
"react/jsx-child-element-spacing": "off",
|
|
5
6
|
"react/jsx-closing-bracket-location": "off",
|
|
6
7
|
"react/jsx-closing-tag-location": "off",
|
|
7
8
|
"react/jsx-curly-spacing": "off",
|
|
@@ -11,6 +12,7 @@ module.exports = {
|
|
|
11
12
|
"react/jsx-indent-props": "off",
|
|
12
13
|
"react/jsx-max-props-per-line": "off",
|
|
13
14
|
"react/jsx-one-expression-per-line": "off",
|
|
15
|
+
"react/jsx-props-no-multi-spaces": "off",
|
|
14
16
|
"react/jsx-space-before-closing": "off",
|
|
15
17
|
"react/jsx-tag-spacing": "off",
|
|
16
18
|
"react/jsx-wrap-multilines": "off"
|