Nothing Particularly Magnificent

    stylelint-config-beyond

    3.0.2 • Public • Published

    stylelint-config-beyond

    NPM version

    Beyond's postCSS stylelint configuration to enforce our internal coding standards.

    Extends stylelint-config-standard configuration.

    Turns on additional rules to enforce the common stylistic conventions found within a handful of CSS style guides, including:

    To see the rules that this config uses, please read the config itself.

    Installation

    npm install stylelint-config-beyond --save-dev

    Usage

    If you've installed stylelint-config-beyond locally within your project, create a new file in the root of your project .stylelintrc with these contents:

    {
      "extends": "stylelint-config-beyond"
    }

    Using stylelint with pre-commit

    Once you've added stylelint and configuration into your repository, you can install Git hooks with pre-commit framework.

    Add this to your .pre-commit-config.yaml under repos:

      - repo: git@bitbucket.org:byndops/stylelint-config-beyond.git
        rev: 'master'
        hooks:
          - id: stylelint
            args: ['--fix']

    Update rev to the commit SHA or tag in the repository you want to point to.

    If you want to use a specific version of dependencies, overwrite them in your configuration, for example:

      - repo: git@bitbucket.org:byndops/stylelint-config-beyond.git
        rev: 'master'
        hooks:
          - id: stylelint  
            additional_dependencies:
              - stylelint-config-beyond@1.0.3
              - stylelint@>=10.0.1

    The repository is not public, so you will need access to Beyond's Bitbucket Team to install these.

    Changelog

    License

    The stylelint hook for pre-commit is based on hooks in awebdeveloper/pre-commit-stylelint repository.

    Install

    npm i stylelint-config-beyond

    DownloadsWeekly Downloads

    756

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    8.12 kB

    Total Files

    5

    Last publish

    Collaborators

    • bynd-fe
    • simonstaton
    • c_ogoo