npm.io
1.3.2 • Published 5 years ago

@terminus/stylelint-config-frontend

Licence
MIT
Version
1.3.2
Deps
0
Size
10 kB
Vulns
0
Weekly
0
Stars
11

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'"
  }
}