Skip to content

Stylelint configuration for Backpack development

License

Notifications You must be signed in to change notification settings

Skyscanner/stylelint-plugin-backpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

81ff206 · Jan 31, 2025
Jan 31, 2025
Jan 31, 2024
Nov 7, 2023
Jul 25, 2023
Jun 17, 2020
Jun 17, 2020
Jun 19, 2023
Jun 17, 2020
Jul 25, 2023
Jun 17, 2020
Jun 17, 2020
Jun 17, 2020
Jul 25, 2023
Apr 19, 2022
Jul 25, 2023
Jun 24, 2020
Jan 13, 2025
Jan 13, 2025

Repository files navigation

stylelint-plugin-backpack

Build Status npm version

Stylelint plugin to prevent magic arbitrary values and promote the use of Backpack tokens.

Installation

npm install @skyscanner/stylelint-plugin-backpack --save-dev

Usage

Add @skyscanner/stylelint-plugin-backpack to your stylelint config plugins array,

{
  "plugins": ["@skyscanner/stylelint-plugin-backpack"]
}

Once you have added the plugin, you will need to add the rules you wish to use to your rules config. All rules from @skyscanner/stylelint-plugin-backpack need to be namespaced with backpack.

Like so:

// .stylelintrc
{
  "rules": {
    "backpack/use-typography-styles": true,
  }
}