Open seanlail opened 11 months ago
When running npm create svelte@latest we are given the option to add eslint / unit tests or integration tests.
npm create svelte@latest
When we add eslint, vitest and playwright however, we end up with a partial configuration setup.
We should be adding the plugins for linting the above testing frameworks and configuring them correctly.
Update the eslint config to add these eslint plugins and correctly configure them.
Example:
vitest
/src
playwright
/test
No response
nice to have
Example repo with how I think it should be setup: https://github.com/seanlail/kit-issue-10437
Side note: Should testing-library be added? There are no component tests in the example.
Describe the problem
When running
npm create svelte@latest
we are given the option to add eslint / unit tests or integration tests.When we add eslint, vitest and playwright however, we end up with a partial configuration setup.
We should be adding the plugins for linting the above testing frameworks and configuring them correctly.
Describe the proposed solution
Update the eslint config to add these eslint plugins and correctly configure them.
Example:
vitest
files are in/src
and they should be linted with the correct plugin, not the playwright pluginplaywright
files are in/test
and they should be linted with the correct plugin, not the vitest pluginAlternatives considered
No response
Importance
nice to have
Additional Information
No response