Skip to content
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

build: setup Prettier with ESLint #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antfu
Copy link

@antfu antfu commented Nov 5, 2024

#117 #118

This PR setup Prettier to use alongside with ESLint.

  • Disable stylistic in ESLint
  • Install ESLint, Prettier, and the config as dev deps
  • Install TypeScript as dev dep; Nuxt ESLint needs it to support linting TypeScript files.
  • Add two scripts for CLI linting/formatting

I didn't update the npm-lock, so CI might fails. After installing the packages, you might want to restart VS Code to have ESLint effective. Meanwhile there are some linting and formatting can be applied by running npm run format that I didn't cover in this PR

@antfu antfu changed the title fix: setup Prettier with ESLint build: setup Prettier with ESLint Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant