

Hasty Treat - Stylelint for Linting CSS
Jul 19, 2021
Explore the world of CSS linting with Stylelint, a tool that enforces coding standards and enhances code quality. Discover how to set it up and leverage its extensive plugins for customization. Learn about the 'turn' unit for simplified rotations in CSS, making complex calculations easier. The discussion also emphasizes the importance of reliable error tracking with tools like Sentry to optimize performance. Join Scott and Wes as they unlock the secrets to cleaner, more efficient web development!
AI Snips
Chapters
Transcript
Episode notes
Stylelint Setup
- Use Stylelint, a linter for CSS, to improve code quality and enforce consistent styling.
- Set up a
.stylelintrc
file and a VS Code extension for real-time feedback.
Configuring Stylelint
- Start with standard or Sass guidelines in your Stylelint configuration file using the
extends
property. - Customize rules as needed and explore plugins to enhance linting capabilities.
Power of Stylelint Plugins
- Stylelint plugins offer powerful customization, like enforcing variable usage, animation performance checks, and max nesting depth.
- This makes your CSS more performant and maintainable.