Skip to content

lost-vars not recognized by stylelint #409

@stephanschubert

Description

@stephanschubert

Is this a feature request or a bug report?

Bug report

What is the current behavior?

stylelint with config stylelint-config-lost complains about:

    29  25 error    funct… Expected single space before "-" operator (function-calc-no-unspaced-operator) (css-stylelint)
    29  25 error    funct… Expected single space after "-" operator (function-calc-no-unspaced-operator) (css-stylelint)

when using lost-vars() like

  margin-bottom: calc(lost-vars('gutter') * 2);

If it's a bug please provide the steps to reproduce it and maybe some code samples.

.stylelintrc contains:

{
  "extends": [
    "stylelint-config-standard",
    "stylelint-config-lost"
  ]
}

What is the desired behavior?

stylelint should not complain about the minus sign in the identifier.

What's the motivation or use-case behind changing the behavior?

stylelint is the de-facto standard for linting stylesheets.

What version of LostGrid, browser and browser version are affected by this issue? Did this happen in previous versions?

Doesn't apply here.

Anything else?

I have opened an issue at stylelint-config-lost prior and the author (/cc @delorge) asked me to open one here to further discuss the issue.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions