Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stylelint-config-copilot-base

fuhlig811MIT1.0.0-rc.5

Opinionated Stylelint-Configuration

stylelint, linter, code-analysis, code-quality

readme

stylelint-config-copilot-base

Stylelint shareable config with stylelint's built-in rules

Install

npm install stylelint-config-copilot-base --save-dev

Usage

Add this to your Stylelint config:

{
    "extends": "stylelint-config-copilot-base"
}

Example: Rename .stylelintrc.example.js to .stylelintrc.js

Troubleshooting

  • VSCode: stylelint: Undefined rule unicode-bom: This is an issue that (might) occur when using vscode-stylelint (shinnn.stylelint) or vscode-stylelint-plus (hex-ci.stylelint-plus). Use the official stylelint.vscode-stylelint extension which should fix the problem. If the linter still throws the warning/error, you can overwrite the rule in your config:
"rules": {
  "unicode-bom": null
}

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[1.0.0-rc.4] - 22.04.204

  • breaking changes:
  • chore:
  • rules:
    • add 'selector-anb-no-unmatchable', 'media-feature-name-value-no-unknown', 'media-query-no-invalid'

[1.0.0-rc.3] - 31.01.2023

  • update deps

[1.0.0-rc.2] - 16.12.2021

  • fix tagged version 0.6.2-1.0.0-rc.1.0 => 1.0.0-rc.x

[1.0.0-rc.1] - 04.12.2021

This is the first release candidate for a stable version.

[0.7.0] - 15.08.2021

  • chore:
  • rules:
    • add rules introduced between stylelint between version 13.9.0 and 13.13.1

[0.6.1] - 27.01.2021

[0.6.0] - 09.01.2021

  • LICENSE: include license file from monorepo root

[0.5.0] - 06.01.2021

  • rules:
    • add conditional at-rules (if, else, else if) to be ignored for max-nesting-depth
    • allow duplicated properties for 'native' fallbacks

      Ignore consecutive duplicated properties with different values. Including duplicate properties (fallbacks) is useful to deal with older browsers support for CSS properties. E.g. using px units when rem isn't available. rule docs

    • allow 2 universal selectors: allow selectors like * + * (any element that has a previous sibling)

[0.4.1] - 27.11.2020

  • rules:
    • allow ch (remove from unit-disallowed-list)

[0.4.0] - 24.10.2020

[0.3.0] - 19.05.2020

  • chore
    • set minimum node version to >= 10
    • update dependencies

[0.2.1] - 24.03.2020

[0.2.0] - 04.03.2020

  • chore
    • update deps

[0.1.7] - 17.11.2019

  • chore:
  • fix:
    • enable unicode-bom. See README for troubleshooting.

[0.1.6] - 14.11.2019

[0.1.5] - 29.09.2019

  • fix:
    • disable unicode-bom rule until it is being fixed by stylelint-vscode (see PR)

Pull Request

[0.1.2] - 21.07.2019

  • docs:
    • add references to other styleling-config-copilot packages

[0.1.1] - 07.07.2019

  • chore:
  • rules:
    • disable value-keyword-case to avoid false negatives on fonts
    • disable at-rule-name-newline-after
    • ignore mixins for at-rule-empty-line-before

[0.1.0] - 02.06.2019

Added

  • add config:
    • all stylelint default rules
    • opinionated config
    • add example manifest
  • add documentation
  • add test-files (fixtures)