@jgarber/stylelint-config

4.0.0 • Public • Published

@jgarber/stylelint-config

Shareable Stylelint configuration.

npm Downloads Build

[!NOTE] See @jgarber/stylelint-config-scss for a shareable Stylelint configuration suitable for SCSS syntax Sass files.

Installation

npm install --save-dev @jgarber/stylelint-config

Usage

Stylelint supports a variety of configuration file formats.

YAML

In a file named .stylelintrc or .stylelintrc.yml:

---
extends: "@jgarber/stylelint-config"
---

JSON

In a file named .stylelintrc or .stylelintrc.json:

{
  "extends": "@jgarber/stylelint-config"
}

JavaScript

In a JavaScript file using ECMAScript module (ESM) syntax:

// stylelint.config.mjs
export { default } from "@jgarber/stylelint-config";

In a JavaScript file using CommonJS module syntax:

// stylelint.config.cjs
module.exports = {
  extends: "@jgarber/stylelint-config"
}

License

@jgarber/stylelint-config is freely available under the MIT License.

Package Sidebar

Install

npm i @jgarber/stylelint-config

Weekly Downloads

9

Version

4.0.0

License

MIT

Unpacked Size

5.47 kB

Total Files

4

Last publish

Collaborators

  • jgarber