svelte-add icon indicating copy to clipboard operation
svelte-add copied to clipboard

CLI Vite + ESLint + Prettier errors

Open krznbtni opened this issue 4 years ago • 3 comments

Hello, I'm just stopping by to report the errors that were outputted from the CLI:

npm init @svelte-add/vite@latest
➕ Svelte Add's Vite-powered Svelte app initializer (Version 2021.11.20.00)
✔ What directory should your app be created in? … new-svelte-app
✔ What scripting language will you write your app in? › TypeScript
✔ What language will you write your app styles in? › SCSS (used by Bootstrap and Bulma)
✔ What framework will you use for your app's styles? › None (write SCSS by hand)
✔ What other features do you want for your app? › 
✔ What code quality tools do you want to help maintain your app? › ESLint, Prettier
✔ Where will you deploy your app? › Nowhere (set up a deployment target later)
✔ Do you want example and demonstration code added to your app to demonstrate how to use the tools you've selected? › Yes
✔ Should your app's dependencies be installed with npm right now? › Yes
svelteBracketNewLine is deprecated.

ESLint
  ❌ `eslint` is installed
  ❌ `.eslintrc.cjs` exists

  ❌ was supposed to be set up for you but it appears not to have been?! (see above)
This is definitely not supposed to happen, so please create or find an existing issue at https://github.com/svelte-add/svelte-add/issues with the full command output.

Prettier
  ❌ `prettier` is installed
  ❌ `.prettierrc` exists

  ❌ was supposed to be set up for you but it appears not to have been?! (see above)
This is definitely not supposed to happen, so please create or find an existing issue at https://github.com/svelte-add/svelte-add/issues with the full command output.
🪄 Your TypeScript + SCSS Vite-powered Svelte app is ready!
❌ Could not identify correct installation of ESLint + Prettier. 
This is definitely not supposed to happen, so please create or find an existing issue at https://github.com/svelte-add/svelte-add/issues with the full command output.
  1. cd new-svelte-app
  2. npm run dev -- --open  # start developing with a browser open

And to verify the output: ESLint and Prettier config files & packages have not been added. Let me know if there's any other info you would like me to provide.

krznbtni avatar Nov 23 '21 08:11 krznbtni

This is a limitation in svelte-add right now because the SvelteKit initializer can provide ESLint and Prettier but the Vite initializer can't, so I have to make it not allow you to select those

babichjacob avatar Nov 23 '21 08:11 babichjacob

Cool. Glad I could be of help :).

krznbtni avatar Nov 23 '21 08:11 krznbtni

im in learning stage but i guess i can ignore it and it wont hurt.

jaami avatar Jan 13 '22 10:01 jaami