Skip to content

Commit 40f924f

Browse files
committed
BREAKING CHANGES(stylelint-config): Require Stylelint 14
1 parent d72d6da commit 40f924f

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

packages/stylelint-config/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
# `@lmc-eu/stylelint-config`
22

3-
> LMC's config for stylelint
3+
[![npm version](https://img.shields.io/npm/v/@lmc-eu/stylelint-config?label=npm%20package&logo=npm)](https://www.npmjs.org/package/@lmc-eu/stylelint-config)
4+
[![Node version](https://img.shields.io/node/v/@lmc-eu/stylelint-config.svg?style=flat&logo=nodedotjs)](http://nodejs.org/download/)
5+
[![Stylelint version](https://img.shields.io/npm/dependency-version/@lmc-eu/stylelint-config/peer/stylelint?logo=stylelint)](https://github.com/stylelint/stylelint)
6+
7+
> LMC's config for Stylelint
48
59
## Usage
610

711
```bash
812
# Yarn:
9-
yarn add --dev @lmc-eu/stylelint-config
13+
yarn add --dev @lmc-eu/stylelint-config stylelint-config-prettier
1014

1115
# npm:
12-
npm install --save-dev @lmc-eu/stylelint-config
16+
npm install --save-dev @lmc-eu/stylelint-config stylelint-config-prettier
1317
```
1418

15-
> We assume you are using prettier.
19+
> We assume you are using Prettier. That's why we also recommend adding
20+
> `stylelint-config-prettier` above.
1621
1722
## Configurations
1823

1924
### `@lmc-eu/stylelint-config`
2025

21-
Use this ruleset to configure StyleLint to work with your code
26+
Use this ruleset to configure Stylelint to work with your code.
2227

2328
## Optional configurations
2429

packages/stylelint-config/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
2-
plugins: ['stylelint-order'],
3-
defaultSeverity: 'error',
2+
customSyntax: 'postcss-scss',
43
rules: {
54
'block-no-empty': true,
65
'string-no-newline': true,

packages/stylelint-config/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@lmc-eu/stylelint-config",
33
"version": "2.0.2",
4-
"description": "LMC's config for stylelint",
4+
"description": "LMC's config for Stylelint",
55
"keywords": [
66
"stylelint",
77
"lmc",
@@ -22,10 +22,10 @@
2222
"node": ">=10"
2323
},
2424
"dependencies": {
25-
"stylelint-config-standard": "^20.0.0",
25+
"postcss-scss": "^4.0.3",
2626
"stylelint-order": "^4.1.0"
2727
},
2828
"peerDependencies": {
29-
"stylelint": "^13.12.0"
29+
"stylelint": "^14.2.0"
3030
}
3131
}

yarn.lock

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7058,6 +7058,11 @@ posix-character-classes@^0.1.0:
70587058
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
70597059
integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=
70607060

7061+
postcss-scss@^4.0.3:
7062+
version "4.0.3"
7063+
resolved "https://registry.yarnpkg.com/postcss-scss/-/postcss-scss-4.0.3.tgz#36c23c19a804274e722e83a54d20b838ab4767ac"
7064+
integrity sha512-j4KxzWovfdHsyxwl1BxkUal/O4uirvHgdzMKS1aWJBAV0qh2qj5qAZqpeBfVUYGWv+4iK9Az7SPyZ4fyNju1uA==
7065+
70617066
postcss-sorting@^5.0.1:
70627067
version "5.0.1"
70637068
resolved "https://registry.yarnpkg.com/postcss-sorting/-/postcss-sorting-5.0.1.tgz#10d5d0059eea8334dacc820c0121864035bc3f11"
@@ -8215,18 +8220,6 @@ strong-log-transformer@^2.0.0:
82158220
minimist "^1.2.0"
82168221
through "^2.3.4"
82178222

8218-
stylelint-config-recommended@^3.0.0:
8219-
version "3.0.0"
8220-
resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-3.0.0.tgz#e0e547434016c5539fe2650afd58049a2fd1d657"
8221-
integrity sha512-F6yTRuc06xr1h5Qw/ykb2LuFynJ2IxkKfCMf+1xqPffkxh0S09Zc902XCffcsw/XMFq/OzQ1w54fLIDtmRNHnQ==
8222-
8223-
stylelint-config-standard@^20.0.0:
8224-
version "20.0.0"
8225-
resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-20.0.0.tgz#06135090c9e064befee3d594289f50e295b5e20d"
8226-
integrity sha512-IB2iFdzOTA/zS4jSVav6z+wGtin08qfj+YyExHB3LF9lnouQht//YyB0KZq9gGz5HNPkddHOzcY8HsUey6ZUlA==
8227-
dependencies:
8228-
stylelint-config-recommended "^3.0.0"
8229-
82308223
stylelint-order@^4.1.0:
82318224
version "4.1.0"
82328225
resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-4.1.0.tgz#692d05b7d0c235ac66fcf5ea1d9e5f08a76747f6"

0 commit comments

Comments
 (0)