AtomLinter / linter-stylelint

A plugin for Atom Linter providing an interface to stylelint.

Home Page:https://atom.io/packages/linter-stylelint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin not working with stylelint-config-sass-guidelines

abogacki opened this issue · comments

After adding .stylelintrc configuration (listed below) that extends stylelint-config-sass-guidlines (available here) linter throws error on top of each scss file

{
  "extends": [
    "stylelint-config-sass-guidelines",
    "stylelint-config-prettier"
  ],
  "plugins": [
    "stylelint-scss",
    "stylelint-prettier"
  ],
  "rules": {
    "prettier/prettier": true,
    "max-nesting-depth": null,
    "scss/at-import-partial-extension-blacklist": null,
    "order/order": [
      [
        "custom-properties",
        "dollar-variables",
        {
          "type": "at-rule",
          "name": "extend"
        },
        {
          "type": "at-rule",
          "name": "include"
        },
        "declarations",
        "rules",
        {
          "type": "at-rule",
          "name": "media"
        }
      ]
    ]
  }
}

image

The issue is related to declaration-property-value-disallowed-list which is defined by stylelint-config-sass-guidelines like:

"declaration-property-value-disallowed-list": {
      "border": ["none"],
      "border-top": ["none"],
      "border-right": ["none"],
      "border-bottom": ["none"],
      "border-left": ["none"]
    },

The above seems to ok with official docs. Configuration works perfectly fine with VS Code.
Is there a solution to this?

@abogacki I have this isse too..

Always reproduced on macOS Catalina, macOS Big Sur with latest version of Atom.

commented

Occurs for me too, M1 Mac Big Sur 11.5.2 and linter-stylelint 4.5.1

It appears to me the problem is the old version of stylelint itself.

"stylelint": "13.3.3",

If I delete or upgrade the local install in ~/.atom/packages/linter-stylelint/node_modules/stylelint the problem goes away as the global stylelint (I have 13.13.1) is used instead. @abogacki @matteobertoldo I'm curious if this works for you.