eslint-config-prettier
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -65,4 +65,6 @@ #!/usr/bin/env node | ||
if ( | ||
!(Object.prototype.toString.call(config) === "[object Object]" && | ||
Object.prototype.toString.call(config.rules) === "[object Object]") | ||
!( | ||
Object.prototype.toString.call(config) === "[object Object]" && | ||
Object.prototype.toString.call(config.rules) === "[object Object]" | ||
) | ||
) { | ||
@@ -69,0 +71,0 @@ return { |
@@ -0,1 +1,10 @@ | ||
### Version 2.2.0 (2017-06-17) | ||
- Added: New rules from [ESLint 4.0.0]: | ||
- [array-element-newline] | ||
- [array-bracket-newline] | ||
- [semi-style] | ||
- [switch-colon-spacing] | ||
- Added: [react/jsx-closing-tag-location] | ||
### Version 2.1.1 (2017-05-20) | ||
@@ -95,11 +104,17 @@ | ||
[ESLint 4.0.0]: http://eslint.org/blog/2017/06/eslint-v4.0.0-released | ||
[array-bracket-newline]: http://eslint.org/docs/rules/array-bracket-newline | ||
[array-element-newline]: http://eslint.org/docs/rules/array-element-newline | ||
[eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype | ||
[eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react | ||
[no-confusing-arrow-special]: https://github.com/prettier/eslint-config-prettier/blob/08ac5bcc25c9cdc71864b4a1e4191e7d28dd2bc2/README.md#no-confusing-arrow | ||
[no-confusing-arrow]: http://eslint.org/docs/rules/no-confusing-arrow | ||
[no-confusing-arrow-special]: https://github.com/prettier/eslint-config-prettier/blob/08ac5bcc25c9cdc71864b4a1e4191e7d28dd2bc2/README.md#no-confusing-arrow | ||
[no-tabs-special]: https://github.com/prettier/eslint-config-prettier/blob/dfa6e2b51f11a8001e9e7d38b78f03c7d75175ec/README.md#no-tabs | ||
[no-tabs]: http://eslint.org/docs/rules/no-tabs | ||
[no-tabs-special]: https://github.com/prettier/eslint-config-prettier/blob/dfa6e2b51f11a8001e9e7d38b78f03c7d75175ec/README.md#no-tabs | ||
[nonblock-statement-body-position]: http://eslint.org/docs/rules/nonblock-statement-body-position | ||
[one-var-declaration-per-line]: http://eslint.org/docs/rules/one-var-declaration-per-line | ||
[prettier]: https://github.com/prettier | ||
[react/jsx-closing-tag-location]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md | ||
[semi-style]: http://eslint.org/docs/rules/semi-style | ||
[switch-colon-spacing]: http://eslint.org/docs/rules/switch-colon-spacing | ||
[template-tag-spacing]: http://eslint.org/docs/rules/template-tag-spacing |
@@ -15,3 +15,5 @@ "use strict"; | ||
// The rest are rules that you never need to enable when using Prettier. | ||
"array-bracket-newline": "off", | ||
"array-bracket-spacing": "off", | ||
"array-element-newline": "off", | ||
"arrow-parens": "off", | ||
@@ -61,2 +63,3 @@ "arrow-spacing": "off", | ||
"semi-spacing": "off", | ||
"semi-style": "off", | ||
"space-after-function-name": "off", | ||
@@ -74,2 +77,3 @@ "space-after-keywords": "off", | ||
"space-unary-word-ops": "off", | ||
"switch-colon-spacing": "off", | ||
"template-curly-spacing": "off", | ||
@@ -76,0 +80,0 @@ "template-tag-spacing": "off", |
{ | ||
"name": "eslint-config-prettier", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"license": "MIT", | ||
@@ -37,8 +37,8 @@ "author": "Simon Lydell", | ||
"dedent": "^0.7.0", | ||
"eslint": "^3.19.0", | ||
"eslint-config-google": "^0.7.1", | ||
"eslint-plugin-flowtype": "^2.33.0", | ||
"eslint-plugin-prettier": "^2.1.1", | ||
"eslint-plugin-react": "^7.0.1", | ||
"prettier": "^1.3.1", | ||
"eslint": "^4.0.0", | ||
"eslint-config-google": "^0.8.0", | ||
"eslint-plugin-flowtype": "^2.34.0", | ||
"eslint-plugin-prettier": "^2.1.2", | ||
"eslint-plugin-react": "^7.1.0", | ||
"prettier": "^1.4.4", | ||
"rimraf": "^2.6.1" | ||
@@ -45,0 +45,0 @@ }, |
@@ -6,2 +6,3 @@ "use strict"; | ||
"react/jsx-closing-bracket-location": "off", | ||
"react/jsx-closing-tag-location": "off", | ||
"react/jsx-curly-spacing": "off", | ||
@@ -8,0 +9,0 @@ "react/jsx-equals-spacing": "off", |
@@ -323,6 +323,6 @@ # eslint-config-prettier [![Build Status][travis-badge]][travis] | ||
- ESLint 3.19.0 | ||
- prettier 1.3.1 | ||
- eslint-plugin-flowtype 2.33.0 | ||
- eslint-plugin-react 7.0.1 | ||
- ESLint 4.0.0 (eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x) | ||
- prettier 1.4.4 | ||
- eslint-plugin-flowtype 2.34.0 | ||
- eslint-plugin-react 7.1.0 | ||
@@ -329,0 +329,0 @@ Have new rules been added since those versions? Have we missed any rules? Is |
26256
312