Skip to content
Merged
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
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: build

on:
pull_request:
push:
branches: [master]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
name: svelte-check + tests + build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: svelte-check
run: npm run check

- name: Tests
run: npm test

- name: Build
run: npm run build

audit:
name: npm audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Audit
run: npm audit --audit-level=high
73 changes: 0 additions & 73 deletions .github/workflows/ci.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: lint

on:
pull_request:
push:
branches: [master]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
uses: nyuchi/.github/.github/workflows/reusable-lint.yml@main
with:
# .svelte is excluded — formatting it needs prettier-plugin-svelte,
# which the org's reusable-lint workflow does not install. Svelte
# files stay locally-formattable; CI lints the rest.
prettier-glob: "**/*.{md,mdx,json,jsonc,ts,css,mjs}"
30 changes: 15 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# build output
dist/
.astro/
# SvelteKit
.svelte-kit
build

# dependencies
node_modules/
# Vercel adapter output
.vercel

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Dependencies
node_modules

# environment variables
# Environment
.env
.env.production
.env.*
!.env.example

# macOS-specific files
.DS_Store
# Logs
npm-debug.log*
*.log

# IDE
# OS / IDE
.DS_Store
.vscode/
.idea/
*.swp
Expand Down
13 changes: 13 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// markdownlint-cli2 config — paths in scope for this repo.
{
"config": {
"extends": ".markdownlint.jsonc",
},
"globs": ["**/*.md", "**/*.mdx"],
"ignores": [
"node_modules/**",
"**/.svelte-kit/**",
"**/.vercel/**",
"build/**",
],
}
13 changes: 13 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// markdownlint-cli2 config — relaxed defaults that match nyuchi/.github.
//
// See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
{
"default": true,
"MD013": false,
"MD033": false,
"MD041": false,
"MD040": false,
"MD024": { "siblings_only": true },
"MD007": { "indent": 2 },
"MD060": false,
}
8 changes: 4 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dist/
node_modules/
.astro/
.svelte-kit
build
.vercel
node_modules
package-lock.json
*.md
13 changes: 2 additions & 11 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
{
"semi": true,
"singleQuote": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 100,
"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
]
"printWidth": 80
}
36 changes: 36 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# yamllint config — matches nyuchi/.github.
#
# See https://yamllint.readthedocs.io/en/stable/configuration.html

extends: default

ignore: |
node_modules/
.svelte-kit/
.vercel/
build/

rules:
line-length:
max: 140
level: error
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true

truthy:
check-keys: false
level: error

document-start: disable

comments:
min-spaces-from-content: 1

comments-indentation: disable

indentation:
spaces: 2
indent-sequences: consistent

empty-lines:
max-end: 1
Loading
Loading