mirror of
https://github.com/hanzodao/api.git
synced 2026-10-30 20:01:09 +00:00
* 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]>
26 lines
831 B
JavaScript
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'],
|
|
},
|
|
},
|
|
]);
|