Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move stylistic eslint rules to prettier #3099

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

uncenter
Copy link
Contributor

Ideally we shouldn't be using stylistic rules with Eslint since we already have Prettier, and you've already encountered some conflicts (424a4bf, 88fe5ef). This PR moves stylistic rules to Prettier and adds the eslint-config-prettier package to disable conflicts.

"useTabs": true,
"singleQuote": false,
"semi": true,
"endOfLine": "lf",
Copy link
Contributor Author

@uncenter uncenter Nov 11, 2023

Choose a reason for hiding this comment

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

Some of these options are duplicates since Prettier respects the .editorconfig file settings, your choice if you want to be extra specific here (useTabs and endOfLine are already in the .editorconfig).

@uncenter
Copy link
Contributor Author

Once this is resolved I think we should adopt the current state of .editorconfig, .prettierrc.json, and .eslintrc.json across the rest of the 11ty projects (closes 11ty/11ty-website#1610).

@zachleat zachleat merged commit d14e1c0 into 11ty:main Nov 14, 2023
@zachleat
Copy link
Member

Looks good, thanks!

@zachleat zachleat added this to the Eleventy 3.0.0 milestone Nov 14, 2023
@uncenter uncenter deleted the fix-eslint-prettier-styling branch November 14, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants