Skip to content
Merged
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
15 changes: 0 additions & 15 deletions .changeset/eslint-config-peer-deps.md

This file was deleted.

24 changes: 20 additions & 4 deletions packages/eslint-config-dx-team/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @fingerprintjs/eslint-config-dx-team

## 3.0.0

### Major Changes

- Move `eslint` and `typescript-eslint` to peer dependencies

Under strict package managers (pnpm v10+), transitive dependencies are no longer exposed at the project root, which broke `eslint` bin resolution and `import ... from 'typescript-eslint'` in consuming projects. Declaring them as peers guarantees a single, project-controlled instance of each and avoids "multiple ESLint instances" errors.

**Breaking change:** consumers must now install `eslint` and `typescript-eslint` themselves (plus `typescript`, which `typescript-eslint` requires as a peer):

```bash
pnpm install -D eslint typescript-eslint typescript
```

The redundant `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` direct dependencies were also removed (they are provided by the `typescript-eslint` umbrella package). `eslint-config-prettier`, `eslint-plugin-prettier`, and `globals` remain bundled. ([3832930](https://github.com/fingerprintjs/dx-team-toolkit/commit/38329309267ff0e53e35583410aaaf311cc4ad59))

## 2.0.0

### Major Changes
Expand All @@ -15,15 +31,15 @@
**`eslint.config.js`** (CommonJS):

```js
const dxTeamConfig = require('@fingerprintjs/eslint-config-dx-team')
module.exports = [...dxTeamConfig]
const dxTeamConfig = require("@fingerprintjs/eslint-config-dx-team");
module.exports = [...dxTeamConfig];
```

**`eslint.config.mjs`** (ESM):

```js
import dxTeamConfig from '@fingerprintjs/eslint-config-dx-team'
export default [...dxTeamConfig]
import dxTeamConfig from "@fingerprintjs/eslint-config-dx-team";
export default [...dxTeamConfig];
```

2. Fix new lint errors from the updated `@typescript-eslint/strict` preset (upgraded from v6 to v8):
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-dx-team/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fingerprintjs/eslint-config-dx-team",
"version": "2.0.0",
"version": "3.0.0",
"private": false,
"description": "Custom eslint config for DX Team",
"repository": {
Expand Down
Loading