FEDweek IT

GSA’s 18F has released a CSS coding style guide and a linter for automated syntax checking with the guidelines. The guide lays out rules and recommendations for writing consistent and maintainable code, and favors the SASS and Burbon processing languages, something 18F thinks will help apply consistent CSS to a broad range of web contexts in the federal government.

18F also has guidelines on whitespace, sorting order, naming conventions and general formatting that will help keep development practices standardized and easier for 18F developers to work with agencies.

The linter can be used either on GitHub or locally, and if it finds any discrepancies between the code and the guide it will issue a warning and the developer can choose how to address the issue.

Link: https://pages.18f.gov/frontend/css-coding-styleguide/