From 363690240313a141d99633b2c67d1deee998a085 Mon Sep 17 00:00:00 2001 From: aMarCruz Date: Thu, 28 May 2020 11:15:02 -0500 Subject: [PATCH] v0.12.1 --- CHANGELOG.md | 14 +++++++++++ README.md | 66 +++++++++++++++++++++++++--------------------------- package.json | 19 ++++++++------- 3 files changed, 56 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d916e41..6f1e76b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog of eslint-plugin-prettierx +## \[0.12.1] - 2020-05-28 + +This is the last version with support for ESLint 6.x and typescript-eslint v2.x + +### Added + +- typescript version >= 3.2 in `peerDependencies` to allow compatibility with typescript-eslint v2.34 + +### Changed + +- Updated README.md, now includes default for Prettier v2 +- Updated dependencies +- Use "^" instead "~" in the Prettierx version of `dependencies` + ## \[0.12.0] - 2020-05-15 ### Added diff --git a/README.md b/README.md index 9a8464c..41aa346 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Format your code with ESLint using [Prettierx](https://github.com/brodybits/pret For use with ESLint v6.8.0 as minimum, for ESLint v5.x use eslint-config-prettierx 0.11 or bellow -Minimum NodeJS version supported: NodeJS 10.12.0 or 12.0.0 and above, as described in [brodybits/prettierx#6](https://github.com/brodybits/prettierx/issues/6) +Minimum NodeJS version supported: NodeJS 10.13.0 or 12.0.0 and above, as described in [brodybits/prettierx#6](https://github.com/brodybits/prettierx/issues/6) ## Note @@ -67,14 +67,14 @@ module.exports = { 'prettierx', ], extends: [ - // optional, the eslint recommended config + // OPTIONAL: the eslint recommended config 'eslint:recommended', - // 2. configs to enable plugin rules + // OPTIONAL: configs to enable plugin rules 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', - // 3. prettierx settings with the "standardx" style + // 2. prettierx settings with the "standardx" style 'plugin:prettierx/standardx', - // 4. add exclusions for additional plugins + // 3. add exclusions for additional plugins 'plugin:prettierx/@typescript-eslint', 'plugin:prettierx/react', ], @@ -113,35 +113,33 @@ The _presets_ of eslint-plugin-prettierx are special ESLint configs that set the These are the prettierx [options](#options) used for each preset: -|   | default\* | standardx | standardize | -| -------------------------- | ----------- | ----------- | ------------ | -| `alignObjectProperties` | false | false | false | -| `alignTernaryLines` | true | false | false | -| `arrowParens` | "avoid | "avoid | "avoid" | -| `bracketSpacing` | true | true | true | -| `breakBeforeElse` | false | false | false | -| `endOfLine` | "auto" | "lf" | "lf" | -| `generatorStarSpacing` | false | true | true | -| `indentChains` | true | true | true | -| `insertPragma` | false | false | false | -| `jsxBracketSameLine` | false | false | false | -| `jsxSingleQuote` | false | true | false | -| `parenSpacing` | false | false | false | -| `parser` | "babel | "babel | "babel" | -| `printWidth` | 80 | 80 | 92 | -| `quoteProps` | "as-needed" | "as-needed" | "consistent" | -| `requirePragma` | false | false | false | -| `semi` | true | false | false | -| `singleQuote` | false | true | true | -| `spaceBeforeFunctionParen` | false | true | true | -| `tabWidth` | 2 | 2 | 2 | -| `trailingComma` | "none" | "none" | "es5" | -| `useTabs` | false | false | false | -| `yieldStarSpacing` | false | true | true | - -\* **defaults for Prettier 1.19.1** - -You can override individual options through a .prettierrc or .editorconfig file or through the "prettierx/options" rule of your ESLint config. +|   | Prettier 1.x | Prettier 2.x | standardx | standardize | +| -------------------------- | ------------ | ------------ | ----------- | ------------ | +| `alignObjectProperties` | false | false | false | false | +| `alignTernaryLines` | true | true | false | false | +| `arrowParens` | "avoid" | "always" | "avoid" | "avoid" | +| `bracketSpacing` | true | true | true | true | +| `breakBeforeElse` | false | false | false | false | +| `endOfLine` | "auto" | "lf" | "lf" | "lf" | +| `generatorStarSpacing` | false | false | true | true | +| `indentChains` | true | true | true | true | +| `insertPragma` | false | false | - | false | +| `jsxBracketSameLine` | false | false | false | false | +| `jsxSingleQuote` | false | false | true | false | +| `parenSpacing` | false | false | false | false | +| `parser` | "babel" | "babel" | "babel" | "babel" | +| `printWidth` | 80 | 80 | 80 | 92 | +| `quoteProps` | "as-needed" | "as-needed" | "as-needed" | "consistent" | +| `requirePragma` | false | false | - | false | +| `semi` | true | true | false | false | +| `singleQuote` | false | false | true | true | +| `spaceBeforeFunctionParen` | false | false | true | true | +| `tabWidth` | 2 | 2 | 2 | 2 | +| `trailingComma` | "none" | "es5" | "none" | "es5" | +| `useTabs` | false | false | false | false | +| `yieldStarSpacing` | false | false | true | true | + +You can override individual options through a .prettierrc(.json) or .editorconfig file or through the "`prettierx/options`" rule of your ESLint config. ### Bundle Presets diff --git a/package.json b/package.json index ea5b6a9..95dbe93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-prettierx", - "version": "0.12.0", + "version": "0.12.1", "description": "Format your code with ESLint using Prettierx, with presets for Prettier and StandardJS", "keywords": [ "eslint", @@ -15,7 +15,7 @@ "author": "aMarCruz ", "main": "lib/index.js", "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^10.13.0 || >=12.0.0" }, "bin": { "list-eslint-config": "./bin/list-eslint-config.js" @@ -37,20 +37,21 @@ "dependencies": { "eslint-config-prettier": "~6.11.0", "prettier-linter-helpers": "~1.0.0", - "prettierx": "~0.12.0" + "prettierx": "^0.12.0" }, "devDependencies": { "@types/eslint": "~6.8.1", - "@types/node": "~14.0.1", - "@types/prettier": "~2.0.0", - "@typescript-eslint/eslint-plugin": "~2.33.0", - "@typescript-eslint/parser": "~2.33.0", + "@types/node": "~14.0.5", + "@types/prettier": "<2.0.0", + "@typescript-eslint/eslint-plugin": "~2.34.0", + "@typescript-eslint/parser": "~2.34.0", "eslint": "~6.8.0", "eslint-config-standardize": "~0.6.1", - "typescript": "~3.9.2" + "typescript": "~3.9.3" }, "peerDependencies": { - "eslint": ">=6.8.0" + "eslint": ">=6.8.0", + "typescript": ">=3.2.0" }, "license": "MIT" }