Is there a stylelint rule that can enforce a selector and attribute to be on the same line if there is only one attribute.
For example, this would error:
.foo{
color: #111;
}
Because we want it to look like this:
.foo{ color: #111; }
Note, if…
I'm getting error while committing the code on GIT. I'm setting with ESLINT and Stylelint. I have written simple css but I'm getting error. In the first line and first column getting issue
2:1 error Parsing error: Unexpected token
1 | /* Form…
I cannot make stylelint to work in PhpStorm
"C:\Program Files\nodejs\node.exe" "K:/dev/npm packages/node_modules/stylelint/bin/stylelint.js" -f json --stdin-filename…
I'm trying to figure out the correct regex expression for the selector-class-pattern's I want to allow with stylelint
https://stylelint.io/user-guide/rules/selector-class-pattern/
I would only like to allow lowercase letters and numbers seperated…
I use postcss-scss with stylelint on my .scss files and I'm trying to figure out how to enforce a rule so that all my variables follow the same naming convention throughout my project.
Is there a way to specify a format or pattern (i.e. a regex) for…
I'm new to Stylelint. I tried to understand docs and searched GitHub, but all explanations are full of double negatives and I'm confused!
The problem is that when I use // for comments, it throws Unknown word…
I want to lint my scss files and scss scope in .vue components. my config in stylelint.config:
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-recess-order',
'stylelint-config-prettier',
…
I follow the guide to install stylelint vscode extension, but it does not work on my computer.
I'm pretty sure that I follow all the necessary steps.
Install Extensions.
Disable the built-in linters in User setting.
Use npm to install stylelint and…
I am looking for a way to prevent a Webpack/SCSS/Postcss/CSS pipeline to create css files without vendor prefixes.
We use autoprefixer to apply vendor prefixes. In the past this build had been accidently disabled and the IE 11 build was broken.
I…
I'm working on a stylelint rule for modified BEM, which is essentially saying that a single underscore is not allowed, but a double underscore is.
match case:
foo__bar
non-match cases:
foo_bar
foo_bar__baz
I would (ideally) like not just a…
Is it possible to turn off stylelint linting in interpolations globally with the styled-components processor enabled? My eslint config should apply for this cases and I don't want my stylelint config to interfere with it. Are there any ways to…
I'm new using Nuxt js therefore same with nuxt.config.js file . I'm trying to get how can I set stylelint file on my Nuxt js project and run it everytime I press save, so the stylelint rules will be apply it. I mean same behaviour like with…
Is there a stylelint rule to obtain the following?
I've read the documentation but I wasn't unable to find one
/* bad */
a {
color: pink;
}
/* good */
a {
color: pink;
}
This is regarding stylelint.
I am looking for a solution to blacklist use of specific selectors like
html[dir="rtl"]
{
//some css
}
There is a rule to block specific property Link.
But there is no rule to block use of particular selector.
Is…