这是indexloc提供的服务,不要输入任何密码
Skip to content

fix : remove javascript comment #471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/cloud-functions/src/utils/task-queue-utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// import {TanamConfig} from "../config";

// // Allow `any` in this type since that's the type defined in Firebase Task Queue
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
// type TaskQueuePayload = Record<string, any>;

// /**
Expand Down
3 changes: 0 additions & 3 deletions apps/cms/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const {composePlugins, withNx} = require("@nx/next");

/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
images: {
domains: ["lh3.googleusercontent.com", "firebasestorage.googleapis.com"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const DocumentDetailsPage = () => {
}
}, [document, documentTypeId, router]);

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const renderFormElement = (field: TanamDocumentField, value: any) => {
const formgroupKey = `formgroup-${field.id}`;
const inputKey = `input-${field.id}`;
Expand Down
5 changes: 0 additions & 5 deletions apps/cms/src/app/(protected)/content/article/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ export default function DocumentTypeDocumentsPage() {
}
}

/**
* Modal actions for saving or canceling audio input.
* @constant
* @type {JSX.Element}
*/
const modalActionAudioInput = (
<div className="flex flex-col sm:flex-row justify-end gap-3">
{/* Start button to close the audio input modal */}
Expand Down
5 changes: 0 additions & 5 deletions apps/cms/src/app/(protected)/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ export default function Settings() {
await fetchProfilePicture();
}, [fetchProfilePicture]);

/**
* Modal actions for saving or canceling profile picture changes.
* @constant
* @type {JSX.Element}
*/
const modalActionCropImage = (
<div className="flex flex-col sm:flex-row justify-end gap-3">
{/* Start button to close the crop image modal */}
Expand Down
5 changes: 0 additions & 5 deletions apps/cms/src/components/TogglePublishDocument.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ export function TogglePublishDocument() {
}
}

/**
* Modal actions for saving or canceling schedule publish.
* @constant
* @type {JSX.Element}
*/
const modalActionSchedulePublish = (
<div className="flex flex-col sm:flex-row justify-end gap-3">
{/* Start button to close the schedule publish modal */}
Expand Down
4 changes: 0 additions & 4 deletions apps/cms/src/components/VoiceRecorder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default function VoiceRecorder(props: VoiceRecorderProps): JSX.Element {
const recognitionRef = useRef<TanamSpeechRecognition | undefined>();
const streamRef = useRef<MediaStream | null>(null);
const audioContextRef = useRef<AudioContext | null>(null);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const peaksInstanceRef = useRef<any>(null);

/**
Expand Down Expand Up @@ -150,7 +149,6 @@ export default function VoiceRecorder(props: VoiceRecorderProps): JSX.Element {
axisGridlineColor: "#ccc",
axisLabelColor: "#aaa",
randomizeSegmentColor: true,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any;

peaksInstanceRef.current = Peaks.init(options, (err) => {
Expand Down Expand Up @@ -212,10 +210,8 @@ export default function VoiceRecorder(props: VoiceRecorderProps): JSX.Element {
if (!recognition) return;

// Handle the event when speech recognition returns results
// eslint-disable-next-line @typescript-eslint/no-explicit-any
recognition.onresult = (event: any) => {
const transcript = Array.from(event.results)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
.map((result: any) => result[0])
.map((result) => result.transcript)
.join("");
Expand Down
7 changes: 1 addition & 6 deletions libs/domain-frontend/src/models/TanamSpeechRecognition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ declare global {
/**
* A reference to the custom `SpeechRecognition` implementation or standard implementation.
* This can be used to access speech recognition features in browsers that support it.
*
* @type {typeof TanamSpeechRecognition}
* @example
* // Example usage
* const recognition = new window.SpeechRecognition();
* recognition.start();
Expand All @@ -28,9 +25,7 @@ declare global {
/**
* A reference to the Webkit-specific `SpeechRecognition` implementation.
* This is particularly relevant for browsers that use the `webkit` prefix.
*
* @type {typeof TanamSpeechRecognition}
* @example

* // Example usage
* const recognition = new window.webkitSpeechRecognition();
* recognition.start();
Expand Down
Loading