Skip to content

Commit

Permalink
Setup check format in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
brenelz committed Jan 3, 2025
1 parent 636001e commit 17a0617
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
18 changes: 12 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"ignorePatterns": ["node_modules/", "dist/"],
"ignorePatterns": [
"node_modules/",
"dist/"
],
"env": {
"browser": true,
"es2021": true
Expand All @@ -14,7 +17,9 @@
"env": {
"node": true
},
"files": [".eslintrc.{js,cjs}"],
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
Expand All @@ -25,10 +30,11 @@
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "solid"],
"plugins": [
"@typescript-eslint",
"solid"
],
"rules": {
"quotes": ["error", "double"],
"semi": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand All @@ -42,4 +48,4 @@
}
]
}
}
}
6 changes: 2 additions & 4 deletions .github/ISSUE_TEMPLATE/OTHER.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: "Other Report 🌐"
title: "[Other]:"
description: Report something else we should know about the docs site!
labels: [
"pending review"
]
labels: ["pending review"]
body:
- type: textarea
id: issue
Expand All @@ -12,4 +10,4 @@ body:
description: Please describe the problem with the documentation in detail.
placeholder: "..."
validations:
required: true
required: true
2 changes: 2 additions & 0 deletions .github/workflows/static_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ jobs:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: ESLint check
run: pnpm check:lint
- name: Prettier check
run: pnpm check:format
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"build:lunaria": "lunaria build",
"preview:lunaria": "lunaria preview",
"check:lint": "eslint .",
"check:types": "tsc --noEmit"
"check:types": "tsc --noEmit",
"check:format": "prettier . --check"
},
"dependencies": {
"@kobalte/core": "^0.13.6",
Expand Down

0 comments on commit 17a0617

Please sign in to comment.