@harmonix-hub/stylelint
v1.4.0
Published
This package provides Stylelint configurations to ensuring consistency and collaboration across projects
Downloads
116
Readme
@harmonix-hub/stylelint
This package provides Stylelint configurations for projects developed with Harmonix hub.
Installation
You can install this Stylelint configuration package using npm.
npm install @harmonix-hub/stylelint --save-dev
Usage
To use the Stylelint configurations provided by this package, create an Stylelint configuration file in your project directory (e.g., stylelint.config.js
), and extend the configuration from @harmonix-hub/stylelint
.
Example stylelint.config.js
configuration file:
const { stylelintConfig } = require("@harmonix-hub/stylelint");
/** @type {import("stylelint").Config} */
module.exports = {
/**
* Use main configuration from shared infrastructure
*/
...stylelintConfig,
/**
* Add additional configurations below
* When adding a new config entry,
*/
ignoreFiles: [...(stylelintConfig.ignoreFiles || []), "example**"],
};
By extending @harmonix-hub/stylelint
, you inherit the recommended ESLint rules for Harmonix hub projects.
You can also add or override rules in your project-specific ESLint configuration file.