Skip to content

eslint to use es2021#13

Merged
tbo47 merged 1 commit intomainfrom
eslint-es2021
Feb 1, 2023
Merged

eslint to use es2021#13
tbo47 merged 1 commit intomainfrom
eslint-es2021

Conversation

@tbo47
Copy link
Copy Markdown
Owner

@tbo47 tbo47 commented Dec 14, 2022

No description provided.

Copy link
Copy Markdown
Collaborator

@aloisklink aloisklink left a comment

Choose a reason for hiding this comment

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

I suggest we use es2021. What do you use in mermaid-js?

Originally posted in #12 (comment)

Mermaid seems to use just plain es6, see https://github.com/mermaid-js/mermaid/blob/a975c8c9cdd92b49445aeb950cb7b6f13ea0dc61/.eslintrc.json#L4

However, looking at the TypeScript config, mermaid-js uses TypeScript to convert everything to ES6 as well, see:

https://github.com/mermaid-js/mermaid/blob/a975c8c9cdd92b49445aeb950cb7b6f13ea0dc61/tsconfig.json#L14-L18

99% of people probably use some sort of bundler, so you can leave it at es2021 and always go back to something lower if somebody complains.

@tbo47 tbo47 merged commit 2402342 into main Feb 1, 2023
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