Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build:clickhouse": "NEXT_PUBLIC_THEME=clickstack NEXT_PUBLIC_IS_LOCAL_MODE=true NEXT_PUBLIC_CLICKHOUSE_BUILD=true next build --webpack && node scripts/prepare-clickhouse-build-export.js",
"run:clickhouse": "test -d out && npx rimraf tmp && mkdir tmp && cp -r out tmp/clickstack && echo 'visit http://localhost:3000/clickstack to start' && npx serve tmp -l 3000 || echo 'run build:clickhouse first'",
"start": "next start",
"lint": "npx eslint . --ext .ts,.tsx --max-warnings 740",
"lint": "npx eslint . --ext .ts,.tsx --max-warnings 663",
"lint:fix": "npx eslint . --ext .ts,.tsx --fix",
"lint:styles": "stylelint **/*/*.{css,scss}",
"ci:lint": "yarn lint && yarn tsc --noEmit && yarn lint:styles --quiet",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/__tests__/SessionSidePanel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jest.mock('nuqs', () => {
const noop = () => {};
return {
...actual,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useQueryState: (key: string, parser?: { defaultValue?: unknown }) =>
key === 'sessionPanelEvent'
? [mockNuqs.sessionPanelEvent, mockNuqs.setSessionPanelEvent]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jest.mock('nuqs', () => {
const actual = jest.requireActual('nuqs');
return {
...actual,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useQueryState: (key: string, parser?: { defaultValue?: unknown }) => {
const hasValue = Object.prototype.hasOwnProperty.call(
mockQueryStore,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const mockRow = {

jest.mock('../DBRowDataPanel', () => ({
__esModule: true,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useRowData: () => ({
data: { data: [mockRow] },
isLoading: false,
Expand All @@ -88,7 +88,7 @@ jest.mock('../DBRowDataPanel', () => ({
jest.mock('@/source', () => ({
__esModule: true,
getEventBody: () => '__hdx_body',
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useSource: () => ({ data: undefined }),
}));

Expand Down Expand Up @@ -129,7 +129,7 @@ jest.mock('../ContextSidePanel', () => ({

jest.mock('../DBSessionPanel', () => ({
__esModule: true,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useSessionId: () => ({ rumSessionId: undefined, rumServiceName: undefined }),
DBSessionPanel: () => null,
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jest.mock('nuqs', () => {
const actual = jest.requireActual('nuqs');
return {
...actual,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useQueryState: (key: string, parser?: { defaultValue?: unknown }) => {
const hasValue = Object.prototype.hasOwnProperty.call(
mockQueryStore,
Expand Down Expand Up @@ -56,7 +56,7 @@ const LINK = {
const mockUseRowData = jest.fn();
jest.mock('../DBRowDataPanel', () => ({
__esModule: true,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useRowData: (args: unknown) => mockUseRowData(args),
ROW_DATA_ALIASES: {
DURATION_MS: '__hdx_duration',
Expand All @@ -82,14 +82,14 @@ const TRACE_SOURCE = {
jest.mock('@/source', () => ({
__esModule: true,
getEventBody: () => undefined,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useSource: ({ id }: { id: string | null }) =>
id === 'trace-src' ? { data: TRACE_SOURCE } : { data: undefined },
}));

jest.mock('../DBSessionPanel', () => ({
__esModule: true,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useSessionId: () => ({ rumSessionId: undefined, rumServiceName: undefined }),
DBSessionPanel: () => null,
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const LINKED_SPAN_NAME = 'consume order.created';
const mockUseRowData = jest.fn();
jest.mock('../DBRowDataPanel', () => ({
__esModule: true,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useRowData: (args: unknown) => mockUseRowData(args),
ROW_DATA_ALIASES: {
DURATION_MS: '__hdx_duration',
Expand All @@ -62,14 +62,14 @@ const TRACE_SOURCE = {
jest.mock('@/source', () => ({
__esModule: true,
getEventBody: () => undefined,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useSource: ({ id }: { id: string | null }) =>
id === 'trace-src' ? { data: TRACE_SOURCE } : { data: undefined },
}));

jest.mock('../DBSessionPanel', () => ({
__esModule: true,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useSessionId: () => ({ rumSessionId: undefined, rumServiceName: undefined }),
DBSessionPanel: () => null,
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jest.mock('nuqs', () => {
const actual = jest.requireActual('nuqs');
return {
...actual,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useQueryState: (key: string, parser?: { defaultValue?: unknown }) => {
const hasValue = Object.prototype.hasOwnProperty.call(
mockQueryStore,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jest.mock('nuqs', () => {
const actual = jest.requireActual('nuqs');
return {
...actual,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useQueryState: () => [false, mockSetKioskMode],
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jest.mock('nuqs', () => {
const actual = jest.requireActual('nuqs');
return {
...actual,
// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix

useQueryState: (key: string, parser?: { defaultValue?: unknown }) => {
const hasValue = Object.prototype.hasOwnProperty.call(
mockQueryStore,
Expand Down
Loading