Add prettier/eslint/commitlint config and wire up lint-checks CI
All checks were successful
/ checks (push) Successful in 9s
/ deploy (push) Successful in 5s

This commit is contained in:
Noah Holt 2026-08-10 22:55:14 -05:00
parent 63ebb472ad
commit 6dd9c6e6ee
8 changed files with 2606 additions and 3 deletions

View file

@ -11,6 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: http://192.168.1.230:3000/nholtware/workflows/node-checks@main
- uses: http://192.168.1.230:3000/nholtware/workflows/lint-checks@main
deploy:
needs: checks

1
.nvmrc Normal file
View file

@ -0,0 +1 @@
v26

3
.prettierignore Normal file
View file

@ -0,0 +1,3 @@
dist
node_modules
package-lock.json

4
.prettierrc.json Normal file
View file

@ -0,0 +1,4 @@
{
"semi": true,
"trailingComma": "all"
}

3
commitlint.config.js Normal file
View file

@ -0,0 +1,3 @@
export default {
extends: ["@commitlint/config-conventional"],
};

8
eslint.config.js Normal file
View file

@ -0,0 +1,8 @@
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: ["dist/**"],
},
...tseslint.configs.recommended,
);

2578
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -8,13 +8,20 @@
"build": "tsc",
"start": "node dist/index.js",
"test": "npm run build && node --test dist/index.test.js",
"lint": "tsc --noEmit"
"lint": "eslint . && tsc --noEmit",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"engines": {
"node": ">=22"
},
"devDependencies": {
"typescript": "^5.6.0",
"@types/node": "^22.0.0"
"@types/node": "^22.0.0",
"eslint": "^9.13.0",
"typescript-eslint": "^8.15.0",
"prettier": "^3.3.3",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0"
}
}