StateTimeline: Comment and metadata cleanup (#112960)
This commit is contained in:
@@ -485,6 +485,25 @@ module.exports = [
|
||||
},
|
||||
},
|
||||
|
||||
// dataviz prefers to use `clsx` over `cx` to compose classes as a rule for performance reasons
|
||||
{
|
||||
files: ['public/app/plugins/panel/state-timeline/**/*.{ts,tsx}'],
|
||||
rules: {
|
||||
'no-restricted-imports': [
|
||||
'error',
|
||||
withBaseRestrictedImportsConfig({
|
||||
patterns: [
|
||||
{
|
||||
group: ['@emotion/css'],
|
||||
importNames: ['cx'],
|
||||
message: 'Do not use "cx" from @emotion/css. Instead, use `clsx` and compose together only strings.',
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
// Old betterer rules config:
|
||||
{
|
||||
files: ['**/*.{js,jsx,ts,tsx}'],
|
||||
|
||||
Reference in New Issue
Block a user