Skip to content

Except doesn't work as expected #3

@yepninja

Description

@yepninja

Version of stylelint-use-logical

1.1.0

Config

module.exports = {
	plugins: [
		'stylelint-use-logical',
	],
	rules: {
		'csstools/use-logical': ['always', {
			except: [
				'top',
				'left',
			],
		}],
	},
}

Code

/* index.css */
.selector {
	position: absolute;
	top: -4px;
	left: 0;
}

Error

index.css
11:2 ✖ Unexpected top property. Use inset-start. csstools/use-logical

Expected

No error because top property is added to the expect array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions