-
Notifications
You must be signed in to change notification settings - Fork 3
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
More linting from Biome.js #168
Conversation
2fc5f5c
to
1365660
Compare
See also #96. I expect efforts to cleanup with any linter will improve the situation with all of them. IMO there are three large problems with confidence in refactoring: |
@drskullster feel free to add your comments as well. |
@alexrudd2 I'm assuming it uses the same |
For now I'm still evaluating it, and don't want to step on others' toes removing |
src/__tests__/planning.test.ts
Outdated
@@ -1,5 +1,5 @@ | |||
import {Plan, plan, Device, AxidrawFast, XYMotion, PenMotion, defaultPlanOptions} from '../planning'; | |||
import {Vec2} from '../vec'; | |||
import type {Vec2} from '../vec'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No space between {
}
, but I expect you're still experimenting with the tool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, for now in biome.json
the linter is enabled but the formatter is not.
I just tried enabling the formatter (with default settings), and it did change to { Vec }
.... but also expanded all the imports on different lines. :/
@alexrudd2 I think it's a great idea to fix lint issues, I have no opinion on the choice of the tool :) One thing that'd be nice to look at is unnecessary typings, but I don't know if those tools have rules for that. For example in Lines 158 to 163 in d05fc4c
But the functions below still have their typings : Line 173 in d05fc4c
which hurts the readability in my opinion. |
I'm all for tools with less configuration options, and would love to see how far we can get with the default styles. |
OK, I'll merge these since they're generally code improvements and not fighting the other linters (yet?) |
I am still experimenting with Biome as a faster and simpler alternative to
eslint
, its mess of plugins, andprettier
.The defaults seem pretty good and match with many
eslint
plugins. I think a lot of the rules/lints are worth adopting. Even if we ultimately don't use Biome, we can find the correspondingeslint
rules.