/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
lint-staged.config.mjs
18 строк
576 B
Andrei L
chore(deps): upgrade lint-staged to 16 and scope linting to staged files (#26765)
25 июн 2026, 15:09
Не верифицирован
25 июн 2026, 15:09
e0029a9
Код
Авторство
О чём код?
// @ts-check /** * Root lint-staged config: prettier-only catch-all. * * lint-staged matches each staged file to the *closest* config and does not * merge configs. Files inside a workspace that has its own * `lint-staged.config.mjs` are handled there (eslint + prettier). This root * config covers everything else — docs/, scripts/, root files, and the * workspaces without an `.eslintrc.cjs` — formatting only. * * @type {import('lint-staged').Configuration} */ const config = { '*': ['prettier --cache --write --ignore-unknown'], }; export default config;