Coder Social home page Coder Social logo

fylgja / stylelint-config Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 493 KB

A shareable stylelint config object that enforces Fylgja's css rules

Home Page: https://fylgja.dev

License: MIT License

JavaScript 58.90% SCSS 5.06% CSS 18.52% Vue 4.58% HTML 4.22% Astro 3.53% PHP 1.67% Svelte 1.89% Liquid 1.63%
fylgja stylelint stylelint-config css scss astro linter-config svelte tailwindcss vue

stylelint-config's Introduction

Fylgja stylelint-config

NPM version GitHub Workflow Status License

Fylgja uses an opinionated Stylelint config to enforce its CSS rules across all of its projects.

This config promotes consistency and readability in Fylgja's CSS code, and helps to prevent errors and make the code easier to maintain.

Installation

npm install @fylgja/stylelint-config --save-dev

Usage

Set your Stylelint config to:

{
  "extends": "@fylgja/stylelint-config"
}

Extending the config

For advanced customization, you can extend the configuration by including a "rules" key in your settings.

This empowers you to either modify existing rules or introduce new ones.

For instance, if you wish to disable the selector-class-pattern rule, incorporate the following code into your configuration:

{
  "extends": "@fylgja/stylelint-config",
  "rules": {
    "selector-class-pattern": null
  }
}

Syntax Support

Our configuration is intelligently tailored based on the file type, ensuring the appropriate rules are applied automatically.

If your file is written in SCSS, the SCSS rules will be seamlessly integrated alongside our default rules.

SCSS

The Fylgja stylelint-config extends support for SCSS by incorporating stylelint scss and its standard rules.

While some rules are customized to align with our style guide, the majority remains the same.

TailwindCSS

Adds full compatibility with TailwindCSS, enabling you to freely utilize theme() and at-rules directly from TailwindCSS.

Svelte

Adds full compatibility with inline styles in Svelte, ensuring seamless integration.

Vue

Adds full compatibility with inline styles in Vue, ensuring seamless integration.

HTML, PHP, Astro, and More

The configuration effortlessly handles inline styles within HTML-based languages.

No additional rules are necessary, and we've even incorporated support for camelCase custom properties without the need for extra directives when working with Astro.

Rules

To gain deeper insights into the behavior of each rule and its associated settings, refer to the following resources:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.