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

Add and configure prettier #17

Open
szepeviktor opened this issue May 1, 2024 · 2 comments
Open

Add and configure prettier #17

szepeviktor opened this issue May 1, 2024 · 2 comments

Comments

@szepeviktor
Copy link
Contributor

szepeviktor commented May 1, 2024

Latest stylelint does not check formatting.
https://prettier.io/docs/en/configuration
.prettierrc.yml

@szepeviktor
Copy link
Contributor Author

stylelint could also have a human-friendly .stylelintrc.yml

@szepeviktor
Copy link
Contributor Author

szepeviktor commented May 13, 2024

@adamlaki Easy.

.prettierrc.yml

tabWidth: 2
printWidth: 120
semi: true
singleQuote: true
trailingComma: "es5"
prettier --check preview/assets/scss/ preview/assets/js/ scss/ test/
# and --write

# another approach
prettier --check  '**.js' '**.scss'

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

No branches or pull requests

1 participant