GithubHelp home page GithubHelp logo

geniem-rules-stylelint's Introduction

@geniem/geniem-rules-stylelint

A shareable stylelint config for CSS used at Geniem

Installation

npm install @geniem/geniem-rules-stylelint --save-dev

Usage

If you've installed @geniem/geniem-rules-stylelint locally within your project, just set your stylelint config to package.json:

{
    "name": "vendor/package",
    "version": "0.0.0",
    "stylelint": {
      "extends": [ "@geniem/geniem-rules-stylelint" ]
    }
}

If you've globally installed @geniem/geniem-rules-stylelint using the -g flag, then you'll need to use the absolute path to @geniem/geniem-rules-stylelint in your config e.g.

{
    "name": "vendor/package",
    "version": "0.0.0",
    "stylelint": {
        "extends": [ "/absolute/path/to/@geniem/geniem-rules-stylelint" ]
    }
}

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to change the at-rule-no-unknown rule to use its ignoreAtRules option, turn off the block-no-empty rule, and add the unit-whitelist rule:

{
  "name": "vendor/package",
  "version": "0.0.0",
  "stylelint": {
    "extends": "@geniem/geniem-rules-stylelint",
    "rules": {
      "at-rule-no-unknown": [
        true,
        {
          "ignoreAtRules": [ "extends" ]
        }
      ],
      "block-no-empty": null,
      "unit-whitelist": [ "em", "rem", "s" ]
    }
  }
}

License

Licensed under the MIT license.

geniem-rules-stylelint's People

Contributors

ivuorinen avatar

Stargazers

 avatar

Watchers

Panu Ervamaa avatar James Cloos avatar Mikko Paasto avatar  avatar Karlo Tuominen avatar Niko Karppinen avatar Jussi Alanen avatar Petteri Tiilikka avatar Villehard Pietarinen avatar Tuomo Karvinen avatar Timi-Artturi Mäkelä avatar  avatar Jani Kangas avatar Aleksi Jetsu avatar  avatar

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.