stylelint-value-list-box-shadow-inset-first
TypeScript icon, indicating that this package has built-in type declarations

3.1.1 • Public • Published

stylelint-value-list-box-shadow-inset-first

Build Status

Stylelint rule for checking if box-shadow inset values are first in list.

Install

npm install stylelint-value-list-box-shadow-inset-first --save-dev

Usage

Add this config to your .stylelintrc:

{
	"plugins": [
		"stylelint-value-list-box-shadow-inset-first"
	],
	"rules": [
		"plugin/value-list-box-shadow-inset-first": true
	]
}

Details

a { box-shadow: inset 1px 1px 1px #fff, 2px 2px 2px rgba(0,0,0,1), inset 3px 3px 3px red; }
/**                                                                ↑
 * Inset value group is not positioned in correct order */

Options

true

The following pattern is considered warning:

a { box-shadow: inset 1px 1px 1px #fff, 2px 2px 2px rgba(0,0,0,1), inset 3px 3px 3px red; }

The following pattern is not considered warning:

a { box-shadow: inset 1px 1px 1px #fff, inset 3px 3px 3px red, 2px 2px 2px rgba(0,0,0,1); }

License

MIT © Ivan Nikolić

Package Sidebar

Install

npm i stylelint-value-list-box-shadow-inset-first

Weekly Downloads

383

Version

3.1.1

License

MIT

Unpacked Size

18.3 kB

Total Files

14

Last publish

Collaborators

  • niksy