Enable code linting (#155)

This commit is contained in:
Piotr Rogowski 2023-09-17 10:34:06 +02:00 committed by GitHub
parent af720ef597
commit de961db2e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ jobs:
node-version-file: ".nvmrc"
cache: "npm"
- run: npm ci
- run: npm run lint:ts
- run: npm run lint:code
links:
runs-on: ubuntu-latest

View File

@ -7,12 +7,13 @@
"start": "docusaurus start --host 0.0.0.0",
"build": "docusaurus build",
"lint": "npm run lint:biome && npm run lint:ts && npm run lint:links && npm run lint:md",
"lint:biome": "biome check .",
"lint:code": "npm run lint:biome && npm run lint:ts",
"lint:fix": "biome format --write . && biome check --apply .",
"lint:fix:unsafe": "biome check . --apply-unsafe .",
"lint:ts": "tsc",
"lint:links": "node scripts/linkValidator.js",
"lint:md": "npx markdownlint-cli docs",
"lint:biome": "biome check .",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",