Stylelint doesn't work on Sublime Text 3
See original GitHub issueHi 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:
- Created 7 years ago
- Comments:11
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Don’t suppose you got any further with this? Getting the same error and can’t seem to fix.
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
andPROJECT_DIRECTORY
are paths When usingstylelint v 7.1.0
the value of@
argument is relative toPROJECT_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.