mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
9079de068e
This reverts commit a97e9a1e17
.
27 lines
572 B
Plaintext
27 lines
572 B
Plaintext
{
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": ["@grafana/runtime", "@grafana/data/*", "@grafana/ui", "@grafana/e2e"],
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|