Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Lint styles
run: npm run stylelint
- name: Run tests
run: npm run test
- name: Build project
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
3 changes: 3 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
dist-ssr
node_modules
31 changes: 31 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"extends": ["stylelint-config-standard-scss"],
"plugins": ["stylelint-order"],
"rules": {
"alpha-value-notation": "number",
"at-rule-no-unknown": null,
"declaration-empty-line-before": "never",
"declaration-no-important": true,
"function-name-case": "lower",
"media-feature-range-notation": "prefix",
"order/properties-alphabetical-order": true,
"order/order": [
"custom-properties",
"dollar-variables",
{
"type": "at-rule",
"name": "include",
"hasBlock": false
},
"declarations",
"at-variables",
"at-rules",
"rules"
],
"color-function-notation": "modern",
"scss/double-slash-comment-empty-line-before": null,
"scss/at-rule-no-unknown": null,
"selector-max-id": 0,
"unit-allowed-list": [ "%", "em", "fr", "deg", "ms", "px", "rem", "s", "vh", "vw"]
}
}
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default [
languageOptions: {
parserOptions: {
ecmaVersion: 12,
project: ['./tsconfig.json'],
project: ['./tsconfig.json', './tsconfig.node.json'],
},
},
},
Expand Down
Loading