1.0.13 • Published 1 year ago

stylelint-plugin-import v1.0.13

Weekly downloads
893
License
MIT
Repository
github
Last release
1 year ago

Stylelint Plugin Import

tests

Stylelint plugin for managing imports.

Rules

Go to each rule's page (click on the name below) to see specific details.

Ruleauto-fix
plugin-import/file-name-starts-withno
plugin-import/import-as-referenceyes
plugin-import/file-extensionyes

Rule Options

All rules respect the following primary option format with no secondary options:

  • boolean input

    {
        "rule-name": true // use default rule behavior
    }
    {
        "rule-name": false // disables rule
    }
  • object input

    {
        "mode": "require" // requires the rule's default
    }
    {
        "mode": "block" // blocks the rule's default
    }
    {
        "mode": "off" // disable rule
    }
  • object input with exceptions

    {
        "mode": "require",
        // optional input
        // these use glob matching with globstar turned ON
        "fileExceptions": [
            "**/*colors.less", // ignores any files ending in colors.less in any directory
            "*colors.less" // ignore files ending in colors.less only in the current directory
        ]
        // optional input
        // these use glob matching with globstar turned OFF
        "lineExceptions": [
            "*colors*", // ignores all lines that include the word colors
            "@import 'colors'" // ignores all lines that are exactly this string (don't include semicolons)
        ],
    }