diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..4f240adf --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI Checks + +on: + pull_request: + branches: [main] + types: [opened, reopened] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "24" + + - name: JSON Check + run: | + find . -name "*.json" -not -path "./node_modules/*" | xargs -n 1 npx -y jsonlint -q + + - name: HTML Check + run: npx -y htmlhint "**/*.html" + + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.htmlhintrc b/.htmlhintrc new file mode 100644 index 00000000..2a26070e --- /dev/null +++ b/.htmlhintrc @@ -0,0 +1,7 @@ +{ + "id-unique": false, + "tag-pair": true, + "attr-lowercase": true, + "spec-char-escape": true, + "id-class-ad-誠": false +} diff --git a/.prettierignore b/.prettierignore index f78799e4..2e1fa2d5 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1 @@ -DB/*.js -Page/*.html -*.html *.md \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index 0af57de3..26ebccc8 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,7 +4,10 @@ "useTabs": true, "tabWidth": 2, "trailingComma": "es5", - "printWidth": 350, + "printWidth": 250, "bracketSpacing": false, - "proseWrap": "never" + "proseWrap": "never", + "bracketSameLine": true, + "htmlWhitespaceSensitivity": "ignore", + "singleAttributePerLine": false } diff --git a/404.html b/404.html index b5730326..1016f69b 100644 --- a/404.html +++ b/404.html @@ -1,9 +1,9 @@ - + Job Guide: 404 | FFXIV RU - +