1.0.2 • Published 6 months ago

@qimijoy/stylelint-config v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Description

A package with Stylelint configurations. The goal is to unify Stylelint configurations for my projects.

Usage

  1. Install packages via npm:
npm i -D @qimijoy/stylelint-config stylelint-config-standard-vue stylelint-prettier 
stylelint-declaration-block-no-ignored-properties stylelint-order stylelint-no-unsupported-browser-features postcss-html postcss-less
  1. Add the required configuration in Stylelint configuration file in your project:
const primaryRules = require('@qimijoy/stylelint-config/configs/primary');

module.exports = {
	ignoreFiles: ['**/node_modules/**', '**/dist/**'],

	plugins: [
		'stylelint-prettier',
		'stylelint-declaration-block-no-ignored-properties',
		'stylelint-order',
		'stylelint-no-unsupported-browser-features',
	],

	defaultSeverity: 'error',

	reportDescriptionlessDisables: true,
	reportInvalidScopeDisables: true,
	reportNeedlessDisables: true,
	configurationComment: 'stylelint', // --> /* stylelint-disable */
	ignoreDisables: true,

	overrides: [
		{
			files: ['**/*.html'],
			customSyntax: 'postcss-html',
		},
		{
			files: ['**/*.less'],
			customSyntax: 'postcss-less',
		},
		{
			files: ['**/*.vue'],
			extends: ['stylelint-config-standard-vue'],
		},
	],

	rules: {
		...primaryRules.rules,
	},
};

Adding new configurations

Put the configurations in the configs folder

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago