-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Simplify create-svelte #987
Comments
If we're moving away from built-in support for Lass/Sass templates, then #972 is also something we can sidestep, as it would be on users to update their ESLint config accordingly. |
They're absolutely vital so long as nesting isn't part of the spec! |
In my opinion nested syntax is a good reason to keep built-in support for Less/Sass. Is there a way to remove it from create-svelte but still make it easily available simply with |
Making element styling dependent on nesting has long been known to be a bad idea even to traditional CSS philosophy:
And nesting is even less valuable within Svelte components where you can't even nest selectors deeper than what is already in that same file, which I estimate is only about 3-5 levels in most cases. But even if you disagree, you can still write out your nested selectors explicitly. A counterpoint is that you might want to style all the various states of a |
Install and set up If it's so necessary, someone in the community's probably going to make a Svelte adder for it anyway. |
Recapping some discussion in Discord prompted by #934:
npm init svelte
is the wrong place to make that happen.ts
files and the<script>
of each.svelte
file through Sucrase or esbuild)package.json
, and there's still some complexity around Prettier and ESLint (the Prettier modifier depends on whether you're using the ESLint modifier, which depends on whether you're using TypeScript) but it's stuff that should in theory be common to all projects, and is therefore immune to the aforementioned scaling issueThe text was updated successfully, but these errors were encountered: