I have a React application with Styled Components with ESlint / Stylelint / Prettier that makes a conflict of rules that excludes number-leading-zero on css rules.
So given this code:
import React from 'react';
import styled from…
I'm trying to configure stylelint on my project for sass, and this is my .stylelintrc:
defaultSeverity: warning
extends:
- stylelint-config-standard
- stylelint-config-recommended
- stylelint-config-sass-guidelines
plugins:
-…
I am trying to edit a BigCommerce theme using stencilLint. When I type the command:
PS C:\Users\joaom\OneDrive\Desktop\shelfology\cornerstone> stencil init
I get:
PS C:\Users\joaom\OneDrive\Desktop\shelfology\cornerstone> stencil…
I'm passing a list to a SASS mixin and it works (no error in the browser or console) but my editor (VS Code) says there are errors.
The code is:
@include gridAuto(
320px,
[
['sm', 2],
['', 1],
['lg', 3],
],
…
Im using style-lint for linting Scss files and styled-components (by using different styleint.config files).
Stylint seems to have an open issue when valid css is commentted out…
One big problem with major version upgrades with breaking changes from CSS/SASS libraries is that if you happened to override the library CSS classes, your CSS overrides become a potential increased risk/scope when upgrading.
So if a CSS library…
I've begun working in a large repo where no types are being exported or imported anywhere. This seemed odd until I attempted to do so and realized why: we're using stylelint (13.4.0) and it simply won't recognize import type { WhateverType }. It…
I am using stylelint and I have a custom color variables used in several properties such as border, background, color.
Example:
border: 1px solid t(lightGray);
background-color: t(lightBlue);
background-color: var(--lightBlue);
When I run…
I need to set stylelint globally because it seems like unnecessary work to configure every single project alone, and I am just unable to find such guide anywhere.
How to do this please?
I am using nextJS for development, for stylelint to validate my .scss and .css files.
I'm also using styled-jsx or css-in-js for component level styling (it's kind of requirement) and want to know if there's some library to validate styled-jsx below…
This post shows how to enable eslint for specific files.
I would like to take a similar approach with stylelint.
This config works to ignore all of my css files in that directory:
"stylelint.configOverrides": {
"ignoreFiles":…
In VSCode, in settings.json for one of my extensions is a line
"extends": "C:/Users/snarl/.vscode/extensions/stylelint-config-wordpress",
But that line is dimmed compared to the rest of the text in the file, as if disabled, or path not found…
We have a series of legacy CSS files, which need linting and minifying, and then a series of new SCSS files, which need linting, rendering into CSS and minifying. While linting the SCSS files, I'm not getting the desired test errors using Gulp with…
When running the serve command, and browser-sync launches the new tab with the running page, on this initial launch the page is without the CSS. The minified CSS file is available, it's in the dist folder, but until an additional refresh or save of…