From c72bdc83c8fab02fb4b1166f61989c961f8110e4 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 31 Oct 2022 20:30:05 +0530 Subject: [PATCH] chore: Cleanup lintStaged --- .lintstagedrc.json | 3 +-- package.json | 1 - packages/mermaid/.lintstagedrc.json | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.lintstagedrc.json b/.lintstagedrc.json index e42b2ca98..c43f5f89f 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,4 +1,3 @@ { - "!(docs/**/*)*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"], - "*.jison": ["pnpm run lint:jison"] + "!(docs/**/*)*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"] } diff --git a/package.json b/package.json index 0ca47bc14..2f2456a3a 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "release": "pnpm build", "lint": "eslint --cache --ignore-path .gitignore . && pnpm lint:jison && prettier --check .", "lint:fix": "eslint --fix --ignore-path .gitignore . && prettier --write .", - "lint:jison": "ts-node-esm --transpileOnly packages/mermaid/src/jison/lint.mts", "cypress": "cypress run", "cypress:open": "cypress open", "e2e": "start-server-and-test dev http://localhost:9000/ cypress", diff --git a/packages/mermaid/.lintstagedrc.json b/packages/mermaid/.lintstagedrc.json index 00c7cb7f2..84afac8cb 100644 --- a/packages/mermaid/.lintstagedrc.json +++ b/packages/mermaid/.lintstagedrc.json @@ -4,5 +4,8 @@ ], "src/docs.mts": [ "pnpm --filter mermaid run docs:build --git" + ], + "*.jison": [ + "pnpm run lint:jison" ] } \ No newline at end of file