4.0.0 • Published 11 months ago

@csstools/stylelint-no-at-nest-rule v4.0.0

Weekly downloads
-
License
MIT-0
Repository
github
Last release
11 months ago

@csstools/stylelint-no-at-nest-rule

version

Prevent usage of @nest in CSS.

/* valid */
.element {
	article & {}
}

/* invalid */
.element {
	@nest article & {}
}

The CSS Nesting specification has changed and @nest is no longer required and has been removed from the specification.
Since it will never be valid CSS in browsers it is important to migrate away from it.

Valid CSS :

.element {
	article {}

	article & {}
}

Invalid CSS :

.foo {
	@nest article {}

	@nest article & {}
}

Usage

npm install --save-dev @csstools/stylelint-no-at-nest-rule

// stylelint.config.js
module.exports = {
	plugins: [
		"@csstools/stylelint-no-at-nest-rule",
	],
	rules: {
		"@csstools/stylelint-no-at-nest-rule": true,
	},
}
4.0.0

11 months ago

3.0.0

11 months ago

2.0.0

2 years ago

1.0.0

2 years ago