Disallow whitespace between transform functions and their parentheses
For projects that would like to safeguard their transform functions when used with CSS, SCSS, or PostCSS variables.
npm i -D stylelint stylelint-transform-function-no-whitespace
For Stylelint ^16.0.0
:
// stylelint.config.js
export default {
plugins: [
// your other plugins
"stylelint-transform-function-no-whitespace",
],
rules: {
// your other rules
"plugin/transform-function-no-whitespace": true,
},
};
For Stylelint ^15.0.0
:
// stylelint.config.js
module.exports = {
plugins: [
// your other plugins
"stylelint-transform-function-no-whitespace",
],
rules: {
// your other rules
"plugin/transform-function-no-whitespace": true,
},
};
Please refer to GitHub README for full documentation.