Files
b3792b814b Added handling and tests for both proposals and comments (#8)
* ENG-788 public and subscription with topics

* Socket tests OK

* Changed WebSocketConnections to const instead of class

* Merge branch 'feature/ENG-788-publish-and-subscribe' into feature/ENG-749-dao-topic

# Conflicts:
#	packages/decent-offchain/src/api/ws/connections.ts
#	packages/decent-offchain/test/api/socket.test.ts

* Added code to publish and subscribe

* Fixed tests

* Clean up code

* Added handling and tests for both proposals and comments

* fix(lint): update eslint rule to support enums, clear commented out things

* Changes according to PR

* More PR changes

* Renamed back payload.ts to dispatch.ts to keep merging simpler for next PR

---------

Co-authored-by: John Huang <[email protected]>
Co-authored-by: jigglyjams <[email protected]>
2025-05-12 16:48:42 -04:00

26 lines
831 B
JavaScript

import { defineConfig, globalIgnores } from 'eslint/config';
import globals from 'globals';
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin';
export default defineConfig([
globalIgnores(['node_modules', '**/scripts/**']),
{ files: ['**/*.{js,mjs,cjs,ts}'] },
{ files: ['**/*.{js,mjs,cjs,ts}'], languageOptions: { globals: globals.browser } },
{ files: ['**/*.{js,mjs,cjs,ts}'], plugins: { js }, extends: ['js/recommended'] },
tseslint.configs.recommended,
{
plugins: {
'@stylistic': stylistic,
},
rules: {
'no-trailing-spaces': 'warn',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@stylistic/indent': ['error', 2],
'@stylistic/quotes': ['error', 'single'],
},
},
]);