mirror of https://github.com/FOME-Tech/wiki.git
Enable code linting (#155)
This commit is contained in:
parent
af720ef597
commit
de961db2e9
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue