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
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm typecheck
- run: pnpm test
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec lint-staged
2 changes: 2 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pnpm typecheck
pnpm test
7 changes: 7 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { karibsen } from "@karibsen/eslint-config";
import type { Linter } from "eslint";
import type { FlatConfigComposer } from "eslint-flat-config-utils";

const config: FlatConfigComposer<Linter.Config> = karibsen();

export default config;
20 changes: 17 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "comark-seo",
"version": "0.2.0",
"version": "0.2.1",
"description": "Comark plugin that analyses Markdown for SEO",
"license": "MIT",
"author": "Corentin NELHOMME <contact@karibsen.fr>",
Expand Down Expand Up @@ -38,16 +38,30 @@
"typecheck": "tsc --noEmit",
"play": "tsx playground/text.ts",
"prepublishOnly": "pnpm run typecheck && pnpm run build",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepare": "husky"
},
"peerDependencies": {
"comark": ">=0.4.0"
},
"devDependencies": {
"@karibsen/eslint-config": "^0.1.0",
"@types/node": "^26.5.1",
"comark": "^0.7.0",
"eslint": "^10.12.0",
"eslint-flat-config-utils": "^3.2.0",
"husky": "^9.1.7",
"jiti": "^2.7.0",
"lint-staged": "^17.6.0",
"tsdown": "^0.23.0",
"tsx": "^4.23.13",
"typescript": "^7.0.2"
"typescript": "^6.0.3",
"vitest": "^5.0.4"
},
"lint-staged": {
"*.{ts,js,mjs}": "eslint --fix"
}
}
Loading
Loading