mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
Decouple: Make eslint rules stricter and don't allow import of anything from public (#81711)
Decouple: Make eslint rules stronger and don't allow import of anything from public
This commit is contained in:
parent
7f1138dfe6
commit
3251b2e9b7
@ -129,8 +129,8 @@
|
||||
"zones": [
|
||||
{
|
||||
"target": "./public/app/plugins",
|
||||
"from": "./public/app",
|
||||
"except": ["./plugins"],
|
||||
"from": "./public",
|
||||
"except": ["./app/plugins"],
|
||||
"message": "Core plugins are not allowed to depend on Grafana core packages"
|
||||
}
|
||||
]
|
||||
|
@ -2,7 +2,6 @@ import { render, screen } from '@testing-library/react';
|
||||
import React from 'react';
|
||||
import { openMenu } from 'react-select-event';
|
||||
|
||||
import { TemplateSrvStub } from '../../../../../test/specs/helpers';
|
||||
import { MetricKind, ValueTypes } from '../types/query';
|
||||
import { MetricDescriptor } from '../types/types';
|
||||
|
||||
@ -10,8 +9,6 @@ import { Aggregation, Props } from './Aggregation';
|
||||
|
||||
const props: Props = {
|
||||
onChange: () => {},
|
||||
// @ts-ignore
|
||||
templateSrv: new TemplateSrvStub(),
|
||||
metricDescriptor: {
|
||||
valueType: '',
|
||||
metricKind: '',
|
||||
@ -19,6 +16,7 @@ const props: Props = {
|
||||
crossSeriesReducer: '',
|
||||
groupBys: [],
|
||||
templateVariableOptions: [],
|
||||
refId: 'A',
|
||||
};
|
||||
|
||||
describe('Aggregation', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user