Skip to content

Commit

Permalink
lint all files in src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tstikvoort committed Jul 12, 2024
1 parent d8845cf commit 106738d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"clean": "rimraf dist",
"format": "prettier --write --cache --ignore-unknown .",
"link-watch": "plugin-kit link-watch",
"lint": "eslint ./src/**/* --ext=.ts,.tsx --max-warnings 0",
"lint": "eslint ./src/** --ext=.ts,.tsx --max-warnings 0",
"prepublishOnly": "run-s build",
"watch": "pkg-utils watch --strict",
"prepare": "npm run build"
Expand Down
5 changes: 3 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { PageTreeConfig, PageMetadata } from './types';
import { SanityClient } from 'sanity';

import { getAllPageMetadata } from './helpers/page-tree';
import { getRawPageMetadataQuery } from './queries';
import { SanityClient } from 'sanity';
import { PageMetadata, PageTreeConfig } from './types';

export type { PageMetadata } from './types';

Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { StructureBuilder, DocumentList } from 'sanity/structure';
import { PageTreeDocumentListOptions } from './types';
import { DocumentList, StructureBuilder } from 'sanity/structure';

import { createPageTreeView } from './components/PageTreeView';
import { PageTreeDocumentListOptions } from './types';

export { definePageType } from './schema/definePageType';
export { PageTreeField } from './components/PageTreeField';
export { PageTreeInput } from './components/PageTreeInput';

export { definePageType } from './schema/definePageType';
export type { PageTreeConfig, PageTreeDocumentListOptions } from './types';

/**
Expand Down
5 changes: 3 additions & 2 deletions src/next.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { PageTreeConfig, PageMetadata } from './types';
import { FilteredResponseQueryOptions, SanityClient } from 'next-sanity';

import { getAllPageMetadata } from './helpers/page-tree';
import { getRawPageMetadataQuery } from './queries';
import { FilteredResponseQueryOptions, SanityClient } from 'next-sanity';
import { PageMetadata, PageTreeConfig } from './types';

export type { PageMetadata } from './types';

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type PageMetadata = {

export type RawPageMetadata = {
// For user customizable language/title fields
[key: string]: any;
[key: string]: unknown;
_id: string;
_type: string;
_updatedAt: string;
Expand Down

0 comments on commit 106738d

Please sign in to comment.