question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stylelint doesn't work on Sublime Text 3

See original GitHub issue

Hi I use the stylelint 7.4.2, but it doesn’t work and I receive the following error on the console log of Sublime Text 3 debug mode:

SublimeLinter: stylelint output: Error: No configuration provided for /var/folders/31/6tnw20657rb5znbqj567_9xm0000gn/T/SublimeLinter3-Welly/Home.scss at exports.default (/Users/Welly/Desktop/react-cool-starter/node_modules/stylelint/dist/utils/configurationError.js:8:13) at /Users/Welly/Desktop/react-cool-starter/node_modules/stylelint/dist/getConfigForFile.js:28:43

Here’s my .stylelintrc:

{
  "extends": "stylelint-config-standard",
  "rules": {
    "string-quotes": "single",
    "selector-pseudo-class-no-unknown": [
      true,
      {
        "ignorePseudoClasses": [
          "global",
          "local"
        ]
      }
    ]
  }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11

github_iconTop GitHub Comments

2reactions
msnow345commented, Oct 18, 2016

Don’t suppose you got any further with this? Getting the same error and can’t seem to fix.

1reaction
andreyjamercommented, Oct 19, 2016

I have the same problem. I suppose that the reason is the value of @ argument in command for linter. If turn on the debug mode the command to lint is:

['/usr/bin/node', 'HOME_DIRECTORY/.config/sublime-text-3/Packages/SublimeLinter-contrib-stylelint/stylelint_wrapper.js', '@', '--config', 'PROJECT_DIRECTORY/.stylelintrc']

HOME_DIRECTORY and PROJECT_DIRECTORY are paths When using stylelint v 7.1.0 the value of @ argument is relative to PROJECT_DIRECTORY, ex. ../../../../../tmp/SublimeLinter3-USER/test.css

But in stylelint v 7.4.2 the value of @ is absolute - /tmp/SublimeLinter3-USER/test.css

So there is no .stylelintrc in /tmp folder and linter is not able to process file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stylelint doesn't work on my Sublime Text 3 #1980 - GitHub
Hi I use the "stylelint 7.4.2" with "Sublinter-contribute-stylelint" but it doesn't work and I receive the following error on the console ...
Read more >
Setting up stylelint with Sublime Text 3 - Stack Overflow
After installing the stylelint everything seems to be running smoothly, only that sublime shows no linting errors even thought there are many. I ......
Read more >
SublimeLinter-stylelint - Package Control
This linter plugin for SublimeLinter provides an interface to stylelint. Labels linting, SublimeLinter, css, css3, less, sass, scss. Details. Version 3.3.
Read more >
How to Lint SCSS files? - Technical Support - Sublime Forum
open your project in ST · open your project folder in any terminal/command prompt you use · run npm init · run npm...
Read more >
Editor integrations - Stylelint
SublimeLinter-contrib-stylelint_d - Sublime Text plugin for Stylelint that run's on daemon. JetBrains IDEs – WebStorm, IntelliJ IDEA, PhpStorm, PyCharm, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found