Skip to content

Conversation

@KristjanESPERANTO
Copy link
Collaborator

In the latest versions of ESLint, more and more formatting rules were removed or declared deprecated. These rules have been integrated into the new Stylistic package (https://eslint.style/guide/why) and expanded.

Stylistic acts as a better formatter for JavaScript as Prettier.

With this PR there are many changes that make the code more uniform, but it may be difficult to review due to the large amount. Even if I have no worries about the changes, perhaps this would be something for the release after next.

Let me know what you think.

@khassel
Copy link
Collaborator

khassel commented Dec 24, 2023

Thanks! I'm fine with this.

@khassel khassel requested a review from rejas December 24, 2023 16:04
@rejas
Copy link
Collaborator

rejas commented Dec 24, 2023

I dont mind changing this and see how the stylistic package holds up during 2024 :-)
Cant we get rid of the whole prettier things then? Or why do these still stay in there?

@KristjanESPERANTO
Copy link
Collaborator Author

KristjanESPERANTO commented Dec 25, 2023

Cant we get rid of the whole prettier things then? Or why do these still stay in there?

Prettiert makes other files (e.g. HTML, JSON, Markdown, YAML) pretty in our project. There are also formatter and linter or ESLint plugins for some of these file formats, but at the moment I don't see us getting rid of prettier. And I think prettier does a pretty job for the non JavaScript files 🙂

@rejas rejas merged commit 0b70274 into MagicMirrorOrg:develop Dec 25, 2023
@KristjanESPERANTO KristjanESPERANTO deleted the stylistic branch December 31, 2023 13:19
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.

3 participants