Skip to content

Commit

Permalink
Migrate to stylelint 15 (#38)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
yayuyokitano authored Sep 23, 2023
1 parent 11c82b5 commit cbe563e
Show file tree
Hide file tree
Showing 5 changed files with 2,255 additions and 521 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.yml

This file was deleted.

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# stylelint-config-web-scrobbler [![NPM][NpmBadge]][Npm] [![Test][WorkflowBadge]][Workflow]
# @web-scrobbler/stylelint-config [![NPM][NpmBadge]][Npm] [![Test][WorkflowBadge]][Workflow]

Stylelint configuration file for Web Scrobbler projects.

## Usage

You can install `stylelint-config-web-scrobbler` by a following way:
You can install `@web-scrobbler/stylelint-config` in the following way:
```sh
> npm install --save-dev stylelint-config-web-scrobbler
> npm install --save-dev @web-scrobbler/stylelint-config
```

Then, add `stylelint-config-web-scrobbler` to the `extends` array in your
Then, add `@web-scrobbler/stylelint-config` to the `extends` array in your
`.stylelintrc.*` file.
```json
{
"extends": [
"some-other-config-you-use",
"stylelint-config-web-scrobbler"
"@web-scrobbler/stylelint-config"
]
}
```
Expand All @@ -25,9 +25,9 @@ Then, add `stylelint-config-web-scrobbler` to the `extends` array in your
Licensed under the [MIT License](./LICENSE).

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

<!-- Related pages -->
[Npm]: https://www.npmjs.com/package/stylelint-config-web-scrobbler
[Npm]: https://www.npmjs.com/package/@web-scrobbler/stylelint-config
[Workflow]: https://github.com/web-scrobbler/stylelint-config-web-scrobbler/actions?query=workflow%3ALint
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
extends: [
'stylelint-config-standard-scss',
],
'plugins': [
'stylelint-order',
],
Expand All @@ -15,7 +18,7 @@ module.exports = {
'comment-no-empty': true,
'declaration-bang-space-after': 'never',
'declaration-bang-space-before': 'always',
'declaration-colon-space-after': 'always',
'declaration-colon-space-after': 'always-single-line',
'declaration-colon-space-before': 'never',
'declaration-empty-line-before': 'never',
'declaration-block-no-duplicate-properties': true,
Expand All @@ -36,12 +39,14 @@ module.exports = {
'number-leading-zero': 'always',
'number-no-trailing-zeros': true,
'property-case': 'lower',
'property-no-vendor-prefix': [true, { ignoreProperties: ['transform', 'perspective', 'backface-visibility', 'appearance'] }],
'property-no-unknown': true,
'selector-attribute-brackets-space-inside': 'never',
'selector-attribute-operator-space-after': 'never',
'selector-attribute-operator-space-before': 'never',
'selector-combinator-space-after': 'always',
'selector-combinator-space-before': 'always',
'selector-class-pattern': '^[a-z][a-zA-Z0-9]+$',
'selector-descendant-combinator-no-non-space': true,
'selector-max-empty-lines': 0,
'selector-max-id': 0,
Expand Down
Loading

0 comments on commit cbe563e

Please sign in to comment.