Skip to content

Commit

Permalink
fix: Enable extending lintstagedrc.
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Nov 22, 2022
1 parent 5967289 commit 009a32d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .lintstagedrc.json

This file was deleted.

5 changes: 5 additions & 0 deletions .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
'!(docs/**/*)*.{ts,js,json,html,md,mts}': ['eslint --fix', 'prettier --write'],
'cSpell.json': ['ts-node-esm scripts/fixCSpell.ts'],
'**/*.jison': ['pnpm -w run lint:jison'],
};
5 changes: 0 additions & 5 deletions packages/mermaid/.lintstagedrc.json

This file was deleted.

7 changes: 7 additions & 0 deletions packages/mermaid/.lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import baseConfig from '../../.lintstagedrc.mjs';
export default {
...baseConfig,
'src/docs/**': ['pnpm --filter mermaid run docs:build --git'],
'src/docs.mts': ['pnpm --filter mermaid run docs:build --git'],
'src/(defaultConfig|config|mermaidAPI).ts': ['pnpm --filter mermaid run docs:build --git'],
};

0 comments on commit 009a32d

Please sign in to comment.