Chore: Add emotion object syntax rule to eslint (#95429)

add object syntax rule to eslint
This commit is contained in:
Ashley Harrison 2024-10-28 13:47:46 +00:00 committed by GitHub
parent f6a5e03bfb
commit 55673e2f41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 8 deletions

View File

@ -89,7 +89,6 @@ function countEslintErrors() {
const baseConfig = await cli.calculateConfigForFile(filePaths[0]);
const baseRules: Partial<Linter.RulesRecord> = {
'@emotion/syntax-preference': [2, 'object'],
'@typescript-eslint/no-explicit-any': 'error',
'@grafana/no-aria-label-selectors': 'error',
'no-restricted-imports': [

View File

@ -18,6 +18,7 @@
"import/external-module-folders": ["node_modules", ".yarn"],
},
"rules": {
"@emotion/syntax-preference": [2, "object"],
"@grafana/no-border-radius-literal": "error",
"@grafana/no-unreduced-motion": "error",
"react/prop-types": "off",

View File

@ -1,6 +1,5 @@
{
"rules": {
"@emotion/syntax-preference": [2, "object"],
"no-restricted-imports": [
"error",
{

View File

@ -139,9 +139,9 @@ function renderHeaderTitle(title: string, highlightText: NavModelItem['highlight
{highlightText && (
<ProBadge
text={highlightText}
className={css`
vertical-align: middle;
`}
className={css({
verticalAlign: 'middle',
})}
/>
)}
</h1>
@ -159,7 +159,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
flexDirection: 'column',
gap: theme.spacing(1),
}),
headerCanvas: css`
background: ${theme.colors.background.canvas};
`,
headerCanvas: css({
background: theme.colors.background.canvas,
}),
});