mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
fix: Enable extending lintstagedrc.
This commit is contained in:
parent
5967289172
commit
009a32d20b
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"!(docs/**/*)*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"],
|
|
||||||
"cSpell.json": ["ts-node-esm scripts/fixCSpell.ts"],
|
|
||||||
"**/*.jison": ["pnpm run lint:jison"]
|
|
||||||
}
|
|
5
.lintstagedrc.mjs
Normal file
5
.lintstagedrc.mjs
Normal file
@ -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'],
|
||||||
|
};
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"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"]
|
|
||||||
}
|
|
7
packages/mermaid/.lintstagedrc.mjs
Normal file
7
packages/mermaid/.lintstagedrc.mjs
Normal file
@ -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'],
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user