client/eslint.config.ts
Alois 4068669704
Some checks failed
/ build-desktop (linux) (push) Failing after 1m9s
/ build-web (push) Failing after 1m25s
/ build-mobile (push) Failing after 4m7s
/ release (push) Has been skipped
(feat): add context menu to call users
(feat): ui changes to invite popup & call ui in general
(feat): make eslint less aggressive
(fix): stop watching button on own screenshares
(qol): update todo
2026-06-08 15:40:04 +02:00

37 lines
895 B
TypeScript

import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import reactHooks from "eslint-plugin-react-hooks";
import * as tsParser from "@typescript-eslint/parser";
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
const tsconfigRootDir = dirname(fileURLToPath(import.meta.url));
export default [
{
ignores: ["**/dist/**", "**/node_modules/**"],
},
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.{ts,tsx}"],
languageOptions: {
parser: tsParser,
parserOptions: {
tsconfigRootDir,
},
globals: {
...globals.browser,
...globals.node,
},
},
plugins: {
"react-hooks": reactHooks,
},
rules: {
...reactHooks.configs.recommended.rules,
"react-hooks/set-state-in-effect": "off",
},
},
];