TheOdinProject / curriculum

The open curriculum for learning web development
https://www.theodinproject.com/
Other
9.08k stars 12.57k forks source link

JS Linting: Add ESLint v9/flatconfig support warning and eslint-config-prettier mention #28261

Closed MaoShizhong closed 1 week ago

MaoShizhong commented 1 week ago

Because

27939 updated our Linting lesson in light of the recent ESLint v9 release and its breaking changes.

Since then, we've had a few people who wanted to use the airbnb ESLint plugin but ran into issues as it does not yet support v9 and flat config.

Since this has been somewhat common, it's worth adding a temporary note about using v8.57 and eslintrc if someone wanted to use something like the airbnb plugin (but if not, they can stick with the v9 docs). This note can be removed once airbnb release support for v9 and flat config.

Since this note was added, it also means it'd be sensible to add eslint-config-prettier back in specifically if someone wanted to use the airbnb plugin, as that plugin turns on rules that clash with Prettier. It was removed in #27939 because the default ESLint ruleset does not include any rules that clash with Prettier.

This PR

Issue

N/A

Additional Information

Pull Request Requirements