feat: simplify ESLint config - Prettier for formatting, ESLint for correctness #479
+34
−72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Simplifies the linting setup to follow the recommended pattern: Prettier handles all formatting, ESLint handles only correctness and import sorting.
ESLint changes:
unused-importspluginenvblockPrettier changes:
trailingComma: "es5" → "all"printWidth: 80Review & Testing Checklist for Human
envremoval is safe: The removal ofenv: { node: true, jest: true, browser: true }may causeno-undeferrors for globals likeprocess,describe,it. Runpnpm linton a few packages to confirm no false positives@typescript-eslint/no-explicit-anybecomes a warning and@typescript-eslint/no-unused-varsuses default patterns - verify this is desiredtrailingComma: "all"impact: This will add trailing commas to function parameters when Prettier runs - confirm this style is acceptableTest plan: Run
npx eslint packages/cli/src/index.tsto verify ESLint works without errors on the config itself.Notes
This PR contains config changes only. A follow-up PR will apply the actual linting fixes to the codebase.
Link to Devin run: https://app.devin.ai/sessions/1a95a9e3b5994325aeffe5ae1289aa0a
Requested by: Dan Lynch ([email protected]) / @pyramation