Skip to content

Commit

Permalink
Misc. dev meta cleanup (#229)
Browse files Browse the repository at this point in the history
* Remove CSS module types

* Update process.env types

* Remove legacy Twitch developer rig JSON

* Remove legacy ESLint JSON

* Remove unused ts-expect-error from ESLint config
  • Loading branch information
MattIPv4 authored Jan 28, 2025
1 parent 049aa94 commit 134796a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 129 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.json

This file was deleted.

87 changes: 0 additions & 87 deletions Alveus Ambassadors.json

This file was deleted.

1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default tseslint.config(
...eslint.configs.recommended,
},
...tseslint.configs.recommended,
// @ts-expect-error - incorrect types
reactPlugin.configs.flat.recommended,
{
name: "prettier/config",
Expand Down
24 changes: 8 additions & 16 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
/// <reference types="react-dom" />

declare namespace NodeJS {
interface ProcessEnv {
readonly NODE_ENV: "development" | "production";
readonly REACT_APP_CHAT_COMMANDS_PRIVILEGED_USERS: string;
readonly REACT_APP_DEFAULT_CHANNEL_NAMES: string;
readonly REACT_APP_TEST_CHANNEL_NAMES: string | undefined;
}
type ProcessEnv = Record<string, never> & {
readonly NODE_ENV?: "development" | "production";
readonly REACT_APP_CHAT_COMMANDS_PRIVILEGED_USERS?: string;
readonly REACT_APP_DEFAULT_CHANNEL_NAMES?: string;
readonly REACT_APP_EXTRA_CHANNEL_NAMES?: string;
readonly REACT_APP_TEST_CHANNEL_NAMES?: string;
readonly REACT_APP_WEBSITE_URL?: string;
};
}

declare module "*.png" {
Expand All @@ -35,13 +37,3 @@ declare module "*.svg" {
const src: string;
export default src;
}

declare module "*.module.scss" {
const classes: { readonly [key: string]: string };
export default classes;
}

declare module "*.module.sass" {
const classes: { readonly [key: string]: string };
export default classes;
}

0 comments on commit 134796a

Please sign in to comment.