Skip to content

chore: update eslint to v9#3367

Merged
UziTech merged 3 commits intomarkedjs:masterfrom
UziTech:eslint-v9
Jul 14, 2024
Merged

chore: update eslint to v9#3367
UziTech merged 3 commits intomarkedjs:masterfrom
UziTech:eslint-v9

Conversation

@UziTech
Copy link
Copy Markdown
Member

@UziTech UziTech commented Jul 12, 2024

Description

Update eslint to v9

This does mean removing standard since it is no longer maintained

We could use neostandard which is the successor but I don't see why we wouldn't think the same thing will happen to it in the future. Just copying the config seems to be the best option to continue with the same rules.

Maybe a future PR can slim down the rules a bit. Personally I prefer only using eslint:recommended and typescript-eslint:recommended since it is simpler.

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 12, 2024

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

Name Status Preview Comments Updated (UTC)
marked-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 13, 2024 4:05am

module.exports = {
markdown: `[x]:${' '.repeat(1500)}x ${' '.repeat(1500)} x`,
html: `<p>[x]:${' '.repeat(1500)}x ${' '.repeat(1500)} x</p>`,
html: `<p>[x]:${' '.repeat(1500)}x ${' '.repeat(1500)} x</p>`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Personally, I like trailing commas

Copy link
Copy Markdown
Member Author

@UziTech UziTech Jul 14, 2024

Choose a reason for hiding this comment

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

Me too. I just kept the rules the same as before.

I will try changing the rules in a follow up pr. There will be a lot of src code changes

"build:docs": "npm run build && node docs/build.js",
"build:types": "tsc && dts-bundle-generator --project tsconfig.json -o lib/marked.d.ts src/marked.ts && dts-bundle-generator --project tsconfig.json -o lib/marked.d.cts src/marked.ts",
"build:man": "marked-man man/marked.1.md > man/marked.1",
"rollup": "rollup -c rollup.config.js"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Whats changing in the scripts here? Is it just the order?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ya just reordering alphabetically

@UziTech UziTech merged commit 62b941d into markedjs:master Jul 14, 2024
@UziTech UziTech deleted the eslint-v9 branch March 6, 2026 23:01
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.

5 participants