Skip to content

Commit

Permalink
Adding stylelint #105 (#118)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Stanik <[email protected]>
  • Loading branch information
Melodycel and astanik authored Jul 9, 2024
1 parent 028189a commit c9e84fc
Show file tree
Hide file tree
Showing 17 changed files with 2,902 additions and 739 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ jobs:
wait-on-timeout: 180
- name: Check style with ESLint (lint)
run: npm run lint
- name: Check css with Stylelint (stylelint)
run: npm run stylelint
- name: Save PR number to file for subsequently Sonar Analysis
if: github.event_name == 'pull_request'
env:
Expand Down Expand Up @@ -119,6 +121,8 @@ jobs:
wait-on-timeout: 180
- name: Check style with ESLint (lint)
run: npm run lint
- name: Check css with Stylelint (stylelint)
run: npm run stylelint
check-branches:
name: "Check Pull Request Conditions"
runs-on: ubuntu-latest
Expand Down
15 changes: 15 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ "extends": [
"stylelint-config-standard",
"stylelint-config-recommended-vue"
],
"rules": {
"alpha-value-notation": "number",
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"number-max-precision": 5,
"no-empty-source": null,
"custom-property-pattern": null,
"at-rule-no-unknown": null,
"import-notation": "string"
}
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ npm run test:unit
```sh
npm run lint
```

### Lint with [Stylelint](https://stylelint.io/)

```sh
npm run stylelint
```
Loading

0 comments on commit c9e84fc

Please sign in to comment.