mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
Add a new library libs/ui/remote-control including component, template, Jest setup, and project configuration to provide a remote-control UI component. - Add RemoteControlComponent implemented with inject-based service usage, loading and error state, and async channelUp/channelDown handlers. This centralizes remote control logic and handles errors for the UI. - Add HTML template for the remote-control touchpad, buttons, error display, and basic branding markup. - Add Jest config (jest.config.ts) and tsconfig.spec.json configured for unit tests with jest-preset-angular to enable testing of Angular components. - Add Nx project configuration (project.json) with test and lint targets so the library is discoverable and runnable by the workspace. These changes scaffold the remote-control feature as a reusable UI library and enable testing and linting within the monorepo.
35 lines
862 B
JavaScript
35 lines
862 B
JavaScript
import nx from '@nx/eslint-plugin';
|
|
import baseConfig from '../../../eslint.config.mjs';
|
|
|
|
export default [
|
|
...baseConfig,
|
|
...nx.configs['flat/angular'],
|
|
...nx.configs['flat/angular-template'],
|
|
{
|
|
files: ['**/*.ts'],
|
|
rules: {
|
|
'@angular-eslint/directive-selector': [
|
|
'error',
|
|
{
|
|
type: 'attribute',
|
|
prefix: 'lib',
|
|
style: 'camelCase',
|
|
},
|
|
],
|
|
'@angular-eslint/component-selector': [
|
|
'error',
|
|
{
|
|
type: 'element',
|
|
prefix: 'lib',
|
|
style: 'kebab-case',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.html'],
|
|
// Override or add rules here
|
|
rules: {},
|
|
},
|
|
];
|