0.1.1 • Published 4 years ago

@fundamend/config-stylelint v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

config-stylelint

config-stylelint is a configuration preset for stylelint used by the fundamend.dev ecosystem.

Installation

Use your favorite Node.js package manager, for example npm, like so:

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

... or yarn, like so:

yarn add --dev @fundamend/config-stylelint

Usage

In your .stylelintrc.js, import config-stylelint and spread it into the exported object, like so:

const fundamend = require('@fundamend/config-stylelint');

module.exports = {
	...fundamend
};

You can extend the imported preset by adding additional configuration options to the exported configuration object, for example like this:

const fundamend = require('@fundamend/config-stylelint');

module.exports = {
	...fundamend,
	rules: {
		'color-hex-case': 'upper'
	}
};

Settings that already exist in the configuration preset will be overwritten.

License

MIT