mermaid/.lintstagedrc.mjs
Sidharth Vinod 3677d44a58
Revert "Replace esno & ts-node with tsx"
This reverts commit 75337287ea000d76cd835181cb7395d467271ea3.
2023-05-08 22:08:11 +05:30

12 lines
429 B
JavaScript

export default {
'!(docs/**/*)*.{ts,js,html,md,mts}': [
'eslint --cache --cache-strategy content --fix',
// don't cache prettier yet, since we use `prettier-plugin-jsdoc`,
// and prettier doesn't invalidate cache on plugin updates"
// https://prettier.io/docs/en/cli.html#--cache
'prettier --write',
],
'cSpell.json': ['ts-node-esm scripts/fixCSpell.ts'],
'**/*.jison': ['pnpm -w run lint:jison'],
};