From 2f31c3f25901dc34fe31eb95e139fa242f908d1f Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 27 Apr 2026 21:29:15 +0200 Subject: [PATCH] workspaces: add root prettier and eslint ignores, fix base branch The root prettier and eslint runs shouldn't reach into the standalone workspaces, since each one manages its own formatting and linting. Also correct the ui workspace lint script to diff against origin/master to match the repo's default branch. Signed-off-by: Patrik Oldsberg Made-with: Cursor --- .eslintignore | 1 + .prettierignore | 1 + workspaces/ui/package.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintignore b/.eslintignore index 5cfe8188d3..9b95ea30b1 100644 --- a/.eslintignore +++ b/.eslintignore @@ -8,6 +8,7 @@ **/public/** **/microsite/** **/docs-ui/** +**/workspaces/** **/templates/** **/sample-templates/** playwright.config.ts diff --git a/.prettierignore b/.prettierignore index 7269620fe6..5ed491cc25 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,6 +3,7 @@ .yarn dist microsite +workspaces docs-ui/.next docs-ui/public docs-ui/out diff --git a/workspaces/ui/package.json b/workspaces/ui/package.json index 1596b6d4ba..0d14e77479 100644 --- a/workspaces/ui/package.json +++ b/workspaces/ui/package.json @@ -13,7 +13,7 @@ "test": "backstage-cli repo test", "test:all": "backstage-cli repo test --coverage", "fix": "backstage-cli repo fix", - "lint": "backstage-cli repo lint --since origin/main", + "lint": "backstage-cli repo lint --since origin/master", "lint:all": "backstage-cli repo lint", "prettier:check": "prettier --check .", "new": "backstage-cli new"