Official website for J & D's Heritage Hog Farm, featuring information about whole hogs, red wattle hogs, and ordering options.
- Node.js (v14 or higher)
- Java (for Nu HTML Checker)
- Install dependencies:
npm install- The repository uses pre-commit hooks via Husky to automatically lint files before committing.
This project uses multiple linting and validation tools to ensure code quality:
- Purpose: Format and lint HTML/CSS/JS
- When to run: Before every commit (automatic via pre-commit hook)
- Usage:
npm run biome:check # Check and fix issues npm run biome:format # Format code
- Configuration:
biome.json
- Purpose: Validate HTML structure
- When to run: After editing pages/layouts
- Usage:
npm run html:validate
- Configuration:
.htmlvalidate.json
- Purpose: Standards compliance validation
- When to run: Before major releases
- Usage:
npm run html:vnu
- Note: Requires Java to be installed
- Purpose: CSS quality enforcement
- When to run: After styling changes (automatic via pre-commit hook)
- Usage:
npm run css:lint # Check CSS issues npm run css:fix # Fix CSS issues automatically
- Configuration:
.stylelintrc.json
- Purpose: JavaScript logic analysis
- When to run: After script changes (automatic via pre-commit hook)
- Usage:
npm run js:lint # Check JS issues npm run js:fix # Fix JS issues automatically
- Configuration:
eslint.config.mjs
Run all linters:
npm run lint:allAuto-fix all fixable issues:
npm run lint:fixRun tests (includes all linters):
npm testThe repository automatically runs linting tools on staged files before each commit using:
- Husky: Git hooks management
- lint-staged: Run linters on staged files only
Configuration is in .lintstagedrc.json.
index.html- Main website pagetest-formspree.html- Formspree integration testing pagedata/- Markdown content filesassets/- Images and other static assetsscripts/- PowerShell scripts for project setup
See LICENSE file for details.