Socket
Book a DemoInstallSign in
Socket

@aquila-learning/aquila-stylelint

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aquila-learning/aquila-stylelint

Aquila stylelint

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
232
82.68%
Maintainers
3
Weekly downloads
 
Created
Source

aquila-stylelint

Aquila Learning Stylelint

Usage

Installation

npm install @aquila-learning/aquila-stylelint --save-dev

Setup

  • Install peer dependencies npm install stylelint stylelint-scss stylelint-order stylelint-no-unsupported-browser-features @stylistic/stylelint-config --save-dev
  • Add .stylelintrc.json file with the following contents:
{
   "extends": "@aquila-learning/aquila-stylelint"
}
  • Add an npm script to run linter
    "lint:sass": "stylelint \"**/*.scss\""

Integrate with webpack

npm install stylelint-webpack-plugin --save-dev

const StyleLintPlugin = require('stylelint-webpack-plugin');

const config = { /* webpack config */ };

let styleLintOptions = {
    files: "**/*.scss"
};

if (process.env.NODE_ENV === "production") {
    styleLintOptions.failOnError = true;
}

config.plugins.push(new StyleLintPlugin(styleLintOptions));

Keywords

stylelint

FAQs

Package last updated on 11 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts