homebridge-hikvision-local
Version:
Homebridge plugin that connects to your HikVision DVR via a local connection and exposes your cameras in Homebridge. The plugin is heavily based on excellent [homebridge-camera-ffmpeg](https://github.com/Sunoo/homebridge-camera-ffmpeg) and the various hom
46 lines (44 loc) • 1.44 kB
JavaScript
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import typescriptParser from '@typescript-eslint/parser';
export default [
{
ignores: ['dist/**', 'node_modules/**', '*.js', '!eslint.config.js'],
},
{
files: ['**/*.ts'],
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
project: './tsconfig.json',
},
},
plugins: {
'@typescript-eslint': typescriptEslint,
},
rules: {
'quotes': ['warn', 'single'],
'indent': ['warn', 2, { 'SwitchCase': 1 }],
'linebreak-style': ['warn', 'unix'],
'semi': ['warn', 'always'],
'comma-dangle': ['warn', 'always-multiline'],
'dot-notation': 'off',
'eqeqeq': 'warn',
'curly': ['warn', 'all'],
'brace-style': ['warn'],
'prefer-arrow-callback': ['warn'],
'max-len': ['warn', 200],
'no-console': ['warn'],
'no-non-null-assertion': ['off'],
'comma-spacing': ['error'],
'no-multi-spaces': ['warn'],
'object-property-newline': ['warn', { allowAllPropertiesOnSameLine: true }],
'no-trailing-spaces': ['warn'],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
];