Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 2.28 KB

README.md

File metadata and controls

63 lines (42 loc) · 2.28 KB

stylelint-config-lukkien

License Build Status devDependencies Status

Our package provides an extensible shared config according to the guidelines at Lukkien.

This repository contains the following packages:

  • stylelint-config-lukkien - default guidelines for CSS and basic SCSS usage.
  • stylelint-config-lukkien-scss - additional guidelines for SCSS usage.

Our base configuration is available within stylelint-config-lukkien, whereas our more specific SCSS configuration for SASS is available within stylelint-config-lukkien-scss. When only using the base configuraton (for eg. when SASS isn't a part of the tooling) it requires stylelint. Our additional SCSS configuration will also require stylelint-scss to be installed into your dependencies.

Usage

stylelint-config-lukkien

  • Run yarn add --dev stylelint stylelint-config-lukkien
  • Add the following to your .stylelintrc:
{
  "extends": ["stylelint-config-lukkien"]
}

stylelint-config-lukkien-scss

  • Run yarn add --dev stylelint stylelint-scss stylelint-config-lukkien stylelint-config-lukkien-scss.
  • Add the following to your .stylelintrc:
{
  "extends": ["stylelint-config-lukkien", "stylelint-config-lukkien-scss"],
  "plugins": ["stylelint-scss"]
}

Setup

Prerequisites

Install

  • Git clone the project
  • Run nvm install to make sure you are using the best Node version for development.
  • Run yarn install for the first time to enable Lerna in your environment.
  • Run lerna bootstrap from this point to install this project and its packages subdependencies.
  • Make sure your editor is configured to use .editorconfig.

Note: Lerna is configured to use yarn

Development

  • Run nvm use to set Node to the correct version
  • Run tests via lerna run lint