mirror of
https://github.com/xtr-dev/rondevu-client.git
synced 2025-12-10 02:43:25 +00:00
- Add RondevuService: High-level API for username claiming and service publishing with Ed25519 signatures - Add ServiceHost: Manages offer pool for hosting services with auto-replacement - Add ServiceClient: Connects to hosted services with automatic reconnection - Add NoOpSignaler: Placeholder signaler for connection setup - Integrate Ed25519 signature functionality from @noble/ed25519 - Add ESLint and Prettier configuration with 4-space indentation - Add demo with local signaling test - Version bump to 0.10.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
53 lines
1.6 KiB
JavaScript
53 lines
1.6 KiB
JavaScript
import js from '@eslint/js'
|
|
import tsPlugin from '@typescript-eslint/eslint-plugin'
|
|
import tsParser from '@typescript-eslint/parser'
|
|
import prettierConfig from 'eslint-config-prettier'
|
|
import prettierPlugin from 'eslint-plugin-prettier'
|
|
import unicorn from 'eslint-plugin-unicorn'
|
|
import globals from 'globals'
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx', '**/*.js'],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
RTCPeerConnection: 'readonly',
|
|
RTCIceCandidate: 'readonly',
|
|
RTCSessionDescriptionInit: 'readonly',
|
|
RTCIceCandidateInit: 'readonly',
|
|
BufferSource: 'readonly',
|
|
},
|
|
},
|
|
plugins: {
|
|
'@typescript-eslint': tsPlugin,
|
|
prettier: prettierPlugin,
|
|
unicorn: unicorn,
|
|
},
|
|
rules: {
|
|
...tsPlugin.configs.recommended.rules,
|
|
...prettierConfig.rules,
|
|
'prettier/prettier': 'error',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
|
'unicorn/filename-case': [
|
|
'error',
|
|
{
|
|
case: 'kebabCase',
|
|
ignore: ['^README\\.md$'],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
ignores: ['dist/**', 'node_modules/**', '*.config.js'],
|
|
},
|
|
]
|