Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/cyan-towns-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"eslint-plugin-prettier": major
---

Remove `@types/eslint` from `peerDependencies` to avoid conflicts with ESLint 9 (types are bundled there).
If you're on ESLint 8 and rely on typings, add `@types/eslint` to your project's `devDependencies`. See #762.

Also bumps to Node >= 18.18.0
14 changes: 3 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ jobs:
eslint:
- 9
- 8
include:
- node: 16
eslint: 8
- node: 14
eslint: 8

steps:
- name: Checkout Repo
Expand All @@ -37,7 +32,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0

- name: Setup Node.js ${{ matrix.node }}
- name: Setup Node.js ${{ matrix.eslint }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node }}
Expand All @@ -53,8 +48,5 @@ jobs:
- name: Test
run: pnpm mocha

- name: Perf
# Skip on node 14, as eslint-plugin-n contains syntax that doesn't work
# with node 14
if: ${{ matrix.node != 14 }}
run: TIMING=1 pnpm lint
- name: Lint
run: pnpm lint
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
],
"funding": "https://opencollective.com/eslint-plugin-prettier",
"license": "MIT",
"packageManager": "pnpm@7.33.5",
"packageManager": "pnpm@10.17.1",
"engines": {
"node": "^14.18.0 || >=16.0.0"
"node": ">=18.18.0"
},
"main": "eslint-plugin-prettier.js",
"types": "eslint-plugin-prettier.d.ts",
Expand Down Expand Up @@ -49,15 +49,11 @@
"test": "pnpm lint && mocha"
},
"peerDependencies": {
"@types/eslint": ">=8.0.0",
"eslint": ">=8.0.0",
"eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0",
"prettier": ">=3.0.0"
},
"peerDependenciesMeta": {
"@types/eslint": {
"optional": true
},
"eslint-config-prettier": {
"optional": true
}
Expand Down
Loading
Loading