Alerting: Fix wrong import (#108581)

* fix wrong import

* add eslint rule to no-restricted-imports

* eslint config update

* eslint config update
This commit is contained in:
Sonia Aguilar
2025-07-24 13:56:51 +02:00
committed by GitHub
parent 5066aec64d
commit 2e2bb605ea
2 changed files with 20 additions and 1 deletions
+18
View File
@@ -410,4 +410,22 @@ module.exports = [
],
},
},
{
name: 'grafana/no-extensions-imports',
files: ['**/*.{ts,tsx,js}'],
ignores: ['public/app/extensions/**/*'],
rules: {
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['app/extensions', 'app/extensions/*'],
message: 'Importing from app/extensions is not allowed',
},
],
},
],
},
},
];