Skip to content

Commit cbe563e

Browse files
authored
Migrate to stylelint 15 (#38)
* Migrate to Stylelint 15 * Allow vendor prefix (safari) * Add ignoreproperties * Change declaration-colon-space-after to always-single-line * Finalize * Regenerate lockfile * Update README.md
1 parent 11c82b5 commit cbe563e

File tree

5 files changed

+2255
-521
lines changed

5 files changed

+2255
-521
lines changed

.eslintrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# stylelint-config-web-scrobbler [![NPM][NpmBadge]][Npm] [![Test][WorkflowBadge]][Workflow]
1+
# @web-scrobbler/stylelint-config [![NPM][NpmBadge]][Npm] [![Test][WorkflowBadge]][Workflow]
22

33
Stylelint configuration file for Web Scrobbler projects.
44

55
## Usage
66

7-
You can install `stylelint-config-web-scrobbler` by a following way:
7+
You can install `@web-scrobbler/stylelint-config` in the following way:
88
```sh
9-
> npm install --save-dev stylelint-config-web-scrobbler
9+
> npm install --save-dev @web-scrobbler/stylelint-config
1010
```
1111

12-
Then, add `stylelint-config-web-scrobbler` to the `extends` array in your
12+
Then, add `@web-scrobbler/stylelint-config` to the `extends` array in your
1313
`.stylelintrc.*` file.
1414
```json
1515
{
1616
"extends": [
1717
"some-other-config-you-use",
18-
"stylelint-config-web-scrobbler"
18+
"@web-scrobbler/stylelint-config"
1919
]
2020
}
2121
```
@@ -25,9 +25,9 @@ Then, add `stylelint-config-web-scrobbler` to the `extends` array in your
2525
Licensed under the [MIT License](./LICENSE).
2626

2727
<!-- Badges -->
28-
[NpmBadge]: https://img.shields.io/npm/v/stylelint-config-web-scrobbler
28+
[NpmBadge]: https://img.shields.io/npm/v/@web-scrobbler/stylelint-config
2929
[WorkflowBadge]: https://github.com/web-scrobbler/stylelint-config-web-scrobbler/workflows/Lint/badge.svg
3030

3131
<!-- Related pages -->
32-
[Npm]: https://www.npmjs.com/package/stylelint-config-web-scrobbler
32+
[Npm]: https://www.npmjs.com/package/@web-scrobbler/stylelint-config
3333
[Workflow]: https://github.com/web-scrobbler/stylelint-config-web-scrobbler/actions?query=workflow%3ALint

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2+
extends: [
3+
'stylelint-config-standard-scss',
4+
],
25
'plugins': [
36
'stylelint-order',
47
],
@@ -15,7 +18,7 @@ module.exports = {
1518
'comment-no-empty': true,
1619
'declaration-bang-space-after': 'never',
1720
'declaration-bang-space-before': 'always',
18-
'declaration-colon-space-after': 'always',
21+
'declaration-colon-space-after': 'always-single-line',
1922
'declaration-colon-space-before': 'never',
2023
'declaration-empty-line-before': 'never',
2124
'declaration-block-no-duplicate-properties': true,
@@ -36,12 +39,14 @@ module.exports = {
3639
'number-leading-zero': 'always',
3740
'number-no-trailing-zeros': true,
3841
'property-case': 'lower',
42+
'property-no-vendor-prefix': [true, { ignoreProperties: ['transform', 'perspective', 'backface-visibility', 'appearance'] }],
3943
'property-no-unknown': true,
4044
'selector-attribute-brackets-space-inside': 'never',
4145
'selector-attribute-operator-space-after': 'never',
4246
'selector-attribute-operator-space-before': 'never',
4347
'selector-combinator-space-after': 'always',
4448
'selector-combinator-space-before': 'always',
49+
'selector-class-pattern': '^[a-z][a-zA-Z0-9]+$',
4550
'selector-descendant-combinator-no-non-space': true,
4651
'selector-max-empty-lines': 0,
4752
'selector-max-id': 0,

0 commit comments

Comments
 (0)