sveltejs / template

Template for building basic applications with Svelte
1.74k stars 806 forks source link

Linters for template #27

Closed popuguytheparrot closed 4 years ago

popuguytheparrot commented 5 years ago

What do you think about the linter configuration in the template? For example for eslint and prettier. Using a template, I would not want to have a cognitive load when installing plugins for linter etc

antony commented 5 years ago

Rich has some quite strong opinions about code style which are quite opposite to the general opinons on code style.

Personally I wouldn't want to see Svelte biased in either direction, as code style is a very personal choice, and is often the source of some very lengthy bikeshedding.

popuguytheparrot commented 5 years ago

@antony For example, in the React when installing the with create-react-app set the rules for linter. I would like to have the same in the template (eslint-plugin-svelte3)

pngwn commented 5 years ago

Mybe we could have a 'bare-bones' template with just enough to create a svelte component and nothing else and a 'with-tooling' with stuff like linting, test boilerplate (when we work that out). Rather than supporting a million configuations.

The linting config provided would need some discussion, however.

antony commented 4 years ago

Closing this as I think the template should allow the user to define their own linting, testing, and other tools, as this is very developer centric (or set by company policy).

There are a lot of other templates out there which go a step further, so it's a matter of just choosing one with a combination of tools which suit you.