@terminus/stylelint-config-frontend

1.3.2 • Public • Published

stylelint-config-frontend

CI/CD Status MIT License
NPM version Library size

A collection of SCSS lint rules for Terminus frontend codebases.

Table of Contents

Installation

yarn add stylelint @terminus/stylelint-config-frontend -D

Set up

1. Create the file and extend the base ruleset

Create a stylelint config file at the root level named stylelint.config.js and extend the base ruleset:

module.exports = {
  extends: '@terminus/stylelint-config-frontend',
}

2. Add a linting command to package.json

  • The --project flag reference should point to the primary app tsconfig file.
  • The --config flag reference should point to the ci tslint file.
{
  "name": "My Project",
  "scripts": {
    "lint:scss": "npx stylelint 'your/path/to/styles/**/*.scss'"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @terminus/stylelint-config-frontend

Weekly Downloads

1

Version

1.3.2

License

MIT

Unpacked Size

9.84 kB

Total Files

4

Last publish

Collaborators

  • bmalinconico-terminus
  • atlwendy
  • terminus_devops