mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-03-30 20:15:40 +00:00
Add four jobs to .github/workflows/test.yml: - lint: ruff check modules/ tests/ — zero violations enforced - typecheck: mypy modules/ with incremental strict mode; per-module disallow_untyped_defs where applicable - lint-frontend: ESLint (eslint-plugin-html) + HTMLHint on templates/ - lint-shell: ShellCheck --severity=warning on all .sh files Add [tool.ruff] and [tool.mypy] sections to pyproject.toml. Add .eslintrc.json, .htmlhintrc, package.json for frontend tooling.
17 lines
488 B
JSON
17 lines
488 B
JSON
{
|
|
"name": "meshcore-bot-frontend",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "Frontend linting for meshcore-bot web viewer templates",
|
|
"scripts": {
|
|
"lint:html": "htmlhint \"modules/web_viewer/templates/**/*.html\"",
|
|
"lint:js": "eslint \"modules/web_viewer/templates/**/*.html\"",
|
|
"lint:frontend": "npm run lint:html && npm run lint:js"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.57.0",
|
|
"eslint-plugin-html": "^8.1.1",
|
|
"htmlhint": "^1.1.4"
|
|
}
|
|
}
|