Narzędzia
tooling/use-project-scripts
Run checks through the project's own scripts and package manager; never install tools globally or switch package managers.
drobnaręcznefe-tooling
Dlaczego
The project's scripts pin the tool versions, flags and config the team agreed on. Running npx eslint with another version, installing a global tool, or running npm install in a pnpm project rewrites the lockfile, produces different results and creates noise in the pull request.
Poprawka
Detect the package manager from the lockfile (package-lock.json npm, pnpm-lock.yaml pnpm, yarn.lock Yarn, bun.lock Bun) or the packageManager field, then run <pm> run lint, test, typecheck, build as defined in package.json. If a script is missing, propose adding it rather than running an ad-hoc command.
Przykłady
# bad: in a pnpm project
npm install && npx eslint .
# good
pnpm install --frozen-lockfile && pnpm run lintŹródła
Fakty
- Identyfikator
tooling/use-project-scripts- Waga
- drobna
- Sprawdzanie
- ręczne ocenia człowiek; raport podaje to jako listę kontrolną
- Dotyczy plików
project- Uczy jej skill
fe-toolingBuild, lint and format tooling- Od wersji
- 0.1.0
Przeczytaj w terminalu
npx github:dawidolko/frontend-skills explain tooling/use-project-scripts