Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: Switch to eslint-config-prettier (#14177)

Ben Bachemd44dcdce9f08
diff --git a/packages/config-eslint/base.js b/packages/config-eslint/base.js
index fcd8678986..18b27c64df 100644
--- a/packages/config-eslint/base.js
+++ b/packages/config-eslint/base.js
@@ -2,7 +2,7 @@ import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import turboConfig from "eslint-config-turbo/flat";
-import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
+import eslintConfigPrettier from "eslint-config-prettier";
import langfusePlugin from "@repo/eslint-plugin";
import "eslint-plugin-only-warn";
@@ -27,8 +27,8 @@ export default tseslint.config(
// Turbo monorepo rules
...turboConfig,
- // Prettier (last for rule precedence)
- eslintPluginPrettierRecommended,
+ // Disable ESLint rules that conflict with Prettier formatting.
+ eslintConfigPrettier,
// Global settings
{
diff --git a/packages/config-eslint/next.js b/packages/config-eslint/next.js
index 6ea2a57f14..0a5d1defe8 100644
--- a/packages/config-eslint/next.js
+++ b/packages/config-eslint/next.js
@@ -1,5 +1,5 @@
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
-import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
+import eslintConfigPrettier from "eslint-config-prettier";
import turboConfig from "eslint-config-turbo/flat";
import "eslint-plugin-only-warn";
import langfusePlugin from "@repo/eslint-plugin";
@@ -54,8 +54,8 @@ export default [
},
},
- // Prettier (last)
- eslintPluginPrettierRecommended,
+ // Disable ESLint rules that conflict with Prettier formatting.
+ eslintConfigPrettier,
// Layer repo-specific TS rules on top of Next's built-in flat TS config.
// Next already provides the parser and @typescript-eslint plugin here.
diff --git a/packages/config-eslint/package.json b/packages/config-eslint/package.json
index 150938b930..5edb6a9ea9 100644
--- a/packages/config-eslint/package.json
+++ b/packages/config-eslint/package.json
@@ -21,7 +21,6 @@
"eslint-config-prettier": "^10.1.8",
"eslint-config-turbo": "2.9.14",
"eslint-plugin-only-warn": "^1.1.0",
- "eslint-plugin-prettier": "^5.5.4",
"globals": "^16.0.0",
"typescript-eslint": "^8.57.1"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fa8bf44956..e5db98483b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -122,9 +122,6 @@ importers:
eslint-plugin-only-warn:
specifier: ^1.1.0
version: 1.2.1
- eslint-plugin-prettier:
- specifier: ^5.5.4
globals:
specifier: ^16.0.0
version: 16.5.0
@@ -3586,10 +3583,6 @@ packages:
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
- resolution: {integrity: sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==}
- engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
-
'@playwright/[email protected]':
resolution: {integrity: sha512-6TyEnHgd6SArQO8UO2OMTxshln3QMWBtPGrOCgs3wVEmQmwyuNtB10IZMfmYDE0riwNR1cu4q+pPcxMVtaG3TA==}
engines: {node: '>=18'}
@@ -7442,20 +7435,6 @@ packages:
resolution: {integrity: sha512-j37hwfaQDEOfkZ1Dpvu/HnWLavlzQxQxfbrU/9Jb4R9qzrE1eTYuRJyrxq7LzLRI8miG5FOV6veoUVhx7AI84w==}
- resolution: {integrity: sha512-swNtI95SToIz05YINMA6Ox5R057IMAmWZ26GqPxusAp1TZzj+IdY9tXNWWD3vkF/wEqydCONcwjTFpxybBqZsg==}
- engines: {node: ^14.18.0 || >=16.0.0}
- 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
-
resolution: {integrity: sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==}
engines: {node: '>=18'}
@@ -7644,9 +7623,6 @@ packages:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
- resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==}
-
resolution: {integrity: sha512-G3BSX9cfKttjr+2o1O22tYMLq0DPluZnYtq1rXumE1SpL/F/SLIfHx08WYQoWSIpeMYf8sRbJ8++71+v6Pnxfg==}
@@ -9797,10 +9773,6 @@ packages:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'}
- resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==}
- engines: {node: '>=6.0.0'}
-
resolution: {integrity: sha512-LkphyK3Fw+q2HdMOoiEHWf93fNtYJwfamoKPl7UwtjFQdei/iIBoX11G6j706FzN3ymX9mPVi97qIY8328vdnA==}
engines: {node: '>=20.19'}
@@ -10728,10 +10700,6 @@ packages:
resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}
- resolution: {integrity: sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==}
- engines: {node: ^14.18.0 || >=16.0.0}
-
resolution: {integrity: sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA==}
@@ -14972,8 +14940,6 @@ snapshots:
optional: true
- '@pkgr/[email protected]': {}
-
'@playwright/[email protected]':
dependencies:
playwright: 1.57.0
@@ -19186,16 +19152,6 @@ snapshots:
- dependencies:
- eslint: 9.39.4([email protected])
- prettier: 3.8.3
- prettier-linter-helpers: 1.0.0
- synckit: 0.11.12
- optionalDependencies:
- '@types/eslint': 9.6.1
- eslint-config-prettier: 10.1.8([email protected]([email protected]))
-
dependencies:
'@babel/core': 7.29.0
@@ -19488,8 +19444,6 @@ snapshots:
-
@@ -21976,10 +21930,6 @@ snapshots:
- dependencies:
- fast-diff: 1.3.0
-
dependencies:
prettier: 3.8.3
@@ -23109,10 +23059,6 @@ snapshots:
- dependencies:
- '@pkgr/core': 0.2.9
-