Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [stylelint]

Stylelint is a CSS linter that helps enforce conventions and check for errors in CSS. Use this tag for questions about using Stylelint tools on CSS files.

stylelint
0 votes
0 answers
32 views

Unmatched parenthesis that is not supposed to be a literal [duplicate]

I am making a stylelint configuration file (uses javascript). We use strings for regular expressions. I have [“^(\[a-z\]\[a-zA-Z0-9\]+)|(abc-+(.+))$”,{“message":"(selector) =\> Expected ...
Jill Grant's user avatar
0 votes
0 answers
53 views

Stylelint Error: "Expected a pseudo-class or pseudo-element" When Using SCSS Mixins to Generate CSS Variables

I'm encountering an issue with Stylelint when using SCSS mixins to generate CSS variables. The error message I receive is: Error: Expected a pseudo-class or pseudo-element. at /path/to/...
user1664377's user avatar
1 vote
0 answers
103 views

Unknown word (CssSyntaxError) in my html document

I am pretty new to development. I am getting this error and I don't know what's wrong. I think I have all the extensions installed that I will need for the project. I am using vs-code. I don't know if ...
Nad's user avatar
  • 11
0 votes
0 answers
40 views

stylelint extension in vscode not working

I downloaded the extension in vscode (I'd prefer having it work globally, since I'm mostly working with individual css files), here is what I have added in C:\Users\username\AppData\Roaming\Code\User\...
qwerty_99's user avatar
  • 766
0 votes
0 answers
75 views

stylelint not automatically fixing content as expected

I am trying to use the stylelint tool to automatically fix some css. I read through their docs and am using the CLI tool instead of with a traditional setup. I installed the tool using npm npm install ...
Daniel Tate's user avatar
  • 2,134
0 votes
0 answers
59 views

vscode-stylelint throws errors on the JS parts of CSS-in-JS

I'm using VSCode to edit a Lit project that uses Stylelint. The repo is here: https://github.com/RobertAKARobin/lit-stylelint-test Lit uses CSS-in-JS, where CSS blocks are prefixed with Lit's css tag ...
RobertAKARobin's user avatar
0 votes
0 answers
41 views

How to configure stylelint to ignore folder but include part of that folder?

How could I exclude some folder from being ignored by stylelint? Example I wand to ignore all folders and files in "styles" folder except "styles/not_to_ignore/" folder and "...
Rantiev's user avatar
  • 2,201
0 votes
0 answers
69 views

How to make regex work in stylelint rule?

i want to specify allowed values properties for 'background' and i made this rules: { 'declaration-property-value-allowed-list': { 'background': ['/^linear-gradient\(.*\)$/', '/var/...
dinocode's user avatar
0 votes
0 answers
55 views

Linting for Pug and SASS inside Svelte files

My current setup is SvelteKit with preprocessors (TypeScript, Pug & SASS). I already have eslint, pug-lint & stylelint in place, but I can't make pug-lint and stylelint work inside .svelte ...
CRIS's user avatar
  • 346
0 votes
1 answer
200 views

stylelint error in node_modules/meow/build/index.js:29

While inspection css files with phpstorm 2023.3 and node v20.11.0 npm 10.3.0 package.json: "devDependencies": { "eslint": "^8.56.0", "grunt": "^1.6....
Michael Schrading's user avatar
0 votes
0 answers
75 views

Stylelint Webstorm displaying errors in the top of the file

I have installed stylelint in my empty nextjs project using this guide. It works as expected, but I have 2 problems: For files which have no problems, it displays this notification all the time: If ...
Дядя Фея's user avatar
0 votes
0 answers
123 views

StyleLint error and warning highlighting does not work in Angular 16 in VS Code

I want to put linting for scss files using StyleLint for Angular 16, but for some reason the error highlighting and warnings don't work! The highlighting of errors and warnings in StyleLint works only ...
BladeHeroku's user avatar
0 votes
1 answer
200 views

Stylelint@16 not compatible with node 12, yarn install error

I have fallen into the pit of a broken environment. My current situation is that when I run yarn install I get an error of error [email protected]: The engine "node" is incompatible with this ...
Tiana Johnson's user avatar
0 votes
0 answers
197 views

WebStorm shows an error when configuring Stylelint

I ask for help in configuring Stylelint in the WebStorm IDE. I have ESLint and Prettier configured. Everything works fine. I decided to add Stylelint (scss), but I don't understand what else I have to ...
jakiehan's user avatar
0 votes
1 answer
277 views

"source.fixAll.stylelint": true. for stylelint not work

this is my code in my settings.json this code can't Autofix fails , i don't know why? "editor.codeActionsOnSave": { "source.fixAll.stylelint": true }, Manually enter valid ...
Neil Wu's user avatar

15 30 50 per page
1
2 3 4 5
21