Skip to content

Commit

Permalink
v0.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarCruz committed May 28, 2020
1 parent 6e8e50b commit 3636902
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 43 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
66 changes: 32 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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',
],
Expand Down Expand Up @@ -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

Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -15,7 +15,7 @@
"author": "aMarCruz <[email protected]>",
"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"
Expand All @@ -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"
}

0 comments on commit 3636902

Please sign in to comment.