Skip to content

Commit

Permalink
Merge pull request #1243 from CleverCloud/stylelint/fix-custom-syntax
Browse files Browse the repository at this point in the history
Stylelint: fix random errors in IDE related to custom syntax
  • Loading branch information
florian-sanders-cc authored Nov 25, 2024
2 parents 718cfc2 + 32d43c0 commit 0b4fb42
Show file tree
Hide file tree
Showing 5 changed files with 357 additions and 326 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: '[Code quality] Check types imports'
run: npm run components:check-type-imports
- name: '[Code quality] Check Stylelint'
run: npm run stylelint:ci
run: npm run stylelint
- name: '[Code quality] Check Prettier (formatting)'
run: npm run format:check
- name: '[Code quality] Check i18n'
Expand Down
5 changes: 3 additions & 2 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": ["stylelint-config-standard"],
"plugins": ["stylelint-order"],
"customSyntax": "postcss-lit",
"customSyntax": "postcss-styled-syntax",
"rules": {
"order/properties-alphabetical-order": true,
"no-duplicate-selectors": true,
Expand All @@ -15,7 +15,8 @@
"rule-empty-line-before": [
"always-multi-line",
{
"except": ["first-nested"]
"except": ["first-nested", "after-single-line-comment"],
"ignore": ["after-comment"]
}
],
"selector-pseudo-element-colon-notation": "double",
Expand Down
8 changes: 2 additions & 6 deletions docs/contributing/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ This project provides a series of tasks you can run as [npm scripts](https://doc

* Upload all assets in `cdn-ui` to the preview CDN remote object storage.
* You can get more details by reading:
* [the documentation about the preview](https://www.clever-cloud.com/doc/clever-components/?path=/docs/%F0%9F%91%8B-contributing-previews--docs).
* [the documentation about the release](https://www.clever-cloud.com/doc/clever-components/?path=/docs/%F0%9F%91%8B-contributing-release--docs).
* [the documentation about the preview](https://www.clever-cloud.com/doc/clever-components/?path=/docs/%F0%9F%91%8B-contributing-previews--docs).
* [the documentation about the release](https://www.clever-cloud.com/doc/clever-components/?path=/docs/%F0%9F%91%8B-contributing-release--docs).

## `npm run cdn-release:build`

Expand Down Expand Up @@ -172,10 +172,6 @@ This project provides a series of tasks you can run as [npm scripts](https://doc

Check the CSS of our components with [Stylelint](https://stylelint.io/).

## `npm run stylelint:ci`

Used by our GitHub action to check our CSS and report errors.

## `npm run stylelint:fix`

Check the CSS of our components with [Stylelint](https://stylelint.io/) and fix errors automatically when it's possible.
Expand Down
Loading

0 comments on commit 0b4fb42

Please sign in to comment.