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:
@@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user