eslint-config-prettier
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -130,12 +130,13 @@ #!/usr/bin/env node | ||
const message = specialFlaggedRuleNames.length === 0 | ||
? baseMessage | ||
: [ | ||
baseMessage, | ||
"", | ||
"However, the following rules are enabled but cannot be automatically checked. See:", | ||
SPECIAL_RULES_URL, | ||
"", | ||
printRuleNames(specialFlaggedRuleNames) | ||
].join("\n"); | ||
const message = | ||
specialFlaggedRuleNames.length === 0 | ||
? baseMessage | ||
: [ | ||
baseMessage, | ||
"", | ||
"However, the following rules are enabled but cannot be automatically checked. See:", | ||
SPECIAL_RULES_URL, | ||
"", | ||
printRuleNames(specialFlaggedRuleNames) | ||
].join("\n"); | ||
@@ -198,5 +199,9 @@ return { | ||
function printRuleNames(ruleNames) { | ||
return ruleNames.slice().sort().map(ruleName => `- ${ruleName}`).join("\n"); | ||
return ruleNames | ||
.slice() | ||
.sort() | ||
.map(ruleName => `- ${ruleName}`) | ||
.join("\n"); | ||
} | ||
exports.processString = processString; |
@@ -0,1 +1,6 @@ | ||
### Version 2.4.0 (2017-09-02) | ||
- Added: The [function-paren-newline] rule (new in [ESLint 4.6.0]). Thanks to | ||
Pierre Vanduynslager (@vanduynslagerp)! | ||
### Version 2.3.0 (2017-06-30) | ||
@@ -110,6 +115,9 @@ | ||
[ESLint 4.0.0]: http://eslint.org/blog/2017/06/eslint-v4.0.0-released | ||
[ESLint 4.6.0]: https://eslint.org/blog/2017/09/eslint-v4.6.0-released | ||
[array-bracket-newline]: http://eslint.org/docs/rules/array-bracket-newline | ||
[array-element-newline]: http://eslint.org/docs/rules/array-element-newline | ||
[curly]: https://eslint.org/docs/rules/curly | ||
[eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype | ||
[eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react | ||
[function-paren-newline]: https://eslint.org/docs/rules/function-paren-newline | ||
[indent-legacy]: http://eslint.org/docs/rules/indent-legacy | ||
@@ -116,0 +124,0 @@ [no-confusing-arrow-special]: https://github.com/prettier/eslint-config-prettier/blob/08ac5bcc25c9cdc71864b4a1e4191e7d28dd2bc2/README.md#no-confusing-arrow |
@@ -29,2 +29,3 @@ "use strict"; | ||
"func-call-spacing": "off", | ||
"function-paren-newline": "off", | ||
"generator-star": "off", | ||
@@ -31,0 +32,0 @@ "generator-star-spacing": "off", |
{ | ||
"name": "eslint-config-prettier", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"license": "MIT", | ||
@@ -34,11 +34,11 @@ "author": "Simon Lydell", | ||
"devDependencies": { | ||
"ava": "^0.19.1", | ||
"ava": "^0.22.0", | ||
"babel-eslint": "^7.2.3", | ||
"dedent": "^0.7.0", | ||
"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", | ||
"eslint": "^4.6.0", | ||
"eslint-config-google": "^0.9.1", | ||
"eslint-plugin-flowtype": "^2.35.1", | ||
"eslint-plugin-prettier": "^2.2.0", | ||
"eslint-plugin-react": "^7.3.0", | ||
"prettier": "^1.6.1", | ||
"rimraf": "^2.6.1" | ||
@@ -45,0 +45,0 @@ }, |
@@ -323,6 +323,6 @@ # eslint-config-prettier [![Build Status][travis-badge]][travis] | ||
- 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 | ||
- ESLint 4.6.0 (eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x) | ||
- prettier 1.6.1 | ||
- eslint-plugin-flowtype 2.35.1 | ||
- eslint-plugin-react 7.3.0 | ||
@@ -329,0 +329,0 @@ Have new rules been added since those versions? Have we missed any rules? Is |
26895
319