Skip to content

Conversation

@nschonni
Copy link
Member

@nschonni nschonni commented Dec 6, 2021

Turn on linting/fixing for JS blocks in markdown and autofix many formatting issues automatically. Ignored a few more that come up because it parses the document as a whole scope

Copy link
Member

@Trott Trott left a comment

Choose a reason for hiding this comment

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

I'm OK with this as it is, but I do think I'd prefer changing the quotes rule to require single quotes as that would probably reduce churn here and also align it with Node.js core practices. (Perhaps it's time to create eslint-plugin-node-core similar to remark-plugin-lint-node.)

@nschonni nschonni requested a review from Trott December 7, 2021 15:56
@nschonni nschonni requested a review from a team as a code owner December 18, 2021 14:14
external/
build/
# Top level await isn't supported till ESLint 8
locale/en/blog/release/v17.0.0.md
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we blocked because standard is still using eslint 7.x?

I think I've expressed my opinion in the past, standard does not catch many of real issues and personally I never use it. prettier doesn't catch real issues either.

Just thinking out loud for the future :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I believe the ESLint upgrade is blocked on prettier, but eslint-plugin-promise just released a compatible version, so that might have been the last one remaining

Copy link
Contributor

Choose a reason for hiding this comment

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

All good, as long as someone remembers to revert this later :)

@XhmikosR
Copy link
Contributor

I can't review every file, but I suppose these are autofixable mostly, right?

From a quick look, the diff looks good, I'll try to have another look tomorrow.

@XhmikosR
Copy link
Contributor

We should look into enabling ESLint caching later.

@XhmikosR XhmikosR merged commit 0303c38 into nodejs:main Dec 19, 2021
@nschonni nschonni deleted the eslint-markdown branch December 19, 2021 08:16
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