mirror of
https://github.com/enso-org/enso.git
synced 2024-11-26 08:52:58 +03:00
ebf4cd5c1f
- Remove unnecessary modules - Remove `ts-plugin-namespace-auto-import` as it was a workaround to use the non-conventional `import *` convention - Remove `esbuild-plugin-copy-directories` as it is unuse - Inline modules that are only ever used once - Inline `project-manager-shim` into `gui2` - it is only used during `gui2`'s dev mode - Inline `content-config` into `client` - Flatten `app/ide-desktop/lib/` to `app/ide-desktop/` - Flatten `app/ide-desktop/lib/dashboard/` to `app/dashboard/` # Important Notes - As mentioned above, all remaining modules have been moved up from `app/ide-desktop/lib/` to `app/ide-desktop/`. It's not ideal but I'd rather hold off on moving them anywhere else before we have a consensus on what should go where. - (That is to say, this may not be the final directory structure - but I figure it's fine to get *something* done so that hopefully the rest of the restructuring is simpler.)
85 lines
2.6 KiB
TypeScript
85 lines
2.6 KiB
TypeScript
/** @file Type definitions for modules that currently lack typings on DefinitelyTyped.
|
|
*
|
|
* This file MUST NOT `export {}` so that the modules are visible to other files. */
|
|
|
|
// ===========================
|
|
// === Module declarations ===
|
|
// ===========================
|
|
|
|
declare module 'eslint-plugin-react' {
|
|
/** An ESLint configuration. */
|
|
interface Config {
|
|
readonly plugins: string[]
|
|
readonly rules: Record<string, number>
|
|
readonly parserOptions: object
|
|
}
|
|
|
|
// The names come from a third-party API and cannot be changed.
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
/** Configurations defined by this ESLint plugin. */
|
|
interface Configs {
|
|
readonly recommended: Config
|
|
readonly all: Config
|
|
readonly 'jsx-runtime': Config
|
|
}
|
|
|
|
/** Deprecated rules contained in this ESLint plugin. */
|
|
interface DeprecatedRules {
|
|
readonly 'jsx-sort-default-props': object
|
|
readonly 'jsx-space-before-closing': object
|
|
}
|
|
|
|
/* eslint-enable @typescript-eslint/naming-convention */
|
|
|
|
/** The default export of this ESLint plugin. */
|
|
export interface Default {
|
|
readonly rules: Record<string, object>
|
|
readonly configs: Configs
|
|
readonly deprecatedRules: DeprecatedRules
|
|
}
|
|
|
|
// The names come from a third-party API and cannot be changed.
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
export const deprecatedRules: DeprecatedRules
|
|
|
|
const DEFAULT: Default
|
|
export default DEFAULT
|
|
}
|
|
|
|
declare module 'eslint-plugin-react-hooks' {
|
|
/** An ESLint configuration. */
|
|
interface Config {
|
|
readonly plugins: string[]
|
|
readonly rules: Record<string, string>
|
|
}
|
|
|
|
/** Configurations defined by this ESLint plugin. */
|
|
interface Configs {
|
|
readonly recommended: Config
|
|
}
|
|
|
|
/** Rules defined by this ESLint plugin. */
|
|
interface ReactHooksRules {
|
|
// The names come from a third-party API and cannot be changed.
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
readonly 'rules-of-hooks': object
|
|
readonly 'exhaustive-deps': object
|
|
/* eslint-enable @typescript-eslint/naming-convention */
|
|
}
|
|
|
|
/** The default export of this ESLint plugin. */
|
|
export interface Default {
|
|
readonly configs: Configs
|
|
readonly rules: ReactHooksRules
|
|
}
|
|
|
|
// The names come from a third-party API and cannot be changed.
|
|
/* eslint-disable no-restricted-syntax */
|
|
export const configs: Configs
|
|
export const rules: ReactHooksRules
|
|
/* eslint-enable no-restricted-syntax */
|
|
|
|
const DEFAULT: Default
|
|
export default DEFAULT
|
|
}
|