From the course: CSS for Developers
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
CSS linting - CSS Tutorial
From the course: CSS for Developers
CSS linting
- [Instructor] As with any programming language, there are tools available that can help improve our CSS. CSS linters can identify syntax errors or invalid properties. They can enforce a consistent code style or adherence to a project's coding standards. They can flag issues related to performance or maintainability, like duplicate selectors or inefficient use of CSS. In short, using a linter will make your CSS better and can even help you learn the nuances of CSS syntax as you go. From a high level perspective, getting started with a CSS linter involves choosing which linter to use, installing the linter either globally on your machine or within a specific project, configuring the linter. This is where you specify the rules you want to enforce, like, I want to use a two tab indentation, or I want to follow a particular coating standard, that sort of thing. You may also want to use a linter in conjunction with an auto fixer or beautifer. Some linters can automatically fix certain rule…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.