Add prettier/eslint/commitlint config and wire up lint-checks CI
This commit is contained in:
parent
63ebb472ad
commit
6dd9c6e6ee
8 changed files with 2606 additions and 3 deletions
|
|
@ -11,6 +11,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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/node-checks@main
|
||||||
|
- uses: http://192.168.1.230:3000/nholtware/workflows/lint-checks@main
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: checks
|
needs: checks
|
||||||
|
|
|
||||||
1
.nvmrc
Normal file
1
.nvmrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
v26
|
||||||
3
.prettierignore
Normal file
3
.prettierignore
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
dist
|
||||||
|
node_modules
|
||||||
|
package-lock.json
|
||||||
4
.prettierrc.json
Normal file
4
.prettierrc.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"semi": true,
|
||||||
|
"trailingComma": "all"
|
||||||
|
}
|
||||||
3
commitlint.config.js
Normal file
3
commitlint.config.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
export default {
|
||||||
|
extends: ["@commitlint/config-conventional"],
|
||||||
|
};
|
||||||
8
eslint.config.js
Normal file
8
eslint.config.js
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
import tseslint from "typescript-eslint";
|
||||||
|
|
||||||
|
export default tseslint.config(
|
||||||
|
{
|
||||||
|
ignores: ["dist/**"],
|
||||||
|
},
|
||||||
|
...tseslint.configs.recommended,
|
||||||
|
);
|
||||||
2578
package-lock.json
generated
2578
package-lock.json
generated
File diff suppressed because it is too large
Load diff
11
package.json
11
package.json
|
|
@ -8,13 +8,20 @@
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"start": "node dist/index.js",
|
"start": "node dist/index.js",
|
||||||
"test": "npm run build && node --test dist/index.test.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": {
|
"engines": {
|
||||||
"node": ">=22"
|
"node": ">=22"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5.6.0",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue