mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-10 17:49:40 +02:00
chore: Enable eslint in CI
This commit is contained in:
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -37,9 +37,9 @@ jobs:
|
|||||||
- name: Run Linting
|
- name: Run Linting
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if ! pnpm run lint; then
|
if ! pnpm run lint:ci; then
|
||||||
# print a nice error message on lint failure
|
# print a nice error message on lint failure
|
||||||
ERROR_MESSAGE='Running `pnpm run lint` failed.'
|
ERROR_MESSAGE='Running `pnpm run lint:ci` failed.'
|
||||||
ERROR_MESSAGE+=' Running `pnpm -w run lint:fix` may fix this issue. '
|
ERROR_MESSAGE+=' Running `pnpm -w run lint:fix` may fix this issue. '
|
||||||
ERROR_MESSAGE+=" If this error doesn't occur on your local machine,"
|
ERROR_MESSAGE+=" If this error doesn't occur on your local machine,"
|
||||||
ERROR_MESSAGE+=' make sure your packages are up-to-date by running `pnpm install`.'
|
ERROR_MESSAGE+=' make sure your packages are up-to-date by running `pnpm install`.'
|
||||||
|
@@ -25,8 +25,9 @@
|
|||||||
"dev:vite": "tsx .vite/server.ts",
|
"dev:vite": "tsx .vite/server.ts",
|
||||||
"dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite",
|
"dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite",
|
||||||
"release": "pnpm build",
|
"release": "pnpm build",
|
||||||
"lint": "pnpm biome check",
|
"lint": "pnpm biome check && pnpm lint:jison",
|
||||||
"lint:fix": "pnpm biome check --write",
|
"lint:fix": "pnpm biome check --write",
|
||||||
|
"lint:ci": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint --cache --cache-strategy content . && pnpm lint",
|
||||||
"lint:jison": "tsx ./scripts/jison/lint.mts",
|
"lint:jison": "tsx ./scripts/jison/lint.mts",
|
||||||
"contributors": "tsx scripts/updateContributors.ts",
|
"contributors": "tsx scripts/updateContributors.ts",
|
||||||
"cypress": "cypress run",
|
"cypress": "cypress run",
|
||||||
|
Reference in New Issue
Block a user