Alerting: Enable alerting eslint overrides for package (#104678)

This commit is contained in:
Tom Ratcliffe
2025-05-14 20:30:52 +02:00
committed by GitHub
parent 404eff947c
commit 16668b993f
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -269,7 +269,7 @@ module.exports = [
react: reactPlugin,
'@grafana': grafanaPlugin,
},
files: ['public/app/features/alerting/**/*.{ts,tsx,js,jsx}'],
files: ['public/app/features/alerting/**/*.{ts,tsx,js,jsx}', 'packages/grafana-alerting/**/*.{ts,tsx,js,jsx}'],
rules: {
'sort-imports': ['error', { ignoreDeclarationSort: true }],
'dot-notation': 'error',
@@ -310,7 +310,7 @@ module.exports = [
files: [
'public/app/features/alerting/**/__tests__/**/*.[jt]s?(x)',
'public/app/features/alerting/**/?(*.)+(spec|test).[jt]s?(x)',
'packages/grafana-ui/**/*.{spec,test}.{ts,tsx}',
'packages/{grafana-ui,grafana-alerting}/**/*.{spec,test}.{ts,tsx}',
],
rules: {
...testingLibraryPlugin.configs['flat/react'].rules,
@@ -3,7 +3,7 @@
*/
import { MergeDeep, MergeExclusive, OverrideProperties } from 'type-fest';
import type { Receiver, Integration as ReceiverIntegration, ListReceiverApiResponse } from './api.gen';
import type { ListReceiverApiResponse, Receiver, Integration as ReceiverIntegration } from './api.gen';
type GenericIntegration = OverrideProperties<
ReceiverIntegration,
@@ -1,6 +1,6 @@
import { fetchBaseQuery, TypedUseQueryHookResult } from '@reduxjs/toolkit/query/react';
import { TypedUseQueryHookResult, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
import { alertingAPI, type ListReceiverApiArg } from '../../api/v0alpha1/api.gen';
import { type ListReceiverApiArg, alertingAPI } from '../../api/v0alpha1/api.gen';
import type { EnhancedListReceiverApiResponse } from '../../api/v0alpha1/types';
// this is a workaround for the fact that the generated types are not narrow enough