chore(lint): remove ESLint configuration file and update lint scripts
- Deleted the .eslintrc.cjs file to simplify configuration management. - Updated lint scripts in package.json to remove unnecessary extensions for linting. - Added new devDependencies for ESLint and globals to enhance linting capabilities.
This commit is contained in:
@@ -69,7 +69,7 @@ export function Sidebar() {
|
||||
const gatewayStatus = useGatewayStore((state) => state.status);
|
||||
|
||||
const [versionClicks, setVersionClicks] = useState(0);
|
||||
const [appVersion, setAppVersion] = useState('0.1.0');
|
||||
const [, setAppVersion] = useState('0.1.0');
|
||||
|
||||
// Get app version
|
||||
useEffect(() => {
|
||||
@@ -79,7 +79,7 @@ export function Sidebar() {
|
||||
}, []);
|
||||
|
||||
// Handle version click for dev mode unlock
|
||||
const handleVersionClick = () => {
|
||||
const _handleVersionClick = () => {
|
||||
const clicks = versionClicks + 1;
|
||||
setVersionClicks(clicks);
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable react-refresh/only-export-components */
|
||||
/**
|
||||
* Badge Component
|
||||
* Based on shadcn/ui badge
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable react-refresh/only-export-components */
|
||||
/**
|
||||
* Button Component
|
||||
* Based on shadcn/ui button
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
import * as React from 'react';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
export interface InputProps
|
||||
extends React.InputHTMLAttributes<HTMLInputElement> {}
|
||||
export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
|
||||
|
||||
const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
||||
({ className, type, ...props }, ref) => {
|
||||
|
||||
@@ -447,7 +447,7 @@ export function Cron() {
|
||||
try {
|
||||
await toggleJob(id, enabled);
|
||||
toast.success(enabled ? 'Task enabled' : 'Task paused');
|
||||
} catch (err) {
|
||||
} catch {
|
||||
toast.error('Failed to update task');
|
||||
}
|
||||
}, [toggleJob]);
|
||||
@@ -456,7 +456,7 @@ export function Cron() {
|
||||
try {
|
||||
await deleteJob(id);
|
||||
toast.success('Task deleted');
|
||||
} catch (err) {
|
||||
} catch {
|
||||
toast.error('Failed to delete task');
|
||||
}
|
||||
}, [deleteJob]);
|
||||
|
||||
@@ -322,7 +322,7 @@ export function Skills() {
|
||||
}
|
||||
}
|
||||
toast.success(allEnabled ? 'Bundle disabled' : 'Bundle enabled');
|
||||
} catch (err) {
|
||||
} catch {
|
||||
toast.error('Failed to apply bundle');
|
||||
}
|
||||
}, [skills, enableSkill, disableSkill]);
|
||||
|
||||
@@ -66,7 +66,7 @@ export const useChannelsStore = create<ChannelsState>((set, get) => ({
|
||||
}));
|
||||
return newChannel;
|
||||
}
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// Create local channel if gateway unavailable
|
||||
const newChannel: Channel = {
|
||||
id: `local-${Date.now()}`,
|
||||
|
||||
Reference in New Issue
Block a user