-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
(Feature request) Add eslint #2324
Comments
@zadam what do you think? |
I'm fine with it as an advisory tool, but not as a pre commit hook, auto formatter etc. Also of course depends on the rule set. |
Why not? I think that would help us having a consistent codebase. For example: Double quotes or single quotes? Currently we use both kind of, which is a bit messy. With an auto formatter, we'd have it consistent. |
It's a bikeshedding most of the time. "consistency" is in itself very vague goal without a clear practical benefit. |
I agree with small projects, but for such a large app like Trilium Notes, I think it would be very beneficial.
The benefit is that we will need less cognitive power to read the code because everything is formatted in a way we understand. This way, we can focus on the actual implementations and their problems, instead of trying to understand the code before we can actually implement it. |
Trilium has entered maintenance mode. Future enhancements will be addressed in TrilumNext: TriliumNext#138 |
Preflight Checklist
Describe feature
A linter helps us having consistent code design
Additional Information
No response
The text was updated successfully, but these errors were encountered: