Skip to content

Commit 910aeb6

Browse files
authored
feat!: bump eslint, node and prettier versions, add types support (#508)
1 parent 21d87ab commit 910aeb6

18 files changed

+4559
-3155
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json",
2+
"$schema": "https://unpkg.com/@changesets/config/schema.json",
33
"changelog": [
44
"@changesets/changelog-github",
55
{

.changeset/old-plants-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-plugin-prettier': major
3+
---
4+
5+
feat!: bump peer eslint to ">=8.0.0" and node to "^14.18.0 || >=16.0.0"

.changeset/orange-eyes-brush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-prettier": major
3+
---
4+
5+
feat!: upgrade to prettier v3

.changeset/pre.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"mode": "pre",
3+
"tag": "alpha",
4+
"initialVersions": {
5+
"eslint-plugin-prettier": "4.2.2"
6+
},
7+
"changesets": []
8+
}

.changeset/quiet-cups-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-prettier": minor
3+
---
4+
5+
feat: add typings support

.eslintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"@1stg",
88
"plugin:eslint-plugin/recommended"
99
],
10+
"parserOptions": {
11+
"project": null
12+
},
1013
"rules": {
1114
"eslint-plugin/report-message-format": [
1215
"error",
@@ -28,7 +31,8 @@
2831
{
2932
"files": "test/*.js",
3033
"rules": {
31-
"no-magic-numbers": "off"
34+
"no-magic-numbers": "off",
35+
"unicorn/prefer-top-level-await": "off"
3236
}
3337
}
3438
]

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
github:
22
- JounQin
33
- 1stG
4-
- rxts
5-
- unts
4+
- rx-ts
5+
- un-ts
66
patreon: 1stG
77
open_collective: prettier
88
custom:

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@ on:
88

99
jobs:
1010
ci:
11-
name: 'Test: Node ${{ matrix.node-version }} - ESLint ${{ matrix.eslint-version }}'
11+
name: Lint and Test on Node ${{ matrix.node-version }}
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
eslint-version:
16-
- 7
17-
- 8
1815
node-version:
19-
- 12
2016
- 14
2117
- 16
18+
- 18
2219

2320
steps:
2421
- uses: actions/checkout@v3
@@ -29,11 +26,8 @@ jobs:
2926
node-version: ${{ matrix.node-version }}
3027
cache: yarn
3128

32-
- name: Use ESLint ${{ matrix.eslint-version }}
33-
run: yarn upgrade eslint@${{ matrix.eslint-version }} --ignore-engines
34-
3529
- name: Install
36-
run: yarn --frozen-lockfile --ignore-engines
30+
run: yarn --frozen-lockfile
3731

3832
- name: Test
3933
run: yarn mocha

.remarkrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"plugins": [
3-
"@1stg/remark-config"
3+
"@1stg/preset"
44
]
55
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ If you’re fixing large of amounts of previously unformatted code, consider tem
139139

140140
- An object with the following options
141141

142-
- `usePrettierrc`: Enables loading of the Prettier configuration file, (default: `true`). May be useful if you are using multiple tools that conflict with each other, or do not wish to mix your ESLint settings with your Prettier configuration.
142+
- `usePrettierrc`: Enables loading of the Prettier configuration file, (default: `true`). May be useful if you are using multiple tools that conflict with each other, or do not wish to mix your ESLint settings with your Prettier configuration. And also, it is possible to run prettier without loading the prettierrc config file [via the CLI's --no-config option](https://prettier.io/docs/en/cli.html#--no-config) or through the API by [calling prettier.format() without passing through the options generated by calling resolveConfig](https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options).
143143

144144
```json
145145
{

0 commit comments

Comments
 (0)