Files
safe-wallet/.lintstagedrc.mjs
477a916c0a chore: fix lint-staged to run prettier on staged files only (#7542)
* chore: simplify lint-staged prettier to run on staged files only

Previously each workspace had its own lint-staged rule that ran
`prettier --write .` (formatting the entire workspace directory).
This replaces all 6 rules with a single glob that runs prettier
only on the staged files, and adds coverage for markdown, JSON,
CSS, and YAML files.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

* chore: drop expo-module-scripts from notification-service-ios

Only used for tsconfig.plugin base config. Replaced with the shared
monorepo base tsconfig plus CommonJS overrides for Node.js prebuild
compatibility. This removes the transitive jest-snapshot-prettier
(prettier@^2) dep that was shadowing the root prettier@3.6.2 binary.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

* chore: simplify lint-staged to format all staged files

Use **/* with --ignore-unknown instead of an explicit extension list.
Prettier decides what it can format and skips the rest.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

---------

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
2026-03-26 17:11:21 +01:00

8 lines
247 B
JavaScript

export default {
'**/*': ['prettier --write --ignore-unknown'],
'apps/mobile/assets/fonts/safe-icons/safe-icons.icomoon.json': [
'node ./apps/mobile/scripts/generateIconTypes.js',
'git add ./apps/mobile/src/types/iconTypes.ts',
],
}