stylelint Questions
3
PostCSS BEM Linter plugin needs component definition for each block which is a time consuming thing to do in a legacy project.
Is there a way to use stylelint to check for the classes pattern and ...
3
Solved
I'm trying to lint BEM-style using stylelint and stylelint-selector-bem-pattern plugin but can't get it work.
My config is the following:
node: 5.11.0
gulp-stylelint: ^2.0.2
stylelint-selector-b...
3
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 U...
1
Trying to use CSS variables for the first time. Doing it in a react (create-react-app) application, and works great. Only issue is that there's no warnings if I mistype a variable name or just simp...
Expatiate asked 4/5, 2019 at 15:26
2
Anyone know of any plugin or any way of getting VSCode stylelint autofix when using styled-components?
Resilience asked 12/4, 2019 at 22:30
3
Solved
I configured stylelint in my WebStorm (2018.2.3) in Settings -> Languages and Frameworks -> Stylesheets -> Stylelint. And I have .stylelintrc in my root.
Right now stylelint successfully...
2
Solved
I'm at at a bit of a loss today. I wanted to add Stylelint to my Angular project, so I ran
npm install stylelint stylelint-config-standard --save-dev
to install stylelint and the standard config pl...
3
VScode doesn't show me any stylint errors.
package.json:
...
"postcss": "^8.4.12",
"postcss-scss": "^4.0.3",
"stylelint": "^14.7.1",
...
Footcandle asked 21/4, 2022 at 14:4
4
It works ok on ubuntu
I installed stylelint on iOS but when I run it I get
Error: Could not find "stylelint-config-standard". Do you need a configBasedir?
My config file is:
$ cat .stylel...
2
Solved
I want to use the css linter "stylelint" on my VScode text editor.
I downloaded the plugin and install it, then I make the "css.validate": false. But i don't have any box that show me error on my ...
Capriola asked 4/11, 2017 at 17:0
1
Solved
I get this Stylelint error suddenly in two of my components, I don't know why.
Unexpected empty source (no-empty-source)
I created a third component and removed content to the point where there is...
0
I am using stylelint and eslint and I just mentioned that it is possible to click on a line in eslint to directly open the file in my IDE and jump to that selected line.
I was wondering if it is p...
3
I followed this doc to add CSS reset to my app.
https://create-react-app.dev/docs/adding-css-reset/#indexcss
But it showed this message:
"stylelint": {
"extends": "stylelint-config-recommended"...
Kea asked 7/1, 2020 at 8:31
3
Solved
I use husky to check JS before commit.
In my package.json i have
"scripts": {
"lintStyles": "stylelint app/**/*.scss",
"fixStylesLinting": "stylelint app/**/*.scss --fix",
"lintJS": "eslint ap...
Min asked 22/4, 2017 at 16:53
2
Solved
I'm using stylelint with the standard format stylelint-config-standard and I'm encountering this error a lot with my stylesheets:
no-descending-specificity
An example of where it's happening is w...
Johan asked 10/9, 2019 at 12:43
2
On a project we have custom templates string to abstract styled-components functions. For example, we have templates string for the media-queries that look like this one:
// Definition
const for108...
Old asked 30/11, 2020 at 15:8
3
Solved
Is it possible to ignore my CSS path, beacuse I only use stylelint for SCSS validation?
e.g. - I have the following structure:
assets/
css/
scss/
How can I disable the css/ folder from being ...
Unruffled asked 6/2, 2017 at 14:56
3
Solved
Good day,
In above picture, stylelint prompt a CSS error in a JS file. Is there a way to stop stylelint from validating javascript file, I coundn't find such option in their official configurati...
Inhalant asked 1/6, 2018 at 8:56
1
I new to linting in scss file, I have a angular project with following scss file
p {
margin-left: 10px;
margin-top: 9px;
}
::ng-deep .expandButton {
margin: 10px;
color: teal;
border: none;
...
2
Solved
I'm using StyleLint with Webpack.
My current Webpack configuration is:
module.exports.styleLint = (isProd = false) => {
const options = {
configFile: './.stylelintrc.json',
files: '**/*.less'...
2
I'm setting up stylelint for a project, everything works as expected when run from the cli:
$ stylelint 'css/**/*.css' --fix
css/style.css
20:18 × Expected newline after ":" with a multi-line d...
Bohlin asked 22/8, 2018 at 19:35
1
Solved
I am using stylelints and I have some rules that I want to disable :
in less I have to do calc this way top: calc(~'50% + 30px'); but "function-calc-no-invalid" prevent it
https://styleli...
Ible asked 27/6, 2020 at 9:29
2
I'm working on trying to integrate stylelint into my freshly created Vue project.
I thought this would be a simple case of using the Stylelint Webpack Plugin but when I run yarn serve, any errors ...
Cypress asked 22/7, 2019 at 12:12
3
I have a webpack project and I want to use Stylelint for SCSS linting. I have followed the instructions on the Stylelint website and installed:
"stylelint": "^12.0.1",
"stylelint-webpack-plugin": ...
Cavalier asked 31/12, 2019 at 9:54
2
Solved
I looked at stylelint's docs and only saw a way to disable stylelint for running on for specific files/directories but what I really want is a way to disable specific rules) for specific files/dire...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.