Skip to content

⚙️ Stylelint configuration for fix errors before they cause problems in your code. It can also help you to develop good coding habits that will make your code easier to maintain in the long run.

Notifications You must be signed in to change notification settings

TheElegantCoding/stylelint-config-elegant-coding

Repository files navigation

Stylelint elegant coder configuration


  📦 SETUP⚙️ CONFIGURATION️️️🛰️ FEATURES

cover


       

About

Take your CSS to the next level with this powerful Stylelint configuration. Say goodbye to frustrating bugs and inconsistencies! This configuration proactively identifies potential errors in your CSS code before they can cause problems in your projects. By leveraging this tool, you can catch issues early on in the development cycle, streamlining your workflow and ensuring a smoother development experience.

Furthermore, Stylelint helps you cultivate good coding habits by enforcing consistent style conventions across your codebase. This not only improves readability and maintainability for yourself, but also fosters better collaboration within your development team.

The configuration itself is built to be adaptable, allowing you to customize it to your specific project needs and coding preferences. Embrace cleaner, more maintainable CSS code and elevate your overall development experience.

( Back to top )


Table of content

( Back to top )


Features

  • Stylelint - Stylelint rules to prevent errors and enforce best practices in your CSS.
  • Sass - Rules specifically designed for Sass syntax.
  • Stylistic - Keep your CSS clean and readable.
  • Order - Organize your CSS for easy maintenance.

( Back to top )


Requirements

  • node >= 18.16.0
  • stylelint >= 15.5.0

( Back to top )


Installation

Run this command to install eslint and the plugin.

Bun

bun i -D stylelint stylelint-config-elegant-coding

Pnpm

pnpm i -D stylelint stylelint-config-elegant-coding

Yarn

yarn i -D stylelint stylelint-config-elegant-coding

Npm

npm i -D stylelint stylelint-config-elegant-coding

( Back to top )


Usage

To use this plugin put in your repositorie you need to create an .stylelintrc file and add this lines of code.

{
  "extends": "stylelint-config-coder-dev"
}

( Back to top )


Configuration

Extra settings that can be added in the same file.

{
  "extends":
  [
    // This specifies that the configuration extends the "stylelint-config-elegant-coding" rules.
    "stylelint-config-elegant-coding",

    // This specifies that the configuration also extends the sass rules
    "stylelint-config-elegant-coding/sass"
  ],
  // Extra configuration can be done by stylelint see more in https://stylelint.io/user-guide/configure
}

( Back to top )


  Copyright © All rights reserved,
  developed by ElegantCoder and

About

⚙️ Stylelint configuration for fix errors before they cause problems in your code. It can also help you to develop good coding habits that will make your code easier to maintain in the long run.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published