UNPKG

homebridge-caddx-interlogix

Version:

A homebridge plugin for integrating the ComNav/NetworX/CaddX NX-595E network module with HomeKit

43 lines (39 loc) 1.47 kB
import { defineConfig, globalIgnores } from "eslint/config"; import tsParser from "@typescript-eslint/parser"; import path from "node:path"; import { fileURLToPath } from "node:url"; import js from "@eslint/js"; import { FlatCompat } from "@eslint/eslintrc"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const compat = new FlatCompat({ baseDirectory: __dirname, recommendedConfig: js.configs.recommended, allConfig: js.configs.all }); export default defineConfig([globalIgnores(["**/dist"]), { extends: compat.extends( "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", ), languageOptions: { parser: tsParser, ecmaVersion: 2018, sourceType: "module", }, rules: { "no-useless-escape": "off", "no-prototype-builtins": "off", "prefer-const": "off", "no-useless-catch": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/no-inferrable-types": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-object-type": "off" }, }]);