Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve editorconfig #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szepeviktor
Copy link

@szepeviktor szepeviktor commented Aug 13, 2023

Only src/__tests__/utils/unicode.data.ts has 120+ long lines.
Maybe TypeScript has a feature to break long lines.

@vercel
Copy link

vercel bot commented Aug 13, 2023

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

Name Status Preview Comments Updated (UTC)
sigma ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 13, 2023 9:31pm

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5849642615

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 5847896556: 0.0%
Covered Lines: 265
Relevant Lines: 265

💛 - Coveralls

trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 2000
Copy link
Owner

Choose a reason for hiding this comment

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

This key doesn't seem standard. Do editors respect this? Also the value of 2000 looks a bit random to me.

Copy link
Author

@szepeviktor szepeviktor Aug 15, 2023

Choose a reason for hiding this comment

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

I do not use an IDE. (stone age viktor)
eclint in my CI workflow respects it.
SVG files have ~1000 long lines.

Copy link
Author

Choose a reason for hiding this comment

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

This feature request has 56 👍🏻-s.
editorconfig/editorconfig-vscode#272

Comment on lines +12 to +14
block_comment_start = /*
block_comment = *
block_comment_end = */
Copy link
Owner

Choose a reason for hiding this comment

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

Hm, these keys aren't present in the spec as well. Any reason to add them?

Copy link
Author

Choose a reason for hiding this comment

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

These are for eclint to understand block comments.
What should I do?

indent_style = space
indent_size = 2
[src/**]
max_line_length = 120
Copy link
Owner

Choose a reason for hiding this comment

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

See above. Also prettier, eslint and vscode are all configured to use 100 characters max.

Copy link
Author

@szepeviktor szepeviktor Aug 15, 2023

Choose a reason for hiding this comment

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

There are many lines in src/ exceeding 100 characters in length.
Should I modify this line?

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