1.66.3 • Published 8 months ago

@penskemediacorp/stylelint-css-algorithms v1.66.3

Weekly downloads
57
License
ISC
Repository
github
Last release
8 months ago

Stylelint Plugin for CSS Algorithms

This Stylelint plugin is used to specify which properties are used in specific class patterns. While it is intended for use with CSS algorithms in our system, it is possible to use the configuration for any type of class pattern.

Usage

npm install @penskemediacorp/stylelint-css-algorithms

In a project's stylelint.config.js, add the following entries to the rules object:

{
	'plugins': '@penskemediacorp/stylelint-css-algorithms' ),
	'rules': {
		'plugin/css-algorithms': {
			'a-space-children': [
				'margin-top',
				'margin-left',
				'display',
				'--a-space-children-spacer',
				'flex-wrap'
			],
			'a-glue': [
				'top',
				'right',
				'bottom',
				'left',
				'position',
				'z-index',
				'--a-glue-bottom',
				'--a-glue-top',
				'--a-glue-right',
				'--a-glue-left'
			]
		}
	}
}

Future of this plugin

This plugin would potentially be useful with 1) a more generic name, not tied to PMC's naming conventions, and 2) possibly as a rule within the Stylelint repo called selector-property-allowlist. In either case, there would be a change to the configuration where the key – which is currently a string of the base naming of a pattern – would be a Regex or a specific selector.

If/when that happens, this plugin may be removed in favor of that, and we will need to update any configuration accordingly.

Read more here: https://notlaura.com/selector-property-whitelist-a-css-algorithms-rule-in-stylelint/

1.66.2

9 months ago

1.66.3

8 months ago

1.65.0

1 year ago

1.64.0

1 year ago

1.66.0

10 months ago

1.66.1

10 months ago

1.63.0

1 year ago

1.62.0

1 year ago

1.61.0

1 year ago

1.60.1-alpha.0

2 years ago

1.60.0

2 years ago

1.59.0

2 years ago

1.56.0

2 years ago

1.58.1

2 years ago

1.58.0

2 years ago

1.58.3

2 years ago

1.58.2

2 years ago

1.58.2-alpha.5

2 years ago

1.53.0

2 years ago

1.55.0

2 years ago

1.57.0

2 years ago

1.28.1-alpha.141

2 years ago

1.52.0

2 years ago

1.54.0

2 years ago

1.49.0

2 years ago

1.51.0

2 years ago

1.50.0

2 years ago

1.44.0

2 years ago

1.46.0

2 years ago

1.45.1

2 years ago

1.45.0

2 years ago

1.48.0

2 years ago

1.47.1

2 years ago

1.47.0

2 years ago

1.46.1

2 years ago

1.48.1

2 years ago

1.43.0

2 years ago

1.24.1

3 years ago

1.26.0

3 years ago

1.28.0

3 years ago

1.27.1

3 years ago

1.14.0

3 years ago

1.0.0

3 years ago

0.7.5

3 years ago

0.6.4-develop.17

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.4

3 years ago

0.5.0

3 years ago

0.4.0

4 years ago

0.3.9

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.0

4 years ago

0.2.6-alpha.0

4 years ago

0.2.3

4 years ago

0.2.1-develop.0

4 years ago

0.1.20

4 years ago

0.1.20-alpha.0

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.10

4 years ago

0.1.2

5 years ago

1.5.3-alpha.0

6 years ago

1.5.1-alpha.0

6 years ago

1.5.0-alpha.0

6 years ago