ota-meshi / stylelint-config-recommended-vue

The recommended shareable Vue config for Stylelint.
MIT License
100 stars 5 forks source link

can i disabled rule for different vue lang ? #32

Closed baixiaoyu2997 closed 2 years ago

baixiaoyu2997 commented 2 years ago

I want to migrate my code incrementally form scss to postcss , i want use rule only for lang="postcss":

"overrides": [
    {
      "files": ["**/*.css","**/*.vue"],
      "rules": {
        "selector-nested-pattern": "^&"
      }
    }
  ],

but in lang="scss" sfc will warn , how to specify rules for different lang ?

ota-meshi commented 2 years ago

Thank you for posting this issue. Currently, it is not possible to change the rule config to be applied for each specified lang.