homebridge-wemo
Version:
Homebridge plugin to integrate Wemo devices into HomeKit.
51 lines (49 loc) • 1.5 kB
JavaScript
import { antfu } from '@antfu/eslint-config'
/** @type {typeof antfu} */
export default antfu(
{
ignores: [],
jsx: false,
rules: {
'curly': ['error', 'multi-line'],
'new-cap': 'off',
'import/extensions': ['error', 'ignorePackages'],
'import/order': 0,
'jsdoc/check-alignment': 'warn',
'jsdoc/check-line-alignment': 'warn',
'jsdoc/require-returns-check': 0,
'jsdoc/require-returns-description': 0,
'no-undef': 'error',
'perfectionist/sort-exports': 'error',
'perfectionist/sort-imports': [
'error',
{
groups: [
'type',
'internal-type',
'builtin',
'external',
'internal',
['parent-type', 'sibling-type', 'index-type'],
['parent', 'sibling', 'index'],
'object',
'unknown',
],
order: 'asc',
type: 'natural',
newlinesBetween: 'always',
},
],
'perfectionist/sort-named-exports': 'error',
'perfectionist/sort-named-imports': 'error',
'quotes': ['error', 'single'],
'sort-imports': 0,
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'style/quote-props': ['error', 'consistent-as-needed'],
'test/no-only-tests': 'error',
'unicorn/no-useless-spread': 'error',
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }],
},
typescript: false,
},
)