mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
1.0 KiB
1.0 KiB
Project guidelines
This repository contains configuration files and helper scripts for managing a development environment. Dotbot drives the installation and host specific folders under hosts/ include extra configs.
Keeping the repository up to date
- Update submodules with
git submodule update --remote --merge. - Pull the latest changes and run
./install. - Run
yarn installwheneverpackage.jsonchanges.
Linting and tests
-
Format files with:
yarn fix:prettier yarn fix:markdown -
Shell scripts must pass
shellcheck. Run:find . -path ./node_modules -prune -o -name '*.sh' -print0 | xargs -0 shellcheck -
Execute tests with
yarn test.
Debugging lint issues
yarn lint:prettierandyarn lint:markdownshow formatting errors.- Ensure shell scripts have a shebang or
# shellcheck shell=bashdirective. - Consult
.shellcheckrcfor project specific checks.
Scripts rely on helpers in config/shared.sh so they run under Bash, Zsh and Fish by default.