Skip to content

fix(linter): move eslint-config-prettier to the end for proper override#28503

Merged
leosvelperez merged 9 commits intomasterfrom
unknown repository
Nov 19, 2024
Merged

fix(linter): move eslint-config-prettier to the end for proper override#28503
leosvelperez merged 9 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Oct 17, 2024

There is a conflict between ESLint and Prettier rules, which causes incorrect formatting behavior.

Reordering the config so that eslint-config-prettier is applied last ensures proper rule overrides and resolves conflicts with Prettier.

@ghost ghost self-requested a review as a code owner October 17, 2024 19:22
@ghost ghost requested a review from JamesHenry October 17, 2024 19:22
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Nov 19, 2024 7:36am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Oct 17, 2024

@ghost ghost changed the title fix(eslint): move eslint-config-prettier to the end for proper override fix(core): move eslint-config-prettier to the end for proper override Oct 17, 2024
@ghost ghost changed the title fix(core): move eslint-config-prettier to the end for proper override fix(linter): move eslint-config-prettier to the end for proper override Oct 18, 2024
Copy link
Copy Markdown
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking the time to contribute!

The change looks good to me. There's only a minor change suggested to the source code comments.

Comment thread packages/eslint-plugin/src/flat-configs/javascript.ts
Comment thread packages/eslint-plugin/src/flat-configs/typescript.ts
demonicattack and others added 3 commits November 17, 2024 19:53
Copy link
Copy Markdown
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@leosvelperez leosvelperez merged commit 25909b0 into nrwl:master Nov 19, 2024
FrozenPandaz pushed a commit that referenced this pull request Nov 22, 2024
…de (#28503)

There is a conflict between ESLint and Prettier rules, which causes
incorrect formatting behavior.

Reordering the config so that `eslint-config-prettier` is applied last
ensures proper rule overrides and resolves conflicts with Prettier.

---------

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
(cherry picked from commit 25909b0)
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant