Questions tagged [stylelint]

Looking to maintain consistency and eliminate errors in your CSS code? Look no further than Stylelint! This essential CSS linter tool is designed to enforce conventions and spot any issues within your CSS files. Feel free to ask questions related to using Stylelint tools on CSS with this tag.

Avoiding additional empty lines between selectors when setting up Stylelint

Can anyone help me with configuring Stylelint options? Specifically, I want to enforce a rule that no empty lines are allowed between selectors in a list of selectors: &:focus, &:hover, &.active { color: #fb3a5e; text-align: left; text-de ...

Setting up Stylelint in a Vue 3 app with VSCode to automatically lint on save

I am looking to perform linting on my scss files and scss scope within .vue components. Here is what my configuration looks like in stylelint.config: module.exports = { extends: [ 'stylelint-config-standard', 'stylelint-config-recess-order', ...

Setting up Stylelint in a Next.js project: A step-by-step guide

I'm looking to incorporate Stylelint into my Next.js app. Can I modify the next.config.js file to include the stylelint-webpack-plugin, in order to receive style errors during compilation? // next.config.js module.exports = { reactStrictMode: true, }; ...

Why does npm install a different version of a dependency than what is listed in the package-lock.json file?

node -v v17.2.0 npm -v 8.1.4 package.json { "name": "untitled", "version": "0.0.0", "private": true, "devDependencies": { "stylelint": "^14.1.0" } } npm i ...

Optimizing SCSS Styles for WordPress Websites

Currently, I am in the process of setting up a configuration in Visual Studio Code for a project to adhere to WordPress standards when formatting SCSS code. Despite my efforts so far, I have not encountered any errors and the code is not being formatted up ...

CSS Stylelint rule to detect the 'missing selector' issue

My current process involves using stylelint to identify any CSS errors before building and deploying our site. However, a recent commit includes code that fails the CSS parser/minifier but passes stylelint validation. .example-class , /*.example-class-two ...

Setting up stylelint for SCSS styling

Currently, I am working on setting up stylelint for my sass project. Here's how my .stylelintrc is structured: defaultSeverity: warning extends: - stylelint-config-standard - stylelint-config-recommended - stylelint-config-sass-guidelines ...