mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Betterer: Track deprecated layout components usage (#85574)
This commit is contained in:
+375
-81
File diff suppressed because it is too large
Load Diff
@@ -86,6 +86,18 @@ function countEslintErrors() {
|
|||||||
'@emotion/syntax-preference': [2, 'object'],
|
'@emotion/syntax-preference': [2, 'object'],
|
||||||
'@typescript-eslint/no-explicit-any': 'error',
|
'@typescript-eslint/no-explicit-any': 'error',
|
||||||
'@grafana/no-aria-label-selectors': 'error',
|
'@grafana/no-aria-label-selectors': 'error',
|
||||||
|
'no-restricted-imports': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
patterns: [
|
||||||
|
{
|
||||||
|
group: ['@grafana/ui*'],
|
||||||
|
importNames: ['Layout', 'HorizontalGroup', 'VerticalGroup'],
|
||||||
|
message: 'Use Stack component instead.',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
const nonTestFilesRules: Partial<Linter.RulesRecord> = {
|
const nonTestFilesRules: Partial<Linter.RulesRecord> = {
|
||||||
|
|||||||
Reference in New Issue
Block a user