diff --git a/.eslintrc.json b/.eslintrc.json index 306d0c245..252787e99 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,8 @@ { - "ignorePatterns": ["node_modules/", "dist/"], + "ignorePatterns": [ + "node_modules/", + "dist/" + ], "env": { "browser": true, "es2021": true @@ -14,7 +17,9 @@ "env": { "node": true }, - "files": [".eslintrc.{js,cjs}"], + "files": [ + ".eslintrc.{js,cjs}" + ], "parserOptions": { "sourceType": "script" } @@ -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", { @@ -42,4 +48,4 @@ } ] } -} +} \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/OTHER.yml b/.github/ISSUE_TEMPLATE/OTHER.yml index 50ef31571..27d160454 100644 --- a/.github/ISSUE_TEMPLATE/OTHER.yml +++ b/.github/ISSUE_TEMPLATE/OTHER.yml @@ -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 @@ -12,4 +10,4 @@ body: description: Please describe the problem with the documentation in detail. placeholder: "..." validations: - required: true + required: true diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml index ebf813ff7..72cc7e9a6 100644 --- a/.github/workflows/static_checks.yml +++ b/.github/workflows/static_checks.yml @@ -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 diff --git a/package.json b/package.json index 5e9e72419..58d560a13 100644 --- a/package.json +++ b/package.json @@ -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",