Package detail

@lmc-eu/stylelint-config

lmc-eu2.6kBSD-3-Clausedeprecated8.0.0

LMC's Stylelint config is no longer supported. Please, use @almacareer/stylelint-config instead.

LMC's config for Stylelint

stylelint, lmc, config

readme

@lmc-eu/stylelint-config

npm version Node version Stylelint version

LMC’s config for Stylelint

Usage

# Yarn:
yarn add --dev @lmc-eu/stylelint-config stylelint-config-prettier

# npm:
npm install --save-dev @lmc-eu/stylelint-config stylelint-config-prettier

We assume you are using Prettier. That’s why we also recommend adding stylelint-config-prettier above.

Configuration extends community maintained config stylelint-config-standard-scss.

This config:

Configuration

@lmc-eu/stylelint-config

Use this ruleset to configure Stylelint to work with your code.

Recommended Stylelint Configuration

// .stylelintrc.js

'use strict';

module.exports = {
  extends: ['@lmc-eu/stylelint-config', 'stylelint-config-prettier'],
};
<summary>.stylelintrc or .stylelintrc.json</summary> json { "extends": ["@lmc-eu/stylelint-config", "stylelint-config-prettier"] }
<summary>package.json</summary> json { "stylelint": { "extends": ["@lmc-eu/stylelint-config", "stylelint-config-prettier"] } }

Legacy Configurations

Use this config to keep less strict ruleset that consists from the original one up to version 4.0.1:

@lmc-eu/stylelint-config/legacy

or its extended version with rules for properties order (formerly known as optional until 4.0.1):

@lmc-eu/stylelint-config/legacy-with-properties-order

Recommended Legacy Stylelint Configuration

// .stylelintrc.js

'use strict';

module.exports = {
  extends: ['@lmc-eu/stylelint-config/legacy', 'stylelint-config-prettier'],
};
<summary>.stylelintrc or .stylelintrc.json</summary> json { "extends": ["@lmc-eu/stylelint-config/legacy", "stylelint-config-prettier"] }
<summary>package.json</summary> json { "stylelint": { "extends": ["@lmc-eu/stylelint-config/legacy", "stylelint-config-prettier"] } }

Extended Legacy Configuration With Properties Order Ruleset

// .stylelintrc.js

'use strict';

module.exports = {
  extends: ['@lmc-eu/stylelint-config/legacy-with-properties-order', 'stylelint-config-prettier'],
};
<summary>.stylelintrc or .stylelintrc.json</summary> json { "extends": ["@lmc-eu/stylelint-config/legacy-with-properties-order", "stylelint-config-prettier"] }
<summary>package.json</summary> json { "stylelint": { "extends": ["@lmc-eu/stylelint-config/legacy-with-properties-order", "stylelint-config-prettier"] } }

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

8.0.0 (2024-07-03)

BREAKING CHANGES

Note: Version bump only for package @lmc-eu/stylelint-config

7.0.1 (2023-10-06)

Dependencies

  • Update dependency stylelint-order to v6 (578489c)

Note: Version bump only for package @lmc-eu/stylelint-config

7.0.0 (2023-10-06)

BREAKING CHANGES

  • stylelint: Drop support for Node.js v14 and older (dc2f921), closes #130

Note: Version bump only for package @lmc-eu/stylelint-config

6.0.0 (2023-01-16)

Dependencies

  • Update dependency stylelint-config-standard-scss to v6 (9b2c409)

Styles

  • repo: Rewrite documentation using Textlint ruleset (22e19bd)

    BREAKING CHANGES

    - Removed stylelint less than 14.14.0 from peer dependencies.
    

Note: Version bump only for package @lmc-eu/stylelint-config

5.0.0 (2022-10-07)

Features

  • stylelint-config: Add missing CSS properties to CSS properties order ruleset (d2e48be)

Note: Version bump only for package @lmc-eu/stylelint-config

5.0.0-alpha.1 (2022-10-07)

Features

  • stylelint-config: Allow private SASS variables prefixed with _ (542fdcc)

Note: Version bump only for package @lmc-eu/stylelint-config

5.0.0-alpha.0 (2022-09-26)

BREAKING CHANGES

  • stylelint-config: Switch to a community-maintained configurations (e302df9)

Note: Version bump only for package @lmc-eu/stylelint-config

4.0.1 (2022-05-05)

Dependencies

  • Update dependency stylelint-order to v5 (26880bd)

Note: Version bump only for package @lmc-eu/stylelint-config

4.0.0 (2022-03-25)

BREAKING CHANGES

  • stylelint-config: Remove camelCaseSvgKeywords in value-keyword-case (aa5a358)
    • this options requires svg keywords to be in camel case like currentColor
    • this casing is considered as legacy by community and shoudl be avoided

Note: Version bump only for package @lmc-eu/stylelint-config

3.0.1 (2022-03-08)

Features

  • stylelint-config: Set camelCaseSvgKeywords to true in value-keyword-case rule (37f8331)

Note: Version bump only for package @lmc-eu/stylelint-config

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines and LMC GitHub preset for the list of supported change types.

3.0.0 (2022-01-18)

BREAKING CHANGES

  • stylelint-config: Require Stylelint 14 (40f924f)

2.0.2 (2021-12-18)

Style

  • eslint-config-base: Reformat codebase using ESLint + Prettier (80d8074)
  • eslint-config-base: Apply base ESLint rules on current codebase (d86c0d1)

2.0.1 (2021-11-25)

Style

  • prettier: Apply prettier formatting to codebase (6a43307)

2.0.0 (2021-11-12)

BREAKING CHANGES

  • stylelint-config: Prefer double-colon notation for pseudo elements (baf1c4b)

Chores

  • Properly declare paths to repositories in package.json (a85199b)

1.0.4 (2021-11-02)

Documentation

  • Introduce lincense and add credit to strv for inspiration (a2b5a9e)

1.0.3 (2021-07-28)

Features

  • browserslist-config: Introduce Browserslist config (a7b5e1e)

1.0.2 (2021-06-03)

Note: Version bump only for package @lmc-eu/stylelint-config

1.0.1 (2021-04-27)

Bug Fixes

  • stylelint: Remove unknown rule (a25b577)

Documentation

  • stylelint: Add stylelint into tool table (f6973e2)

1.0.0 (2021-12-18)

Features

  • Introduce config for Stylelint (8338cfe)
  • stylelint: Move ordering properties into optional config (0dbfa51)
  • stylelint: We support hex colors (426baec)