For a situation like this:
@keyframes rotateMe {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(90deg);
}
}
Stylelint flags the 0deg as not needing the unit. I know for things like 0px to leave off the px, but I'm…
Is it possible to apply a flag to prevent Stylelint from enforcing an alphabetical order on vendor prefixes? I have a declaration order that I'm pleased with in my config, but my vendor prefixes are automatically generated through Autoprefixer…
Is it possible to have a nested property list and let do stylelint it's work? I tried to do this, but I got the following error:
events.js:85
throw er; // Unhandled 'error' event
^
Error: Expected pseudo-class or pseudo-element
I…
I am facing an error in the ESLint file after creating a React project using Vitejs
here is my eslint.cjs file content
module.exports = {
root: true,
env: {browser: true, es2020: true},
extends: [
'eslint:recommended',
…
I just found WebStorm is using the Stylelint to lint the README.md file.
Here's my Stylelint config:
{
"plugins": ["stylelint-prettier"],
"extends": [
"stylelint-config-standard",
"stylelint-config-recommended-less",
…
I get an error Unknown word CssSyntaxError for the following line:
animation: ${props => (css${DeterminateFill(props)} 1s ease-in forwards)};
It is within the following styled component
const DeterminateLinearProgressDiv = styled(ProgressDiv)`
…
I run stylelint in my angular project and I got error:
Unexpected unknown at-rule "@use"
My stylelint version is "^13.12.0".
I don't want to disable this rule. I want stylelint to know about "@use" in scss files.
I also tested in stylelint demo…
is there a rule in stylelint to make it so CSS appears before any subclass definitions?
i would like something like this to be invalid:
.some-class {
.some-sub-class {
background: red;
}
border: 1px;
}
I would like this to be…
When running a lint like Eslint, I can use the command npm run check-lint to check all the code on my project. The same goes with npm run check-types from typescript. Is there a similar command with stylelint? I didn't find anything on their docs…
I have several SASS files that should be compiled separately. I want to lint theirs and also theirs "imports"
I have some sass files:
// style.scss
@import "./styles/a.scss";
body {
background-color: #FFF;
}
// styles/a.scss
h1 {
…
I just downloaded stylelint (npm install -g stylelint) on my Mac (OS X 10.12.6 - Sierra) and essentially copied and tried to modify the sample configuration file I found here.
I then tried to run it on a CSS file I had and, after fixing some typos…
Is it possible to give error/warning if someone in the team tries to add the variable as property (not value) in any other file other than variable.css?
it could be either CSS native variables or Sass variables
I'm setting up a .stylint file for my VS Code editor. Here is the example:
#main > div // there is no comma so stylint should throw an error here
div {
...
}
#main > div, // this is ok, no error here
div {
...
}