Skip to content

rentpath/style-guides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Style Guides

A collection of style guides used at RentPath.

Lint config files

SASS

Uses node's sass-lint. Copy css/.sass-lint.yml to your project directory and change the src option to a glob that includes your .scss files. To run it, install sass-lint (npm install sass-lint) and run sass-lint -v. If there are any errors or warnings, they should show in your output.

To run with webpack, You'll need to add the configfile to your webpack file.

module.exports = {
  sasslint: {
    configFlie: '.sass-lint.yml'
  }
}

and then add it to your preloaders

module: {
  preLoaders: [
    {
      test: /\.scss?$/,
      exclude: [/node_modules/],
      loaders: ['sasslint'],
      //this should change with your project and point to where your scss files are
      include: path.join(__dirname, '../src')
    }
  ]
}

Editor Setup

x