feat(eslint): relax frontend imports for nfs

allow frontend plugins to import from other frontend plugins with same
plugin id to allow plugin overrides without unnecessary eslint warning.

relates to #31372

Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
This commit is contained in:
Hellgren Heikki
2025-10-09 15:11:17 +03:00
parent 9f6f46d234
commit a1dae7180d
7 changed files with 65 additions and 4 deletions
@@ -0,0 +1,19 @@
{
"name": "@internal/bar-override",
"backstage": {
"role": "frontend-plugin",
"pluginId": "bar"
},
"exports": {
".": "./src/index.ts",
"./BarPage": "./src/components/Bar.tsx",
"./package.json": "./package.json"
},
"dependencies": {
"inline-dep": "*",
"react-router": "*"
},
"devDependencies": {
"react-router-dom": "*"
}
}
@@ -1,7 +1,8 @@
{
"name": "@internal/bar",
"backstage": {
"role": "frontend-plugin"
"role": "frontend-plugin",
"pluginId": "bar"
},
"exports": {
".": "./src/index.ts",
@@ -1,7 +1,8 @@
{
"name": "@internal/foo",
"backstage": {
"role": "frontend-plugin"
"role": "frontend-plugin",
"pluginId": "foo"
},
"files": [
"dist",