You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new Astro project by running npm create astro@latest and selecting the default settings:
❯ npm create astro@latest
> npx
> create-astro
astro Launch sequence initiated.
dir Where should we create your new project?
./capricious-chroma
tmpl How would you like to start your new project?
A basic, minimal starter
deps Install dependencies?
Yes
git Initialize a new git repository?
Yes
✔ Project initialized!
■ Template copied
■ Dependencies installed
■ Git initialized
next Liftoff confirmed. Explore your project!
Enter your project directory using cd ./capricious-chroma
Run npm run dev to start the dev server. CTRL+C to stop.
Add frameworks like react or tailwind using astro add.
Stuck? Join us at https://astro.build/chat
╭─────╮ Houston:
│ ◠ ◡ ◠ Good luck out there, astronaut! 🚀
╰─────╯
Set up Sheriff by running npm init @sherifforg/config and selecting No for both the experimental eslint.config.ts file and support for Prettier:
❯ npm init @sherifforg/config
> [email protected] npx
> create-config
Welcome to Sheriff! 👋
This wizard will guide you through the setup of Sheriff in your project.
Let's get started!
✔ Do you prefer the config as a Typescript file? The generated config will be a eslint.config.ts file (Experimental)
No
◐ No ESLint config files were found. Generating and configuring eslint.config.js file...
WARN If you have other ESLint configs in your project, remove them
◐ 'Astro' package found in the project. Setting up support for it...
ℹ Setting Sheriff with options:
╭──────────────────────────────────────────────╮
│ │
│ { │
│ "react": false, │
│ "lodash": false, │
│ "remeda": false, │
│ "next": false, │
│ "astro": true, │
│ "playwright": false, │
│ "jest": false, │
│ "vitest": false │
│ } │
│ │
╰──────────────────────────────────────────────╯
✔ Successfully generated eslint.config.js file
✔ Do you want to add Prettier support in the workspace?
Tip: if you want to use Prettier from the root of the monorepo, choose 'No'.
No
◐ Installing eslint, eslint-define-config, eslint-config-sheriff...
ℹ Detected package manager: npm
◐ Installing dependendencies...
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
added 389 packages, and audited 688 packages in 17s
295 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
✔ eslint and eslint-define-config and eslint-config-sheriff were installed successfully
ℹ You're all set! Happy coding 🎉
When I add Sheriff to my Astro project, I get various parsing errors like the following:
To reproduce:
npm create astro@latest
and selecting the default settings:npm init @sherifforg/config
and selectingNo
for both the experimental eslint.config.ts file and support for Prettier:Please note that this issue may be related to ota-meshi/eslint-plugin-astro#447.
The text was updated successfully, but these errors were encountered: