Skip to content

Add Eslint to templates #71

@timotius02

Description

@timotius02

Was there ever a consideration to add ESLint (specifically https://github.com/solidjs-community/eslint-plugin-solid) to these templates so that right off the bat, people who are experimenting with Solid will get yelled at when they violate important rules?

I found that when people are just dabbling with Solid, they will immediately run into issues, such as the destructuring props rule, and will just quit out of confusion.

In something like React, when violating the rule of hooks, the environment will actually error and give you explicit message that you might be doing so, so it's not without precedent.

I feel like the best way to solve this would be to add these directly into the templates people are using (especially before SolidStart full release) so that people could start immediately learning about the important Solid rules right out of the box.

P.S. I know that it's technically okay to violate certain rules but I believe those who are doing so will be smart enough to do an ESlint ignore.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions