2020-02-07 19:40:04 -06:00
|
|
|
{
|
|
|
|
"rules": {
|
2023-07-17 10:12:09 -05:00
|
|
|
"@emotion/syntax-preference": [2, "object"],
|
2022-10-07 05:46:28 -05:00
|
|
|
"no-restricted-imports": [
|
|
|
|
"error",
|
|
|
|
{
|
2024-04-25 00:12:43 -05:00
|
|
|
"patterns": ["@grafana/runtime", "@grafana/data/*", "@grafana/ui", "@grafana/e2e-selectors/*"],
|
2022-10-07 05:46:28 -05:00
|
|
|
"paths": [
|
|
|
|
{
|
|
|
|
"name": "react-i18next",
|
|
|
|
"importNames": ["Trans", "t"],
|
2024-04-25 00:12:43 -05:00
|
|
|
"message": "Please import from grafana-ui/src/utils/i18n instead",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2020-08-11 10:52:44 -05:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["**/*.{test,story}.{ts,tsx}"],
|
|
|
|
"rules": {
|
2020-11-24 03:38:41 -06:00
|
|
|
"no-restricted-imports": "off",
|
2024-04-25 00:12:43 -05:00
|
|
|
"react/prop-types": "off",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2020-02-07 19:40:04 -06:00
|
|
|
}
|