Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.4 KB

File metadata and controls

57 lines (42 loc) · 1.4 KB

transform-function-no-whitespace

Disallow whitespace between transform functions and their parentheses

Build Stylelint Version Last Commit

For projects that would like to safeguard their transform functions when used with CSS, SCSS, or PostCSS variables.

My plugin

Installation

npm i -D stylelint stylelint-transform-function-no-whitespace

Setup

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,
  },
};

Documentation

Please refer to GitHub README for full documentation.