mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
27 lines
593 B
Plaintext
27 lines
593 B
Plaintext
{
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": ["@grafana/runtime", "@grafana/data/*", "@grafana/ui", "@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",
|
|
},
|
|
},
|
|
],
|
|
}
|