Skip to content

Commit 3636902

Browse files
author
aMarCruz
committed
v0.12.1
1 parent 6e8e50b commit 3636902

File tree

3 files changed

+56
-43
lines changed

3 files changed

+56
-43
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog of eslint-plugin-prettierx
22

3+
## \[0.12.1] - 2020-05-28
4+
5+
This is the last version with support for ESLint 6.x and typescript-eslint v2.x
6+
7+
### Added
8+
9+
- typescript version >= 3.2 in `peerDependencies` to allow compatibility with typescript-eslint v2.34
10+
11+
### Changed
12+
13+
- Updated README.md, now includes default for Prettier v2
14+
- Updated dependencies
15+
- Use "^" instead "~" in the Prettierx version of `dependencies`
16+
317
## \[0.12.0] - 2020-05-15
418

519
### Added

README.md

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Format your code with ESLint using [Prettierx](https://github.com/brodybits/pret
99

1010
For use with ESLint v6.8.0 as minimum, for ESLint v5.x use eslint-config-prettierx 0.11 or bellow
1111

12-
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)
12+
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)
1313

1414
## Note
1515

@@ -67,14 +67,14 @@ module.exports = {
6767
'prettierx',
6868
],
6969
extends: [
70-
// optional, the eslint recommended config
70+
// OPTIONAL: the eslint recommended config
7171
'eslint:recommended',
72-
// 2. configs to enable plugin rules
72+
// OPTIONAL: configs to enable plugin rules
7373
'plugin:react/recommended',
7474
'plugin:@typescript-eslint/recommended',
75-
// 3. prettierx settings with the "standardx" style
75+
// 2. prettierx settings with the "standardx" style
7676
'plugin:prettierx/standardx',
77-
// 4. add exclusions for additional plugins
77+
// 3. add exclusions for additional plugins
7878
'plugin:prettierx/@typescript-eslint',
7979
'plugin:prettierx/react',
8080
],
@@ -113,35 +113,33 @@ The _presets_ of eslint-plugin-prettierx are special ESLint configs that set the
113113

114114
These are the prettierx [options](#options) used for each preset:
115115

116-
|   | default\* | standardx | standardize |
117-
| -------------------------- | ----------- | ----------- | ------------ |
118-
| `alignObjectProperties` | false | false | false |
119-
| `alignTernaryLines` | true | false | false |
120-
| `arrowParens` | "avoid | "avoid | "avoid" |
121-
| `bracketSpacing` | true | true | true |
122-
| `breakBeforeElse` | false | false | false |
123-
| `endOfLine` | "auto" | "lf" | "lf" |
124-
| `generatorStarSpacing` | false | true | true |
125-
| `indentChains` | true | true | true |
126-
| `insertPragma` | false | false | false |
127-
| `jsxBracketSameLine` | false | false | false |
128-
| `jsxSingleQuote` | false | true | false |
129-
| `parenSpacing` | false | false | false |
130-
| `parser` | "babel | "babel | "babel" |
131-
| `printWidth` | 80 | 80 | 92 |
132-
| `quoteProps` | "as-needed" | "as-needed" | "consistent" |
133-
| `requirePragma` | false | false | false |
134-
| `semi` | true | false | false |
135-
| `singleQuote` | false | true | true |
136-
| `spaceBeforeFunctionParen` | false | true | true |
137-
| `tabWidth` | 2 | 2 | 2 |
138-
| `trailingComma` | "none" | "none" | "es5" |
139-
| `useTabs` | false | false | false |
140-
| `yieldStarSpacing` | false | true | true |
141-
142-
\* **defaults for Prettier 1.19.1**
143-
144-
You can override individual options through a .prettierrc or .editorconfig file or through the "prettierx/options" rule of your ESLint config.
116+
|   | Prettier 1.x | Prettier 2.x | standardx | standardize |
117+
| -------------------------- | ------------ | ------------ | ----------- | ------------ |
118+
| `alignObjectProperties` | false | false | false | false |
119+
| `alignTernaryLines` | true | true | false | false |
120+
| `arrowParens` | "avoid" | "always" | "avoid" | "avoid" |
121+
| `bracketSpacing` | true | true | true | true |
122+
| `breakBeforeElse` | false | false | false | false |
123+
| `endOfLine` | "auto" | "lf" | "lf" | "lf" |
124+
| `generatorStarSpacing` | false | false | true | true |
125+
| `indentChains` | true | true | true | true |
126+
| `insertPragma` | false | false | - | false |
127+
| `jsxBracketSameLine` | false | false | false | false |
128+
| `jsxSingleQuote` | false | false | true | false |
129+
| `parenSpacing` | false | false | false | false |
130+
| `parser` | "babel" | "babel" | "babel" | "babel" |
131+
| `printWidth` | 80 | 80 | 80 | 92 |
132+
| `quoteProps` | "as-needed" | "as-needed" | "as-needed" | "consistent" |
133+
| `requirePragma` | false | false | - | false |
134+
| `semi` | true | true | false | false |
135+
| `singleQuote` | false | false | true | true |
136+
| `spaceBeforeFunctionParen` | false | false | true | true |
137+
| `tabWidth` | 2 | 2 | 2 | 2 |
138+
| `trailingComma` | "none" | "es5" | "none" | "es5" |
139+
| `useTabs` | false | false | false | false |
140+
| `yieldStarSpacing` | false | false | true | true |
141+
142+
You can override individual options through a .prettierrc(.json) or .editorconfig file or through the "`prettierx/options`" rule of your ESLint config.
145143

146144
### Bundle Presets
147145

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-prettierx",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "Format your code with ESLint using Prettierx, with presets for Prettier and StandardJS",
55
"keywords": [
66
"eslint",
@@ -15,7 +15,7 @@
1515
"author": "aMarCruz <[email protected]>",
1616
"main": "lib/index.js",
1717
"engines": {
18-
"node": "^10.12.0 || >=12.0.0"
18+
"node": "^10.13.0 || >=12.0.0"
1919
},
2020
"bin": {
2121
"list-eslint-config": "./bin/list-eslint-config.js"
@@ -37,20 +37,21 @@
3737
"dependencies": {
3838
"eslint-config-prettier": "~6.11.0",
3939
"prettier-linter-helpers": "~1.0.0",
40-
"prettierx": "~0.12.0"
40+
"prettierx": "^0.12.0"
4141
},
4242
"devDependencies": {
4343
"@types/eslint": "~6.8.1",
44-
"@types/node": "~14.0.1",
45-
"@types/prettier": "~2.0.0",
46-
"@typescript-eslint/eslint-plugin": "~2.33.0",
47-
"@typescript-eslint/parser": "~2.33.0",
44+
"@types/node": "~14.0.5",
45+
"@types/prettier": "<2.0.0",
46+
"@typescript-eslint/eslint-plugin": "~2.34.0",
47+
"@typescript-eslint/parser": "~2.34.0",
4848
"eslint": "~6.8.0",
4949
"eslint-config-standardize": "~0.6.1",
50-
"typescript": "~3.9.2"
50+
"typescript": "~3.9.3"
5151
},
5252
"peerDependencies": {
53-
"eslint": ">=6.8.0"
53+
"eslint": ">=6.8.0",
54+
"typescript": ">=3.2.0"
5455
},
5556
"license": "MIT"
5657
}

0 commit comments

Comments
 (0)