mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Add no-duplicate-case
eslint rule and fix violations (#97537)
* Add `no-duplicate-case` rule * Fix basic duplicated cases * Fix duplicated translations case * Fix alerting case
This commit is contained in:
parent
c5e8e71ee3
commit
084aad0b84
@ -85,6 +85,7 @@ module.exports = [
|
||||
},
|
||||
|
||||
rules: {
|
||||
'no-duplicate-case': 'error',
|
||||
'@grafana/no-border-radius-literal': 'error',
|
||||
'@grafana/no-unreduced-motion': 'error',
|
||||
'react/prop-types': 'off',
|
||||
|
@ -153,8 +153,6 @@ export function getNavTitle(navId: string | undefined) {
|
||||
return t('nav.slo.title', 'SLO');
|
||||
case 'plugin-page-k6-app':
|
||||
return t('nav.k6.title', 'Performance');
|
||||
case 'monitoring':
|
||||
return t('nav.observability.title', 'Observability');
|
||||
case 'plugin-page-grafana-k8s-app':
|
||||
return t('nav.kubernetes.title', 'Kubernetes');
|
||||
case 'plugin-page-grafana-dbo11y-app':
|
||||
|
@ -44,7 +44,7 @@ function useExpressionsCache() {
|
||||
// We want to use the same value for Reduce, Resample and Threshold
|
||||
case ExpressionQueryType.reduce:
|
||||
case ExpressionQueryType.resample:
|
||||
case ExpressionQueryType.resample:
|
||||
case ExpressionQueryType.threshold:
|
||||
expressionCache.current.reduce = value;
|
||||
expressionCache.current.resample = value;
|
||||
expressionCache.current.threshold = value;
|
||||
|
@ -82,7 +82,6 @@ function parseKeyValuePairs(raw: string): Record<string, string> {
|
||||
case `'`:
|
||||
// whitespace
|
||||
case ` `:
|
||||
case `\n`:
|
||||
case `\t`:
|
||||
case `\r`:
|
||||
case `\n`:
|
||||
|
@ -2203,9 +2203,6 @@
|
||||
"new-folder": {
|
||||
"title": "New folder"
|
||||
},
|
||||
"observability": {
|
||||
"title": "Observability"
|
||||
},
|
||||
"oncall": {
|
||||
"title": "OnCall"
|
||||
},
|
||||
|
@ -2203,9 +2203,6 @@
|
||||
"new-folder": {
|
||||
"title": "Ńęŵ ƒőľđęř"
|
||||
},
|
||||
"observability": {
|
||||
"title": "Øþşęřväþįľįŧy"
|
||||
},
|
||||
"oncall": {
|
||||
"title": "ØʼnCäľľ"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user