We started this book by preparing our environment—now that everything is installed, we can look at writing some code.
Of course, we can jump in, but as you are likely to be relatively new to working with Sass, it's a wise idea to get as much help as possible. One way to achieve this is through the use of linting code or running a continual background check to ensure that we are writing valid Sass code.
The great thing about this is that we can easily set this up with the addition of Ruby gems. These are the Ruby equivalent to plugins and work in a similar fashion to using standard plugins such as those we may use when working with jQuery. The plugin we will use is scss-lint
, which is available at https://github.com/brigade/scss-lint. Let's take a look at how to set this up from within Sublime Text, using the SublimeLinter SCSS plugin from https://github.com/attenzione/sublimeLinter-scss-lint.