Skip to content

Commit 6675e76

Browse files
committed
lint fixed
1 parent 2ff78c7 commit 6675e76

File tree

17 files changed

+223
-431
lines changed

17 files changed

+223
-431
lines changed

.astro/content.d.ts

Lines changed: 0 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -1,182 +0,0 @@
1-
declare module 'astro:content' {
2-
interface Render {
3-
'.mdx': Promise<{
4-
Content: import('astro').MarkdownInstance<{}>['Content'];
5-
headings: import('astro').MarkdownHeading[];
6-
remarkPluginFrontmatter: Record<string, any>;
7-
components: import('astro').MDXInstance<{}>['components'];
8-
}>;
9-
}
10-
}
11-
12-
declare module 'astro:content' {
13-
export interface RenderResult {
14-
Content: import('astro/runtime/server/index.js').AstroComponentFactory;
15-
headings: import('astro').MarkdownHeading[];
16-
remarkPluginFrontmatter: Record<string, any>;
17-
}
18-
interface Render {
19-
'.md': Promise<RenderResult>;
20-
}
21-
22-
export interface RenderedContent {
23-
html: string;
24-
metadata?: {
25-
imagePaths: Array<string>;
26-
[key: string]: unknown;
27-
};
28-
}
29-
}
30-
31-
declare module 'astro:content' {
32-
type Flatten<T> = T extends { [K: string]: infer U } ? U : never;
33-
34-
export type CollectionKey = keyof AnyEntryMap;
35-
export type CollectionEntry<C extends CollectionKey> = Flatten<AnyEntryMap[C]>;
36-
37-
export type ContentCollectionKey = keyof ContentEntryMap;
38-
export type DataCollectionKey = keyof DataEntryMap;
39-
40-
type AllValuesOf<T> = T extends any ? T[keyof T] : never;
41-
type ValidContentEntrySlug<C extends keyof ContentEntryMap> = AllValuesOf<
42-
ContentEntryMap[C]
43-
>['slug'];
44-
45-
/** @deprecated Use `getEntry` instead. */
46-
export function getEntryBySlug<
47-
C extends keyof ContentEntryMap,
48-
E extends ValidContentEntrySlug<C> | (string & {}),
49-
>(
50-
collection: C,
51-
// Note that this has to accept a regular string too, for SSR
52-
entrySlug: E,
53-
): E extends ValidContentEntrySlug<C>
54-
? Promise<CollectionEntry<C>>
55-
: Promise<CollectionEntry<C> | undefined>;
56-
57-
/** @deprecated Use `getEntry` instead. */
58-
export function getDataEntryById<C extends keyof DataEntryMap, E extends keyof DataEntryMap[C]>(
59-
collection: C,
60-
entryId: E,
61-
): Promise<CollectionEntry<C>>;
62-
63-
export function getCollection<C extends keyof AnyEntryMap, E extends CollectionEntry<C>>(
64-
collection: C,
65-
filter?: (entry: CollectionEntry<C>) => entry is E,
66-
): Promise<E[]>;
67-
export function getCollection<C extends keyof AnyEntryMap>(
68-
collection: C,
69-
filter?: (entry: CollectionEntry<C>) => unknown,
70-
): Promise<CollectionEntry<C>[]>;
71-
72-
export function getEntry<
73-
C extends keyof ContentEntryMap,
74-
E extends ValidContentEntrySlug<C> | (string & {}),
75-
>(entry: {
76-
collection: C;
77-
slug: E;
78-
}): E extends ValidContentEntrySlug<C>
79-
? Promise<CollectionEntry<C>>
80-
: Promise<CollectionEntry<C> | undefined>;
81-
export function getEntry<
82-
C extends keyof DataEntryMap,
83-
E extends keyof DataEntryMap[C] | (string & {}),
84-
>(entry: {
85-
collection: C;
86-
id: E;
87-
}): E extends keyof DataEntryMap[C]
88-
? Promise<DataEntryMap[C][E]>
89-
: Promise<CollectionEntry<C> | undefined>;
90-
export function getEntry<
91-
C extends keyof ContentEntryMap,
92-
E extends ValidContentEntrySlug<C> | (string & {}),
93-
>(
94-
collection: C,
95-
slug: E,
96-
): E extends ValidContentEntrySlug<C>
97-
? Promise<CollectionEntry<C>>
98-
: Promise<CollectionEntry<C> | undefined>;
99-
export function getEntry<
100-
C extends keyof DataEntryMap,
101-
E extends keyof DataEntryMap[C] | (string & {}),
102-
>(
103-
collection: C,
104-
id: E,
105-
): E extends keyof DataEntryMap[C]
106-
? string extends keyof DataEntryMap[C]
107-
? Promise<DataEntryMap[C][E]> | undefined
108-
: Promise<DataEntryMap[C][E]>
109-
: Promise<CollectionEntry<C> | undefined>;
110-
111-
/** Resolve an array of entry references from the same collection */
112-
export function getEntries<C extends keyof ContentEntryMap>(
113-
entries: {
114-
collection: C;
115-
slug: ValidContentEntrySlug<C>;
116-
}[],
117-
): Promise<CollectionEntry<C>[]>;
118-
export function getEntries<C extends keyof DataEntryMap>(
119-
entries: {
120-
collection: C;
121-
id: keyof DataEntryMap[C];
122-
}[],
123-
): Promise<CollectionEntry<C>[]>;
124-
125-
export function render<C extends keyof AnyEntryMap>(
126-
entry: AnyEntryMap[C][string],
127-
): Promise<RenderResult>;
128-
129-
export function reference<C extends keyof AnyEntryMap>(
130-
collection: C,
131-
): import('astro/zod').ZodEffects<
132-
import('astro/zod').ZodString,
133-
C extends keyof ContentEntryMap
134-
? {
135-
collection: C;
136-
slug: ValidContentEntrySlug<C>;
137-
}
138-
: {
139-
collection: C;
140-
id: keyof DataEntryMap[C];
141-
}
142-
>;
143-
// Allow generic `string` to avoid excessive type errors in the config
144-
// if `dev` is not running to update as you edit.
145-
// Invalid collection names will be caught at build time.
146-
export function reference<C extends string>(
147-
collection: C,
148-
): import('astro/zod').ZodEffects<import('astro/zod').ZodString, never>;
149-
150-
type ReturnTypeOrOriginal<T> = T extends (...args: any[]) => infer R ? R : T;
151-
type InferEntrySchema<C extends keyof AnyEntryMap> = import('astro/zod').infer<
152-
ReturnTypeOrOriginal<Required<ContentConfig['collections'][C]>['schema']>
153-
>;
154-
155-
type ContentEntryMap = {
156-
157-
};
158-
159-
type DataEntryMap = {
160-
"articles": Record<string, {
161-
id: string;
162-
body?: string;
163-
collection: "articles";
164-
data: InferEntrySchema<"articles">;
165-
rendered?: RenderedContent;
166-
filePath?: string;
167-
}>;
168-
"blogs": Record<string, {
169-
id: string;
170-
body?: string;
171-
collection: "blogs";
172-
data: InferEntrySchema<"blogs">;
173-
rendered?: RenderedContent;
174-
filePath?: string;
175-
}>;
176-
177-
};
178-
179-
type AnyEntryMap = ContentEntryMap & DataEntryMap;
180-
181-
export type ContentConfig = typeof import("./../src/content.config.js");
182-
}

.astro/data-store.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ The format is based on Keep a Changelog and this project adheres to Semantic Ver
88

99
Created Repo from template
1010

11-
1211
### [Unreleased]
1312

1413
Here we write upgrading notes for brands. It's a team effort to make them as straightforward as possible.

abcd.code-workspace

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,9 @@
7373
"javascript": "javascriptreact"
7474
},
7575
"eslint.options": {
76-
"extensions": [
77-
".js",
78-
".jsx",
79-
".md",
80-
".mdx",
81-
".ts",
82-
".tsx",
83-
".astro"
84-
]
76+
"extensions": [".js", ".jsx", ".md", ".mdx", ".ts", ".tsx", ".astro"]
8577
},
86-
"eslint.validate": [
87-
"mdx",
88-
"markdown",
89-
"javascript",
90-
"javascriptreact",
91-
"typescript",
92-
"typescriptreact",
93-
"astro"
94-
],
78+
"eslint.validate": ["mdx", "markdown", "javascript", "javascriptreact", "typescript", "typescriptreact", "astro"],
9579
"explorer.compactFolders": false,
9680
"explorer.confirmDelete": false,
9781
"explorer.confirmDragAndDrop": false,
@@ -119,10 +103,7 @@
119103
},
120104
"git.autofetch": true,
121105
"git.branchPrefix": "feature/",
122-
"git.branchProtection": [
123-
"develop",
124-
"main"
125-
],
106+
"git.branchProtection": ["develop", "main"],
126107
"git.branchRandomName.enable": true,
127108
"git.confirmSync": false,
128109
"git.enableCommitSigning": false,
@@ -133,9 +114,7 @@
133114
"js/ts.implicitProjectConfig.checkJs": true,
134115
"peacock.affectSideBarBorder": true,
135116
"peacock.color": "#abcd00",
136-
"prettier.documentSelectors": [
137-
"**/*.astro"
138-
],
117+
"prettier.documentSelectors": ["**/*.astro"],
139118
"prettier.printWidth": 120,
140119
"prettier.quoteProps": "consistent",
141120
"prettier.singleQuote": false,
@@ -189,4 +168,4 @@
189168
".github/**": true
190169
}
191170
}
192-
}
171+
}

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
"components": "components",
1515
"utils": "utils"
1616
}
17-
}
17+
}

public/sitemap-index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<sitemap>
44
<loc>https://www.parixan.xyz/sitemap2.xml.gz</loc>
55
</sitemap>
6-
</sitemapindex>
6+
</sitemapindex>

src/assets/map_assets/stateData.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,4 @@
389389
"official_website": "https://www.wb.gov.in",
390390
"isActive": true
391391
}
392-
]
392+
]

0 commit comments

Comments
 (0)