mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
626ac67dd7
* convert a bunch of grafana/ui to use emotion's object notation * convert some more grafana-ui emotion styles * more conversion * more conversion * finish conversion * fix unit tests * fix focus styles * remove semicolon from infobox story
28 lines
649 B
Plaintext
28 lines
649 B
Plaintext
{
|
|
"rules": {
|
|
"@emotion/syntax-preference": [2, "object"],
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": ["@grafana/runtime", "@grafana/data/*", "@grafana/ui", "@grafana/e2e", "@grafana/e2e-selectors/*"],
|
|
"paths": [
|
|
{
|
|
"name": "react-i18next",
|
|
"importNames": ["Trans", "t"],
|
|
"message": "Please import from grafana-ui/src/utils/i18n instead"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.{test,story}.{ts,tsx}"],
|
|
"rules": {
|
|
"no-restricted-imports": "off",
|
|
"react/prop-types": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|