mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-02 18:07:03 +00:00
The rules from `eslint-plugin-array-func` are redundant with `eslint-plugin-unicorn`: - `from-map` → `unicorn/prefer-array-from-map` - `no-unnecessary-this-arg` → `unicorn/no-array-method-this-argument` - `prefer-flat` / `prefer-flat-map` → `unicorn/prefer-array-flat` / `unicorn/prefer-array-flat-map` (already disabled here) The two remaining rules (`avoid-reverse`, `prefer-array-from`) are niche and not worth carrying an extra dependency for. Co-authored-by: bircni <bircni@icloud.com>
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
declare module '*.svg' {
|
|
const value: string;
|
|
export default value;
|
|
}
|
|
|
|
declare module '*.css' {
|
|
const value: string;
|
|
export default value;
|
|
}
|
|
|
|
declare module '*.vue' {
|
|
import type {DefineComponent} from 'vue';
|
|
const component: DefineComponent<unknown, unknown, any>;
|
|
export default component;
|
|
}
|
|
|
|
declare module 'idiomorph' {
|
|
interface Idiomorph {
|
|
morph(existing: Node | string, replacement: Node | string, options?: {morphStyle: 'innerHTML' | 'outerHTML'}): void;
|
|
}
|
|
export const Idiomorph: Idiomorph;
|
|
}
|
|
|
|
declare module 'swagger-ui-dist/swagger-ui-es-bundle.js' {
|
|
const value = await import('swagger-ui-dist');
|
|
export default value.SwaggerUIBundle;
|
|
}
|
|
|
|
declare module '@citation-js/core' {
|
|
export class Cite {
|
|
constructor(data: string);
|
|
format(format: string, options?: Record<string, any>): string;
|
|
}
|
|
export const plugins: {
|
|
config: {
|
|
get(name: string): any;
|
|
};
|
|
};
|
|
}
|
|
|
|
declare module '@citation-js/plugin-software-formats' {}
|
|
declare module '@citation-js/plugin-bibtex' {}
|
|
declare module '@citation-js/plugin-csl' {}
|