@csstools/stylelint-no-invalid-at-import-rules-when-bundling
v3.0.4
Published
Do not allow @import rules that can not be bundled correctly
Downloads
278
Readme
@csstools/stylelint-no-invalid-at-import-rules-when-bundling
Ensure that your @import
statements are compatible with CSS bundlers
/* valid */
@import 'foo.css';
/* invalid */
@import 'foo.css?bar=1';
Usage
npm install --save-dev @csstools/stylelint-no-invalid-at-import-rules-when-bundling
// stylelint.config.js
module.exports = {
plugins: [
"@csstools/stylelint-no-invalid-at-import-rules-when-bundling",
],
rules: {
"@csstools/stylelint-no-invalid-at-import-rules-when-bundling": true,
},
}